You are not logged in.

#1 2010-09-25 13:23:27

valium97582
Member
Registered: 2010-06-19
Posts: 126

Problems with network priorities - Sharing Internet connection

I have been trying to share Internet between two computers. One is connected to the Internet via Wireless, and the other is too far for the Ethernet cable to reach it. So I've tried to use the guide Internet Share (ArchWiki), and it is ok, but when I up my Ethernet sharing device, I cannot connect to the Internet. If I just down it, the connection works back on my computer.

I've set up eth0 (sharing) with IP 192.168.0.222 and wlan0 (internet connection) DHCP (with range 192.168.0.2 to 192.168.0.200). On PC2, I have eth0 (receiving connection) with IP 192.168.0.223. If I up eth0 on PC1, I can ping PC2 from there and ping PC1 from PC2, but with no Internet connection on any of the computers. Maybe that is related with a slight mistake I did in the tutorial (on PC1):

% sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE #Wrong interface, then I noticed and...
% sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE #Now on the right interface...
% sudo /etc/rc.d/iptables save
% sudo /etc/rc.d/iptables start

Does this have anything to do with my problem?
Sorry, it's just I've never had experience with iptables.

Last edited by valium97582 (2010-09-26 18:22:38)


I'm also known as zmv on IRC.

Offline

#2 2010-09-25 15:08:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Problems with network priorities - Sharing Internet connection

What's the difference between those two interfaces: I see eth0 and eth0.
The correct wiki article is http://wiki.archlinux.org/index.php/Internet_Share (capital 'S' in 'Share' in the url).

Maybe you have to bridge your wired and wireless interfaces https://bbs.archlinux.org/viewtopic.php?id=101114
It's just a wild guess, really.

Offline

#3 2010-09-25 16:26:34

valium97582
Member
Registered: 2010-06-19
Posts: 126

Re: Problems with network priorities - Sharing Internet connection

Now I've corrected the post.


I'm also known as zmv on IRC.

Offline

Board footer

Powered by FluxBB