Public IP Routing over Private GRE tunnel

Posted by Paul on Server Fault See other posts from Server Fault or by Paul
Published on 2009-12-14T00:30:49Z Indexed on 2010/03/17 9:51 UTC
Read the original article Hit count: 486

Filed under:
|
|

I have a GRE tunnel configured between two linux boxes. The tunnel works fine. I can ping from each host the other private ip.

Head privateip: 10.0.0.1

publicip: 8.8.8.8

Tail privateip: 10.0.0.2

publicip: 7.7.7.7

The public IP on Tail has the network block 9.9.9.0/23 statically routed over the 7.7.7.7 interface. The idea is to make the 9.9.9.0/23 ips work on servers on the 8.8.8.8 network.

I configure the tail host to route the /23 block. I mounted a 9.9 IP on the head server. I can ping the 9.9 ip from the tail to the head.

I can't ping the 9.9 ip from the public internet.

I think I need to add some other routes because of gateway issues, but I can't seem to wrap my mind around it (not a router guy, just beating my way through something that I have never done before and vaguely understand)

--danks

© Server Fault or respective owner

Related posts about ip

Related posts about routing