Forum Discussion
Marc_zw_57558
Nimbostratus
Jun 11, 2008Redirect Port 80 to Port 81 while using Layer4 Virtual Server
Hi there,
Am very new to iRules and am trying to find out if its possible and if so how I can redirect traffic coming in on port 80 to port 81 using a Performance (Layer4) Virtual Server without resorting to SNAT.
I have a VS with a VIP of 172.25.80.153:80 and I need traffic to go to the pool nodes on 172.25.80.28:81. How ever, Layer 4 VS do not perform address or port translation by default. Is it possible to perform this by using an iRule?
Thanks
Marc
- JRahm
Admin
The LTM supports this with the fastL4 profile without Irules. Just set your vip up on port 80 and your referenced pools up on port 81, the LTM will do the translation for you:pool test-pool { monitor all tcp members 10.10.10.10:81 10.10.10.20:81 } virtual test-vip { pool test-pool destination 10.10.8.10:80 ip protocol tcp vlans public enable profiles fastL4 }
- Marc_zw_57558
Nimbostratus
I have the virtual server setup as below. - JRahm
Admin
That's becuase you have translation disabled, any reason why? - Marc_zw_57558
Nimbostratus
It was setup following the instructions in the Configuration Guide. It is using nPath routing which says to disable both Address and Port Translation. - JRahm
Admin
nPath routing is a completely different animal. - Marc_zw_57558
Nimbostratus
Thanks for you help anyways. - Hamish
Cirrocumulus
You need to drop using nPath... nPath requires that the backend is listening on exactly the same IP & Port as the VS...
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