PF - load balance/round-robin/multiple ports

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <misc@...>
Date: Saturday, September 15, 2007 - 4:33 am

Hello List,

I'd like to do a similar thing like this:

web_servers = "{ 10.0.0.10, 10.0.0.11, 10.0.0.13 }"

rdr on $ext_if proto tcp from any to any port 80 -> $web_servers \
round-robin sticky-address

But I'd like to define multiple ports and I'd like to loop through the
ports.

So like this: (but of course this is not working)
web_ports = "{ 88, 81, 82 }"
web_server = "{ 192.168.1.1 }"

rdr on $ext_if proto tcp from any to any port 80 -> $web_server port
$web_ports round-robin sticky-address

Is it possible to do something like this? I'd like to run 3 or more http
servers on the same host on different ports, and I'd like to redirect
the request received to port 80 to a random port from the $web_ports list.

Thanks in advance

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: wooh@wooh.hu
Phone: +36 30 33-55-735 (Hungary)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
PF - load balance/round-robin/multiple ports, Adam PAPAI, (Sat Sep 15, 4:33 am)