Quantcast
Channel: LowEndTalk
Viewing all articles
Browse latest Browse all 39981

GRE Help Please

$
0
0

I have a small dedi in the same Vegas DC as @Francisco (thanks @qps). My plan is to run cPanel/WHM on part of it, and use buyvm's ddos protection via GRE.

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) 141.211.164.7

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 141.211.164.7. If I run

wget http://www.cpanel.net/showip.cgi -q -O -

Then I get 141.211.164.7. 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.


Viewing all articles
Browse latest Browse all 39981

Trending Articles