Hi!
I have tried to set up a Virtual Server thru IP Tunneling but
had no success. I have tested VS on a two machine configuration,
both, the server and the router has only one ethernet adapter.
Following is my (telnet port) configuration:
ROUTER: IP_ADDRESS=192.168.1.55, VIRTUAL_ADDRESS=192.168.1.10
janus:/root# insmod /lib/modules/2.0.35/net/new_tunnel.o
janus:/root# insmod /lib/modules/2.0.35/ipv4/ipip.o
janus:/root# echo "1" > /proc/sys/net/ipv4/ip_forward
janus:/root# ifconfig eth0:0 192.168.1.10 up
janus:/root# ippfvsadm -A -t 192.168.1.10:23 -R 192.168.1.101
SERVER: IP_ADDRESS=192.168.1.101
momo:/root# insmod /lib/modules/2.0.35/net/new_tunnel.o
momo:/root# insmod /lib/modules/2.0.35/ipv4/ipip.o
momo:/root# ifconfig tunl0 192.168.1.10 up
momo:/root# echo "1" > /proc/sys/net/ipv4/ip_forward
momo:/root# route add -host 192.168.1.10 dev lo
When I try to telnet to 192.168.1.10 on the ROUTER, the tcpdump tells me,
that the ROUTER sends the TCP packets to 192.168.1.10 (virtual address),
instead of encapsulating them and sending them to the SERVER.
The tunneling works fine if I avoid using Virtual Server and set up the
tunneling device as follows:
janus:/root# ifconfig tunl0 192.168.1.55 pointopoint 192.168.1.101 up
janus:/root# route add -host 192.168.1.10 dev tunl0
Can anyone give me a hint?!
Happy New Year!
Peter
|