Forum Discussion
iRule help w/ no snat for public DMZ
I've been using a irule for several yrs and believe it works as intended. I don't change or snat public DMZ networks (neiu_dmz_subnets). I need to add another DMZ public network (ATT_DMZ) that I don't want to snat (keep the system's public IP address). First matchclass "neiu_dmz_subnets" our current public DMZ's working but second matchclass "ATT_DMZ" not working, changing IP address. Why? should I just add a "snat none"?
} elseif { [matchclass [IP::client_addr] equals neiu_dmz_subnets]} {
Data Grp 66.99.13.0/24 forward pool ISP_routers member 64.107.163.129 } elseif { [matchclass [IP::client_addr] equals ATT_DMZ]} { Data Grp 12.239.13.193-255 forward pool ISP_routers member 12.239.13.129 } else { snat automap return }
9 Replies
- nitass_89166
Noctilucent
can you post ATT_DMZ data group?
tmsh list ltm data-group internal ATT_DMZ- done_23947
Nimbostratus
I'll try 12.239.13.192/26 later today and let you know, thanks again.
- nitass
Employee
can you post ATT_DMZ data group?
tmsh list ltm data-group internal ATT_DMZ- done_23947
Nimbostratus
I'll try 12.239.13.192/26 later today and let you know, thanks again.
- done_23947
Nimbostratus
Thanks for the help. ATT_DMZ data grp is 12.239.13.193/255.255.255.192. - done_23947
Nimbostratus
[root@lc2:Active] config tmsh list ltm data-group internal ATT_DMZ 01020036:3: The requested class (internal) was not found. ltm data-group ATT_DMZ { records { 12.239.113.193/26 { } } type ip } [root@lc2:Active] config - nitass
Employee
ATT_DMZ data grp is 12.239.13.193/255.255.255.192.
i think it should be 12.239.13.192/255.255.255.192.
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) create ltm data-group internal ATT_DMZATT_DMZ type ip records add { 12.239.13.193/255.255.255.192 } 01070655:3: Invalid address and mask 12.239.13.193 and 255.255.255.192. Address must equal address & mask. root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) create ltm data-group internal ATT_DMZATT_DMZ type ip records add { 12.239.13.192/255.255.255.192 } root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm data-group internal ATT_DMZATT_DMZ ltm data-group internal ATT_DMZATT_DMZ { records { 12.239.13.192/26 { } } type ip } - done_23947
Nimbostratus
Sorry I was testing w/ a host address also and had a typo. [root@lc2:Active] config tmsh list ltm data-group internal ATT_DMZ 01020036:3: The requested class (internal) was not found. ltm data-group ATT_DMZ { records { 12.239.13.193/26 { } } type ip } [root@lc2:Active] config - nitass
Employee
can you try 12.239.13.192/26?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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