Route traffic

Questions about cabled networking
Forum rules
Before you post please read how to get help
tcpip
Level 2
Level 2
Posts: 88
Joined: Thu Sep 24, 2015 3:32 pm

Route traffic

Postby tcpip » Fri Oct 06, 2017 5:12 am

Hello,

I have 1 server connected to internet and other 2 connected to my server, how can I configure my servers so when they do an any task that requestes internet goes via the server 1?

thanks.

trapperjohn
Level 5
Level 5
Posts: 779
Joined: Wed Jul 11, 2012 4:10 pm
Contact:

Re: Route traffic

Postby trapperjohn » Fri Oct 06, 2017 7:37 pm

Hi,

Assuming the server is a Linux system the task can be accomplished with ip forwarding and iptables (masquerading). The are several articles that provide guidance but the best, in my opinion, is https://wiki.archlinux.org/index.php/router. Naturally, you need to weed out the Arch-specific stuff.

However, I avoid home-rolling routers from existing systems with other purposes. I like a dedicated system and there are great router/gateway/firewall distros available. My preference is pfsense.

tcpip
Level 2
Level 2
Posts: 88
Joined: Thu Sep 24, 2015 3:32 pm

Re: Route traffic

Postby tcpip » Fri Oct 06, 2017 8:13 pm

hello,

My topology is very simple

Internet ---> Linux Server -----> Linux server 1

I disable the iptable in linux server, but when I try to update or install any up from linux server 1 to internet I dont have access.


Ithanks


Return to “Ethernet”