For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Wasim_Hassan_13's avatar
Wasim_Hassan_13
Icon for Nimbostratus rankNimbostratus
Jul 21, 2014

Hide Port in URL

Hi,

I have the following requirement. I want to hide the URL port Use will request for https://ebsdmzuat.abc.com

it will be redirect to

https://ebsdmzuat.abc.com:8060/OA_HTML/RF.jsp

But i want to hide the port number in the actual URL. I dont want the user to see the port number etc.

I have created the VS and irule and redirection is working fine but unable to hide the port number in the URL.

when HTTP_REQUEST { switch -glob [string tolower [HTTP::host]] { "ircuat.abc.com" { HTTP::respond 301 Location "https://ebsdmzuat.abc.com:8060/OA_HTML/IrcVisitor.jsp" } "isupuat.abc.com" { HTTP::respond 301 Location "https://ebsdmzuat.abc.com:8060/OA_HTML/jsp/pos/suppreg/SupplierRegister.jsp" } "ircvuat.abc.com" { HTTP::respond 301 Location "https://ebsdmzuat.abc.com:8060" } "iprcuat.abc.com" { HTTP::respond 301 Location "https://ebsdmzuat.abc.com:8060" } "ebsdmzuat.abc.com" { HTTP::respond 301 Location "https://ebsdmzuat.abc.com:8060/OA_HTML/AppsLogin" }

}

}

ltm virtual VS_TEST { destination 192.168.206.24:any ip-protocol tcp mask 255.255.255.255 partition PRPRDWEBDMZ persist { PRDWEB_STICKY { default yes } } pool TEST_POOL_2 profiles { /Common/tcp { } CLIENT_SSL { context clientside } PRE-PROD-WEB-DMZ-Profile { } } rules { NEW_TEST } source 0.0.0.0/0 source-address-translation { type automap } translate-port disabled vlans { PRE-PROD-WEB-DMZ } vlans-enabled vs-index 140

Please let me know how to fix this issue.

3 Replies

  • The only way to hide the port number is to use the default ports of 80 or 443. The browser needs to know what port to send the request to, and that will appear on the address bar when it's a non-standard port. You might be able to redirect to another VIP and then re-direct back if you need to.

     

    • Wasim_Hassan_13's avatar
      Wasim_Hassan_13
      Icon for Nimbostratus rankNimbostratus
      You mean to say I need to create Two VIP one for Port 443 and one for port 8060