Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Advertise on
How are server IPs configured on the private end of GRE tunnels?
New on LowEndTalk? Please Register and read our Community Rules.

How are server IPs configured on the private end of GRE tunnels?

rchurchrchurch Member
edited February 18 in Help

When you are using GRE tunnels how do you configure the IP address used in services in the private side?

Say I have a GRE tunnel that tunnels from to with being the private side. The private IPs would be say and respectively

Prior to the tunnelling the hosts file at the private end would be configured with the real IP address, eg ->

After the tunnel is created the public IP changes - ->

What would happen to the hosts file then?

Would the services need to be switched to the private IP address rather the public one, ie rather than the original, or would the GRE tunnel forward the connection from to and leaving the local network configuration untouched?

GRE tunnel seems to be like NAT to me, but with forwarding from an internal private IP to a public IP, rather than the usual NAT which forwards from a public IP to a private IP behind the firewall.

I think I can sum up my question this way.

With GRE tunnels does the hosts file of the private server need to change?

Can other clients who have the real IP address in their own host files or have a private DNS which uses the real IP address connect directly without going through the tunnel?

Affiliate Links: Prometeus - Rock Solid KVM | Xen | OpenVZ    Netcup coupon 36nc15356334959

Sign In or Register to comment.