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.
Route traffic
Forum rules
Before you post please read how to get help
Before you post please read how to get help
-
- Level 5
- Posts: 849
- Joined: Wed Jul 11, 2012 4:10 pm
- Contact:
Re: Route traffic
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.
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
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
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