Forum Discussion

VFB's avatar
Icon for Cirrus rankCirrus
Jun 22, 2018

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 ""]} and {[UDP::local_port] equals "1700"]} {snat ""}}


1 Reply

  • Braces and brackets are a bit misaligned. Try the following which should at least be syntactically correct:

        if { [IP::addr [IP::client_addr] equals ""] && [UDP::local_port] equals "1700" } {
            snat ""