LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Internet sharing on ad-hoc network (https://www.linuxquestions.org/questions/linux-wireless-networking-41/internet-sharing-on-ad-hoc-network-148727/)

MikeSmith36 02-21-2004 09:34 AM

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

MikeSmith36 02-22-2004 10:48 AM

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


All times are GMT -5. The time now is 06:15 AM.