Forum Discussion
Greg__33907
Nimbostratus
Jul 31, 2008iRule to SNAT dependant on source address
Hey all,
I'd like to configure and iRule and apply it to a VIP whereby it checks the source and if it is one of a list of IP addresses (or perhaps within a specific subnet). If it is I'd like it to apply and automapped (optional if not possible) SNAT.
Is this possible? If it is, any advice would be appreciated.
Cheers
Greg
- Nicolas_Menant
Employee
Hi,when CLIENT_ACCEPTED { if {[IP::addr [IP::client_addr]/8 equals 10.0.0.0]} { snat automap } } with a class: when CLIENT_ACCEPTED { if {[matchclass [IP::client_addr] equals $::myIPs]} { snat automap } } where you created a datagroup myIPS which contains the list of IPs that should be snatted
- Greg__33907
Nimbostratus
Thanks very much. I wasn't expecting the full script. I'll give it a shot tomorrow.
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