Forum Discussion

vashvgl_339575's avatar
vashvgl_339575
Icon for Nimbostratus rankNimbostratus
Jul 11, 2018

iRule or Policy to do Redirection Possibly

All,

 

I am fairly new to the f5 and I'm trying to figure out how to do redirection when using url with port number then hitting a pool it would load balance one of the servers. I've already created the nodes with port numbers 10400 and 10000. I've create a pool with those nodes and create http and https VIP. What I'm trying to do is when a user type in or or or it will load balance using those pools. When I do that I keep getting the page cannot be displayed.

 

Going to the servers directly work:

 

But if I go using the VIP it doesn't work:

 

1 Reply

  • You can create 2 VIP or a wild card VIP:

     

    First alternative, you can create 2 VIPS, supose xyz ip is 1.1.1.1:

     

    • VIP1: 1.1.1.1:10400
    • pool member1: 2.2.2.1:10400
    • pool member2: 2.2.2.2:10400

    and

     

    • VIP2: 1.1.1.1:10000
    • pool member1: 2.2.2.1:10000
    • pool member2: 2.2.2.2:10000

    Other alternative is to have only one VIP:

     

    • VIP 1.1.1.1:*
    • pool member1: 2.2.2.1:*
    • pool member2: 2.2.2.2:*

    you have to disable "Address translation" and "port translation" in VS settings. Additional as you set a wildcard VS you can set an irule to allow only port 10000 and 10400.

     

    Let me now if you need more details or help for implementation.

     

    Regards