Forum Discussion
BluHades_10582
Nimbostratus
Oct 24, 2007Help with redirecting traffic over one ISP link all the time.
Hello,
I'm new to writing iRules and would like some assistance please.
I have a link controller with 2 links to 2 ISP's. ISP 1 is on net a.b.c.d and ISP 2 is on net w.x.y.z
I have clients internal in my network that need to use ISP 1 a.b.c.d for outbound traffic each time they access the FQDN cbd.mo.uk (which is a resource in ISP 1 network), otherwise for all other traffic they can use either link.
I would like for the link controller on receiving outbound traffic to cbd.mo.uk to always use ISP 1 a.b.c.d
Could someone please provide a sample Irule i could use in this scenario.
Many thanks for your time and expertise.
Blue.
- kykong_107132
Nimbostratus
HI Bluehade - hoolio
Cirrostratus
You could also define a virtual server for the "3.3.3.3" IP address and have the router_isp1 pool as the virtual server's resouce, if you wanted to avoid using a rule for this. - BluHades_10582
Nimbostratus
Thanks for your replies. I have a question for kky. Looking at the syntax [IP::local_addr] equals 3.3.3.3] what does local_addr mean? To me the syntax reads "if the local address is 3.3.3.3 use pool router_isp1. I was a little confused as to whether the term local address should have been the term remote address (assuming such a term exists in the syntax), meaning If remote address or destination address is 3.3.3.3 then use pool router_isp1. - kykong_107132
Nimbostratus
Hi Blue, - Chris_Proctor_1
Nimbostratus
I have a similar scenario, but I didn't understand how I would accomplish what you were saying here. - JRahm
Admin
If auto-lasthop is enabled, traffic will be sent back to the original mac independent of the routing table. - Chris_Proctor_1
Nimbostratus
Thanks!
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