Accessing TCP Options from iRules
I’ve written several articles on the TCP profile and enjoy digging into TCP. It’s a beast, and I am constantly re-learning the inner workings. Still etched in my visual memory map, however, is the ...
Published Mar 25, 2011
Version 1.0JRahm
Admin
Joined January 20, 2005
JRahm
Admin
Joined January 20, 2005
MegaZone
Jun 25, 2020SIRT
Yes, you're correct:
---
} else {
set optaddr [IP::addr parse -ipv4 $opt28 1]
if { [catch {IP::addr $x mask 255.255.255.255}] } {
log local0. "$optaddr is not a valid address"
snat automap
---
That $x should be $optaddr in this example.
It isn't clear from https://clouddocs.f5.com/api/irules/IP__addr.html if it throws an exception, and I'm not sure offhand - probably something to check.