On Fri, 11 Jul 2008, Rony wrote: > Dr. Sharukh K. R. Pavri. wrote: > > > > > > That command is only run on the laptop and not the router. > > > > These are the outputs: > > > > ------------------------------------- > > [EMAIL PROTECTED]:~$ route > > Kernel IP routing table > > Destination Gateway Genmask Flags Metric Ref Use > > Iface > > 192.168.1.0 * 255.255.255.0 U 0 0 0 > > wlan0 > > 172.16.76.0 * 255.255.255.0 U 0 0 0 > > vmnet8 > > 202.88.160.0 * 255.255.255.0 U 0 0 0 > > eth0 > > 192.168.237.0 * 255.255.255.0 U 0 0 0 > > vmnet1 > > link-local * 255.255.0.0 U 1000 0 0 > > eth0 > > default 202.88.160.161 0.0.0.0 UG 0 0 0 > > eth0 > > > > What are vmnet1 and vmnet8? Can you ping your gateway 202.88.160.161?
those are virtual nic's set up by vmware. > > > > ------------------------------------------------ > > > > [EMAIL PROTECTED]:~$ cat /etc/network/interfaces > > auto lo > > iface lo inet loopback > > address 127.0.0.1 > > netmask 255.0.0.0 > > > > auto eth0 > > iface eth0 inet static > > address 202.XXX.XXX.XXX > > netmask 255.255.255.0 > > gateway 202.88.160.161 > > > You are using Hathway's cable modem, and I recollect that it uses a > netmask of 255.255.254.0, since the third octal value is different for > your IP and Gateway. Maybe in your area it uses the same values. However > if your laptop accesses the gateway, the entries may be OK. > > > #auto eth1 > > #iface eth1 inet dhcp > > > > #auto eth2 > > #iface eth2 inet dhcp > > > > #auto ath0 > > #iface ath0 inet dhcp > > > > auto wlan0 > > iface wlan0 inet static > > address 192.168.1.202 > > netmask 255.255.255.0 > > gateway 202.XXX.XXX.XXX > > broadcast 192.168.1.255 > > wireless_mode ad-hoc > > wireless-essid "secret" > > > > ----------------------------------------------- > > > > I have added a line for essid in /etc/network/interfaces but iwconfig > > shows it to be off/any > > > > ---------------------------------------------- > > > > I am able to ping to and from my router machine to my laptop, it's just > > that when I run the iptables commands that the router machine is no longer > > able to access the net itself. > > > > If you want a more easy firewall setup, use Arno's firewall. It asks > questions during setup and you can configure it to your choice. You can > also re-configure it using sudo dpkg-reconfigure arnos..... It will > automatically start on your PC startup. > > > If I then do a /etc/init.d/networking restart, the router machine is able > > to connect to the internet but the laptop is cut off. > > > > > > -- > Regards, > > Rony. > > GNU/Linux ! > No Viruses > No Spyware > Only Freedom. > > -- > http://mm.glug-bom.org/mailman/listinfo/linuxers -- Dr. Sharukh K. R. Pavri. Homoeopath, Linuxer. REHAB is for quitters. -- http://mm.glug-bom.org/mailman/listinfo/linuxers

