title: how to make multi GRE with same gw?
body: <p>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 :</p>
  
  <hr>
  
  <p>VPS-1 --> dedi-server</p>
  
  <p>VPS-2 --> dedi-server</p>
  
  <p>VPS-3 --> dedi-server</p>
  
  <p>etc.</p>
  
  <hr>
  
  <p>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:</p>
  
  <hr>
  
  <pre><code>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' &gt;&gt; /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' &gt;&gt; /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 
  </code></pre>
  
  <hr>
  
  <p>I used this tutorial to do it : <a href="http://wiki.buyvm.net/doku.php/gre_tunnel" rel="nofollow">http://wiki.buyvm.net/doku.php/gre_tunnel</a></p>
  
  <hr>
  
  <p>I think that if I can route the traffic from GRE-1 to GRE-2 or whatever I just want all VPS's works.</p>
  
  <p>Note : when I execute this command : </p>
  
  <pre><code>ip route add default via 192.168.168.1 table BUYVM
  </code></pre>
  
  <p>This made the VPS-1 allow me to connect to the teamspeak server that's already binded to this IP :  192.168.168.2</p>