I have to create the VS with 4 ports (80,440,8530,8531). Need redirection from port ‘80 to 443’ and from port ‘8530 to 8531’. I have policies created for port redirection 80 to 443. But I also have to redirect the from port 8530 to 8531. What could be the possible solution. any irule or policies needed for that ? Please help !
Are the both ports 8530/8531 are http based ? i assume user will use as http://xyz.com:8530 and secure https://xyz.com:8531 . Im trying to understand your requirement. why you need 8530/8531 to be typed by user/application can’t you simple use a vip having port translation to 8530/8531 to backend pools.
Thanks Shiva for viewing my post ! Actually It is a client request that we have to create a virtual server with ports (80,443,8530 & 8531). And we need to redirect the port 80 to 443 and port 8530 to 8531. So here I have policies created for http to https redirection but not for the port 8530 to 8531. So I am bit confused here. Hope you can help me out.
If you are sending the traffic to servers on different ports, you just have to configure the port number on the pool members:
VS:8530 <> Pool that contains members listening on port 8531 with “port-translation” enabled on VS.
If you are looking for redirect, use something like this:
http://domain.com:8531/
in policy redirect use the same template as http to https redirect but just add you dst port: ex: you’re redirect rule should look like : if you’re 8531 is ssl use below else use b. https://[getfield [HTTP::host] “:” 1]:8531[HTTP::uri] http://[getfield [HTTP::host] “:” 1]:8531[HTTP::uri]