Proxy Protocol Receiver
Problem this snippet solves: iRule for BIG-IP to receive PROXY protocol (v1 and v2) header in TCP Payload and remove it before forwarding remaining TCP Payload to server side pool member. How to us...
Published Sep 02, 2015
Version 1.0Chad_Jenison
Nimbostratus
Joined May 13, 2008
Chad_Jenison
Nimbostratus
Joined May 13, 2008
Chad_Jenison
Mar 10, 2017Nimbostratus
I believe 3) should be as easy as adding the following to the bottom of the code hung off the CLIENT_DATA event, along with a setting of $static::useProxyProtocolSourceForSNAT in "RULE_INIT" to 1.
This syntax validates, but I'll need time to do some testing.
Chad
if {$static::useProxyProtocolSourceForSNAT} {
if {$srcaddr}{
snat $srcaddr
} elseif {$v2_sourceAddress} {
snat $v2_sourceAddress
} elseif {$v2_v6sourceAddress} {
snat $v2_v6sourceAddress
}
}