Check if IP forwarding is enabled. As you have all the networks directory connected you can ping from linux to windows and vice a versa. But for windows to acess internet and your linux to behave as a router you need IP Forwarding enabled, so that you packets from windows system can be routed to internet via linux. Also you need to set a default route in your windows system to tell that you linux interface 192.168.1.1 is your gateway for any packets.
Hope this helps. Regards, Viket On Sat, Aug 9, 2008 at 11:27 AM, Sudhir Dimri <[EMAIL PROTECTED]>wrote: > dear all > 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 5 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 help > > Did you know? You can CHAT without downloading messenger. Go to > http://in.webmessenger.yahoo.com/ > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed]
