GRE Help Please
So I got OvZ running fine, created a container, gave it an IP, all is well. IP assigned to the VM (venet0:0) is (making this up) 18.104.22.168
I setup GRE per buyvm's doc: http://wiki.buyvm.net/doku.php/gre_tunnel
So there's a gre1 on the box with an IP of 192.168.168.2 and it can talk to 192.168.168.1, which is on a BuyVM VPS.
Now here's my Q: when I run the cPanel installer it's going to use the default route to connect to the Internet for licensing purposes, and hence discover 22.214.171.124. If I run
wget http://www.cpanel.net/showip.cgi -q -O -
Then I get 126.96.36.199. But I want it to be 209.141.38.x, which is my BuyVM filtered IP.
What I want is for my gre to be the default gateway...in other words, all traffic flows through that.
I tried this:
ip route del default
ip route add default dev gre1
But then networking stopped working altogether and I was sad.
I see the BuyVM doc discusses NATting but I'm not sure that would work...the OvZ container has a public IP and by default that's what it's going to use.