Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

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 http://xyz:10400/test/ or https://xyz:10400/test/ or http://xyz:10000/test/ or https://xyz:10000/test/ 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: https://abc:10400/test/

But if I go using the VIP it doesn't work: https://xyz:10400/test/

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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

0
Comments on this Answer
Comment made 5 months ago by vashvgl 1

I didn't realize that the service port on the VIP needed to be changed also to 10400 I thought you have to use only 80 or 443 for the service port because the nodes I put in were using the 10400. Your answer solved my problem thank you for the quick response.

0
Comment made 5 months ago by vashvgl 1

Hey youssef I got this to work for https but how would it work for http to https redirection?

0