Forum Discussion
Shay_Ben-David1
Nimbostratus
Feb 19, 2007access VIP from internal VLAN on the bigip with SNAT
Hi, i have bigip in a routed topology with two vlan interfaces (external to internet, and internal to LAN), only way to go from my internal vlan to the VIPs is with SNAT on the VIP with Auto Map configuration or some other way of SNAT on the VIP. the problem is i need the routed topology to stay as is and not perform a reverse proxy to all address, only the one comes from my internal vlan, is there a way to use irule to snat only address comes from my internal vlan to the VIP and use some Auto Map on the irule, i think it should be:
when CLIENT_ACCEPTED
some if to help detarmine the source ip to be SNAT to the spesific VIPs
and snat to Auto Map or something, and maybee some else,
if someone have some experiance with this, we need help
thanks
- hoolio
Cirrostratus
You could use a past example to apply a SNAT only when the client IP address is on the same /24 subnet as the server.Click herewhen LB_SELECTED { if {[IP::addr "[IP::client_addr]/24" equals "[LB::server addr]/24"]} { snat automap } }
- David_23683
Nimbostratus
Since not all LANs are /24's and common iRules among partitions that need similar functionality is a nice thing, is there any reason you can think of this code shouldn't become: - hoolio
Cirrostratus
That's a novel idea. It seems to work well if the client, VIP and pool are all on the same subnet with no routers. However, I don't think it would work if the client and pool member are on the same subnet, but the VIP isn't.
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