Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jun 2006
wireless internet sharing between Debian and a pda
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 192.168.1.1" and I put on my PDA "192.168.1.2" as ip adress and "192.168.1.1" as gateway.
When I ping my PDA from my Debian box , it works.
From my PDA I can type on the browser "http://192.168.1.1" 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 192.168.1.0/2 -j MASQUERADE"
but nothing happens.
I would appreciate your help guys !
thank you for giving me some of your precious time.
Type this into a shell on the laptop:
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.