Forum Discussion
ecloss_25932
Nimbostratus
Mar 19, 2010Forwarding to a specific address
I am brand new to iRules and am trying to build an iRule that will listen on a specific port (8411) of a specified address xxx.xxx.xxx.xxx and then forward to the same port on another address? This seems that it would be fairly simple but after 3 days of struggling with it and failing I am out of ideas. Can anyone out there help ??
- Ian_SmithRet. EmployeeOn the face of it, what you are asking for is how virtual servers work;
when CLIENT_ACCEPTED { switch [IP::local_addr] { 1.1.1.1 { log local0. "I found IP addr 1.1.1.1" switch [IP::protocol] { 6 { switch [TCP::local_port] { 8411 { log local0. "I found TCP port 8411" node 2.2.2.2 } default { log local0. "These aren't the ports you're looking for" } } } 17 { switch [UDP::local_port] { 8411 { log local0. "I found UDP port 8411" node 2.2.2.2 } default { log local0. "These aren't the ports you're looking for" } } } default { log local0. "This isn't the right transport protocol" } } } default { log local0. "This isn't the right IP addr" } } }
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