I am hosting a teamspeak 3 server on a dedi-box and I want to be apple to connect to the server with multiple IP's that's IP's is a different VPS's for example :
VPS-1 --> dedi-server
VPS-2 --> dedi-server
VPS-3 --> dedi-server
etc.
I have made it work when I use 1 VPS only, because I bind the teamspek 3 server to a local GRE IP ( in the dedi-server ) so is there a way to make the other VPS's work too? I will make it more clear if I give you the commands I use to do that:
iptunnel add gre1 mode gre local [dedi-public-ip] remote [VPS-1-Public-IP] ttl 255
ip addr add 192.168.168.2/30 dev gre1
ip link set gre1 up
iptunnel add gre2 mode gre local [dedi-public-ip] remote [VPS-2-Public-IP] ttl 255
ip addr add 192.168.10.2/30 dev gre2
ip link set gre2 up
echo '100 AAA' >> /etc/iproute2/rt_tables
ip rule add from 192.168.10.0/30 table AAA
ip route add default via 192.168.10.1 table AAA
echo '100 BUYVM' >> /etc/iproute2/rt_tables
ip rule add from 192.168.168.0/30 table BUYVM
ip route add default via 192.168.168.1 table BUYVM
I used this tutorial to do it : http://wiki.buyvm.net/doku.php/gre_tunnel
I think that if I can route the traffic from GRE-1 to GRE-2 or whatever I just want all VPS's works.
Note : when I execute this command :
ip route add default via 192.168.168.1 table BUYVM
This made the VPS-1 allow me to connect to the teamspeak server that's already binded to this IP : 192.168.168.2