Advertisement

02.03.2007 at 03:28PM PST, ID: 22148476
[x]
Attachment Details

make linux RH as  router/gateway

Asked by valleytech in Linux, Linux Distributions

Tags: linux, router, make, gateway

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: 209.172.108.16 - Gateway = 209.172.108.1 Sub= 255.255.255.224, primary and secondary = 209.81.59.2/209.81.9.151

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

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

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 helpsStart Free Trial
[+][-]02.04.2007 at 01:20AM PST, ID: 18462495

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux, Linux Distributions
Tags: linux, router, make, gateway
Sign Up Now!
Solution Provided By: ravenpl
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02.04.2007 at 04:23AM PST, ID: 18462740

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.05.2007 at 08:33AM PST, ID: 18469019

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32