Forum Discussion
jlundber_44460
Nimbostratus
Feb 25, 2008Source routing
Hello everyone!
We are trying to consolidate our enviorment and need to do some kind of source routing or change the arcitechture.
This is how our enviorment is set up.
...
JCMATTOS_41723
Nimbostratus
Sep 03, 2008Denny - I was wondering if you had an example of the irule solution for this similar scenario? I tried using a wildcard forwarding virtual server with this irule and not sure if this would work the same way? Thx!
virtual VIPANY {
ip forward
destination any:any
mask none
vlans
RIP-DEV-DMZ
RIP-DEV-INT
RIP-PROD-DMZ
RIP-PROD-INT
RIP-QA-DMZ
RIP-QA-INT
RIP-UAT-DMZ
RIP-UAT-INT
enable rules Gateways
}
rule Gateways {
when CLIENT_ACCEPTED {
if { [IP::addr [IP::remote_addr] equals "10.0.24.0/23"] ne 0} {node 10.0.22.1}
elseif { [IP::addr [IP::remote_addr] equals "10.0.34.0/23"] ne 0} {node 10.0.32.1}
elseif { [IP::addr [IP::remote_addr] equals "10.0.44.0/23"] ne 0} {node 10.0.42.1}
elseif { [IP::addr [IP::remote_addr] equals "10.0.54.0/23"] ne 0} {node 10.0.52.1}
elseif { [IP::addr [IP::remote_addr] equals "172.24.24.0/23"] ne 0} {node 172.24.22.1}
elseif { [IP::addr [IP::remote_addr] equals "172.24.34.0/23"] ne 0} {node 172.24.32.1}
elseif { [IP::addr [IP::remote_addr] equals "172.24.44.0/23"] ne 0} {node 172.24.42.1}
elseif { [IP::addr [IP::remote_addr] equals "172.24.54.0/23"] ne 0} {node 172.24.52.1}
else { discard }
}
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