Forwarding using Ipvsadm

Wonder if anyone can help here with this problem I have with IP forwarding using ipvsadm.

We have a director box that is doing load balancing using ipvsadm, this works fine, distributing traffic for various services over multiple machines.

I am trying to do the following from the same box.

I have a web server at (IP's are examples)

123.123.123.123 (running on port 8081)

I have an IP on the director 123.123.123.124 which I want to direct the traffic going in on port 80 (only for this IP, not all IP's on the director that forward to other servers, both on port 80) to 123.123.123.123 that is listening on port 8081

I have tried the following and it doesn't work.


Director:

Add the director IP entry
# ipvsadm -A -t ipvsadm -a -t 123.123.123.124:80 -r

# ipvsadm -a -t 123.123.123.124:80 -r 123.123.123.123:8081 -m

Ip forwarding is turned on

# cat /proc/sys/net/ipv4/ip_forward
1


Viewing http://123.123.123.124 just hangs and never makes the connection.

Does anyone have experience with ipvsadm and this kind of forwarding ?

Any help is appreciated.

 

 

 

 

Top