Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: wifi network connection

From: Mihira Fernando <mihiratheace(at)gmail.com>
Date: Tue Dec 25 2007 - 09:31:33 EST


On Tue December 25 2007, hce wrote:
>
> Yes, I run the ppp manually. I did run iptable manually, but did not
> seems anything added to the list?
>
> ~$ sudo /sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
>
> ~$ sudo /sbin/iptables -L
> Chain INPUT (policy ACCEPT)
> target prot opt source destination
>
> Chain FORWARD (policy ACCEPT)
> target prot opt source destination
>
> Chain OUTPUT (policy ACCEPT)
> target prot opt source destination
>
> > the ip forwarding is still enabled right ?
>
> Yes, I added net.ipv4.conf.default.forwarding=1 in /etc/sysctl.conf
>
> I also tried ifconfig eth1 down and run eth1 by udhcpc, but failed.
>
> $ sudo /sbin/udhcpc -i eth1
> udhcpc (v0.9.9-pre) started
> Sending discover...
> Sending discover...
> Sending discover...
> Lease failed:

Why are you running dhcp client on eth1 ? its configured with a static IP.
>
> ~$ cat /etc/resolv.conf
> nameserver 203.49.70.20
> nameserver 139.134.2.190
>
> Did that mean? Why ISP dhcp server did not respose? If that does not
> work on my laptop, the wifi router won't get it work either?

ISP dhcp server is not likely to respond to dhcp requests from eth1. your ppp is getting IPs from your ISP. Not eth1.

when both ppp0 and eth1 is up, run the following commands as root:

These commands flushes out any iptables rules:

#iptables --flush 
#iptables --table nat --flush
#iptables --delete-chain 
#iptables --table nat --delete-chain

These 2 commands gets NAT and forwarding on: #iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE #iptables --append FORWARD --in-interface eth1 -j ACCEPT

This has to get the ball rolling.

Mihira.

-- 
Random Quotes From Megas XLR
Coop: You see? The mysteries of the Universe are revealed when you break 
stuff.
Jamie: When in doubt, blow up a planet.
Kiva: It's an 80 foot robot, if we can't see it, absolutely it's not here.
Glorft Technician: Unnecessary use of force in capturing the Earthers has been 
approved.


-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Tue Dec 25 02:26:08 2007

This archive was generated by hypermail 2.1.8 : Thu Feb 28 2008 - 01:17:57 EST

Do you need help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library