Forum Discussion
julian_shaw_479
Nimbostratus
Apr 05, 2007Urgent help needed
I have a problem where I need to route to different gateways on different vlans
The scenario is I have 2 interfaces configured in seperate subnets I need to create an irule where if you hit a virual server on one interface it sends the traffic to the default gateway in its subnet and interface and if you hit the vs on the other interface it sends the traffic to the gateway on its own subnet and interface.
I also need to use snats as the nodes are in a seperate subnet to that of the big ip and inject the source ip of the client into the header.
This is what I have done so far
when HTTP_REQUEST {HTTP::header insert "Client_ip3 [IP::remote_addr]"
}
when CLIENT_ACCEPTED { if { [active_members *****_pool] == 0 } { pool *****_fallback_pool }}
The part I am stuck on is the defualt gateways, I have looked at adding 2 default gateways but the LTM doesn't allow this and I don't know if adding a gateway pool would actually solve this as I have no way of telling to use one gateway for a particular vlan and another gateway for the other.
I have seen this irule in the forums
when CLIENT_ACCEPTED { if {[IP::addr "[IP::client_addr]/24" equals "10.20.30.0"]} { pool isp2_pool } else { pool default_gateway_pool }}
But I don't get how you apply this to a vlan or a VS sorry sorry being a little vague I am fairly new when it comes to configuring Irule I normally just modify the ones I find within the forums
Quick response would be greatly appreciated.
Thanks
No RepliesBe the first to reply
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