Re: wifi network connection



Thanks Mihira, it works after I rebooted the wifi router.

Thank you for your patient helps.

Kind Regards,

Jim
On 12/25/07, hce <webmail.hce@xxxxxxxxx> wrote:
On 12/26/07, Mihira Fernando <mihiratheace@xxxxxxxxx> wrote:
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.

I tried to set static IP down and using dhcp client to test dhcp
server. But, does not make sense.

~$ 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.

Understand.

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

I did those two commands, but still not working.

~$ sudo /sbin/iptables -L Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT 0 -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Should I make eth1 accept for both INPUT and OUTPUT as well?

Thank you.

Jim



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: wifi network connection
    ... Chain FORWARD (policy ACCEPT) ... I also tried ifconfig eth1 down and run eth1 by udhcpc, ... I tried to set static IP down and using dhcp client to test dhcp ...
    (Debian-User)
  • Re: dhclient in 6.0
    ... ...it's worth considering the way it standardizes ... DHCP is worthwhile, learning to do ARP also lets us pick up on Bernard ... I'm not really interested in arguing with either you or ISC's policy, ... Because of the placement of the buffer which might be overflowed, it is unlikely this bug will result in serious consequences, however the possibility of a remotely triggered server crash cannot be ruled out. ...
    (freebsd-stable)
  • Re: Hosts IP address cant be found
    ... a local network and has Internet access through a hardware firewall. ... auto eth1 ... interfaces; there's a get-mac-address.sh whereby you can set up ... interfaces configures eth1 using dhcp. ...
    (Debian-User)
  • Re: Certificate-based DHCP authentication
    ... DHCP was not designed with goal of assigning ... another option would be to build IPSec policy. ... > same IP subnet as our other office PCs. ...
    (microsoft.public.windows.server.security)
  • Re: dhclient blues
    ... > and IP addresses assigned by DHCP. ... I want a firewall between myself and the net. ... > eth1 to the LAN. ... The machines on the LAN must, ...
    (comp.os.linux.networking)