Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


  Search this Thread
Old 02-21-2004, 10:34 AM   #1
LQ Newbie
Registered: Feb 2004
Location: Sunderland UK
Distribution: Mandrake
Posts: 2

Rep: Reputation: 0
Question Internet sharing on ad-hoc network

I am using Mandrake 9.2 with a Netgear MA101 USB wireless network adapter, which after a lot of tinkering I have working perfectly.
I have a simple ad hoc network with my main PC connected directly to cable Internet and then wirelessly to the laptop.
I can browse the network from both computers and send/receive files etc over the wireless network.
My problem is that I cannot surf the Internet from the laptop over the network as I can on my windows network.
Remembering that the Linux PC is connected to the Internet and has Linux on it, how do I share this Internet connection on the laptop?
I cannot use the graphical interface on Mandrake as the hardware (MA101) is not recognised on it, so any configuration will have to be done manually.
If anyone uses webmin I do have that installed and could carry out any alteration on that if advised.

Thanks in advance - Mike
Old 02-22-2004, 11:48 AM   #2
LQ Newbie
Registered: Feb 2004
Location: Sunderland UK
Distribution: Mandrake
Posts: 2

Original Poster
Rep: Reputation: 0

Solved this thanks.

For information the following line shares an internet connection over a wireless network -

/sbin/iptables -t nat -A POSTROUTING -s -j MASQUERADE

There are issues around security but I'll work on those. In the mean time it all works!

Thanks anyway



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ad-hoc connection (and internet sharing) between two linux boxes. A complex question. riccisit Linux - Wireless Networking 1 09-29-2005 10:02 AM
Home network - Internet sharing Artik Linux - Networking 1 05-09-2005 09:29 AM
enabling internet sharing through network tehnick Slackware 4 06-06-2004 05:40 PM
problem sharing internet connection thru crossover network kozonak Linux - Newbie 3 03-09-2004 05:39 AM
small network RH 8.0 without internet sharing guanyu Linux - Networking 0 11-05-2002 04:20 AM > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 01:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration