Connect to Internet Via Another Server

Issues related to configuring your network
Post Reply
xtdz32
Posts: 17
Joined: 2016/03/18 12:49:10

Connect to Internet Via Another Server

Post by xtdz32 » 2020/02/04 12:10:52

I have two servers, one on the cloud and the other in a data centre.

Both servers are interconnected via a VPN tunnel. I want the one in the Data centre to be able to access the internet via the one on the cloud.

Eg, Local Host IP is 10.2.2.150 and cloud IP is 10.5.4.102,
i want .150 to be able get internet access via .102 so i can download updates etc.

How do i configure please

User avatar
jlehtone
Posts: 2534
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Connect to Internet Via Another Server

Post by jlehtone » 2020/02/04 13:18:36

xtdz32 wrote:
2020/02/04 12:10:52
interconnected via a VPN tunnel
Note: If two machines can talk to each other via a tunnel, then the endpoints of the tunnel must be able to communicate with each other via public network.
(In reality that public link is probably firewalled to allow only tunnels.)

You have machine A that can talk with machine B.
The machine B can connect out to entire Internet.

Tell A to use B as router for everything that has no better route.
Tell B to forward (aka route) and to masquerade outgoing traffic.

How to do those exactly? Depends on what you actually have, like how the VPN is set up, etc.

Post Reply

Return to “CentOS 8 - Networking Support”