Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Networking
Reload this Page wireless internet sharing between Debian and a pda
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Networking Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Reply
 
Thread Tools Display Modes
Old 06-10-2006   #1 (permalink)
fayce42
Just Joined!
 
Join Date: Jun 2006
Posts: 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 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.
fayce42 is offline   Reply With Quote
Old 06-13-2006   #2 (permalink)
KenJackson
Linux User
 
KenJackson's Avatar
 
Join Date: Jun 2006
Location: Maryland, USA
Posts: 466
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.
KenJackson is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 01:56 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0