Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

make linux RH as router/gateway

Avatar of valleytech
valleytechFlag for United States of America asked on
LinuxLinux Distributions
3 Comments1 Solution530 ViewsLast Modified:
dear all experts
I'm on my way to make my linux PC (with 2 NICs) be a router/gateway for my LANs to get through internet, and also from that linux PC I can simulate network conditions like latency or bandwidth shortage.

Here is my setup for linux

eth0 - connected directly to my ISP - IP: - Gateway = Sub=, primary and secondary =

eth1 - connected to a switch (that connects with 2 windows servers) - IP:, Sub =, I do not set gateway for this interface.

Here is my setup for 1 windows server: IP = Gateway = ****, sub = ****.

I was able to ping from windows to linux and vice versa. But, I could not get to the internet from windows server.
I believe that I have to set sth with IPTABLES, is this correct?

And, is it possible to create a linux router/gateway such that I can allow traffic like HTTP, MySQL, FTP , email to my 2 windows servers??

Thanks so much!!
I'm really appreciated your helps
Avatar of ravenpl
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers