Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Cool wireless internet sharing between Debian and a pda

    Hi folks!
    I'm running a Debian 3.1, and I've just installed and configured a Wifi Card (Motorola wn825g) as Ad-Hoc to share my internet connexion with my PDA.
    my debian box is connected trought eth0 which is wired and proxied (<- it's a residential connexion) , my Wifi's interface is wlan0.
    I've typed an "ifconfig wlan0" and I put on my PDA "" as ip adress and "" as gateway.
    When I ping my PDA from my Debian box , it works.
    From my PDA I can type on the browser "" so I can check my website (on my laptop) and it works.
    But unfortunately nothing else works on my PDA, so it's still not connected
    I've googled several keywords and I've learned that an iptable command can solve this problem.
    I've tried: "iptables -t nat -A POSTROUTING -o eth0 -s -j MASQUERADE"
    but nothing happens.

    I would appreciate your help guys !
    thank you for giving me some of your precious time.

  2. #2
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Maryland, USA
    Type this into a shell on the laptop:

    /sbin/sysctl net.ipv4.ip_forward

    That will query a kernel variable that must be set to 1 for forwarding to work, i.e. routing.
    If it's 0, you need to edit /etc/sysctl.conf to add/edit a line:

    net.ipv4.ip_forward = 1

    Also, to set it immediately, I think this works (as root):
    echo 1 > /proc/sys/net/ipv4/ip_forward

    You probably have your routing table setup correctly if the laptop and PDA can ping each other.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts