Forum Discussion

socar65's avatar
socar65
Icon for Nimbostratus rankNimbostratus
Mar 30, 2018

Redirect from PORT 8888 TO 80

Hi All,

 

Help me clear up something. So, in the examples posted, if I have a user who has to utilize port 8888 but wants it redirected to port 80, would it be easier to just change the VIP to 80 and leave the pool at 8888 and not even utilize a irule and let translation (port) on the VIP do it's job or will I still need to do like the example provided? I reckon I could probably change the pool member port to 80 and VIP TO 8888, NOT SURE IF THAT MAKES A DIFFERENCE.

 

ThANKS,

 

Jesse

 

4 Replies

  • Could you add more context to your question?, with examples in the post? Why does the user have to utilize port 8888? I'm going to assume the traffic is web traffic, since port 80 was referenced for pool members?

     

  • I don't think you need an iRule. You just have to pick any one of the two options:

    Client >> http://domain.com/ >> VIP:80 >> Pool:8888
    
    Client >> http://domain.com:8888/ >> VIP:8888 >> Pool:80
    
  • Shaun,

     

    You are correct --web traffic currently being used on a legacy server port 8888 that is scheduled to be decommissioned soon, so idea was/is t use F5 to traverse this traffic. I built a new server/node with specified pool to get all traffic from legacy to new node. Currently both pool and VIP are set up for ports 8888. To me, it makes sense to use VIP (easier) port translation 80 rather than 8888 and let VIP do it's job.

     

  • Forward thinking, to have less changes, I'd setup a VIP that listens on port 8888, that forwards with an iRule to port 80. The same as one would do to forward port 80 traffic with an irule to the port 443 vip.

    -Copy the http to https irule 443 --> 80 iRule and modify with to listen for port 8888

    -Create a Standard VIP with an the 8888 irule, http profile and no pool.
    

    When the legacy application is decommissioned, you can delete the VIP that forwards 8888 to port 80.