Forum Discussion
VFB
Jun 22, 2018Cirrus
SNAT local address going to a specific port
I'm trying to SNAT a subnet going to a specific port but not getting anywhere with the iRule. Below is what I currently have:
when CLIENT_ACCEPTED {
if {[IP::addr [IP::client_addr] equals "10...
crodriguez
Jun 22, 2018Ret. Employee
Braces and brackets are a bit misaligned. Try the following which should at least be syntactically correct:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals "10.10.10.0/28"] && [UDP::local_port] equals "1700" } {
snat "10.10.10.1"
}
}
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