LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 02-21-2004, 09:34 AM   #1
MikeSmith36
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, 10:48 AM   #2
MikeSmith36
LQ Newbie
 
Registered: Feb 2004
Location: Sunderland UK
Distribution: Mandrake
Posts: 2

Original Poster
Rep: Reputation: 0
Talking

Solved this thanks.

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

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

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

Thanks anyway

Mike
 
  


Reply


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 09:02 AM
Home network - Internet sharing Artik Linux - Networking 1 05-09-2005 08:29 AM
enabling internet sharing through network tehnick Slackware 4 06-06-2004 04:40 PM
problem sharing internet connection thru crossover network kozonak Linux - Newbie 3 03-09-2004 04:39 AM
small network RH 8.0 without internet sharing guanyu Linux - Networking 0 11-05-2002 03:20 AM


All times are GMT -5. The time now is 07:18 PM.

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