Page 1 of 1

Route traffic

Posted: Fri Oct 06, 2017 5:12 am
by tcpip
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.

Re: Route traffic

Posted: Fri Oct 06, 2017 7:37 pm
by trapperjohn
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.

Re: Route traffic

Posted: Fri Oct 06, 2017 8:13 pm
by tcpip
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