Forum Discussion
Kirkulees007_29
Nimbostratus
Apr 06, 2018Logging SNAT connections in Irule
Hello,
I need some help on how to log the client actual source ip address and the address they are being SNAT'd to in the below Irule. Any help appreciated.
when CLIENT_ACCEPTED {
if {[c...
jaikumar_f5
Noctilucent
Apr 07, 2018Something like this, used local_addr to capture snat details.
when CLIENT_ACCEPTED {
if {[class match [IP::client_addr] equals InternalSubnets] }{
snatpool Snat1
log local0. "Client: [IP::client_addr] equals InternalSubnets, snatpool [IP::local_addr] "
} else {
snatpool Snat2
log local0. "Client: [IP::client_addr] not part of InternalSubnets, snatpool [IP::local_addr] "
} }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects