You are not logged in.

#1 2012-04-23 16:47:49

ottoshmidt
Member
From: Tbilisi, Georgia
Registered: 2010-04-03
Posts: 30

[Solved] Share internet from Wlan0 to other computers

Is it possible to share internet connection from my laptop which is connected to internet through wlan0 interface (wireless) to other PCs on the LAN with my eth0 interface and lan cable?
(Like,  Internet >> wireless Access-point >> laptop (wlan0) >> bridge to eth0 (lan card on this laptop) >> switch (through wired connection) >> other PCs)
and where can I find how?


Thanks

Last edited by ottoshmidt (2012-04-23 21:26:58)

Offline

#2 2012-04-23 16:53:06

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [Solved] Share internet from Wlan0 to other computers

That's perfectly possible. This wiki article contains some info on how to do it exactly.


Burninate!

Offline

#3 2012-04-23 18:10:54

alex_anthony
Member
From: UK
Registered: 2007-09-25
Posts: 344

Re: [Solved] Share internet from Wlan0 to other computers

Can also be done with networkmanager if you don't want to get your hands dirty (and if you're using it anyway).
In summary:
Make sure dnsmasq and iptables are installed
Connect nm to wireless
Connect ethernet cable between computers
in nm-connection-editor, edit wired connection
Under ipv4 settings, choose method, shared to other computers

Disclaimer: This was when I was using fedora, but I have a hotspot the other way round on arch so I presume it will work.
https://bbs.archlinux.org/viewtopic.php?id=139653

Offline

#4 2012-04-23 21:26:07

ottoshmidt
Member
From: Tbilisi, Georgia
Registered: 2010-04-03
Posts: 30

Re: [Solved] Share internet from Wlan0 to other computers

alex_anthony wrote:

Can also be done with networkmanager if you don't want to get your hands dirty (and if you're using it anyway).
In summary:
Make sure dnsmasq and iptables are installed
Connect nm to wireless
Connect ethernet cable between computers
in nm-connection-editor, edit wired connection
Under ipv4 settings, choose method, shared to other computers

Disclaimer: This was when I was using fedora, but I have a hotspot the other way round on arch so I presume it will work.
https://bbs.archlinux.org/viewtopic.php?id=139653

Actually I did that one first, saw that post, but couldn't succeed and then tried https://wiki.archlinux.org/index.php/Internet_Share and succeeded. So I needed to enable ipv4  forwards and also to install iptables (which should be running as a daemon). Can't judge what was wrong in your steps for sure but at least, as I said arch wiki gives a right direction to go.

Thanks all anyway.

Last edited by ottoshmidt (2012-04-23 21:28:04)

Offline

Board footer

Powered by FluxBB