Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Internet Connection Sharing Wlan->eth0 without Network Manag
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kaiulrich
n00b
n00b


Joined: 10 Sep 2005
Posts: 59

PostPosted: Sat May 31, 2014 7:41 pm    Post subject: Internet Connection Sharing Wlan->eth0 without Network Ma Reply with quote

Hello,

Can anyone help me to share the existing Wlan connection of my Gentoo laptop with an other computer connected directly to eth0 via a network cable
without Network Manager :-)
Code:

Internet ---WLAN---> Genoo Laptop ---LAN Kabel---> Other Computer


greeting
quay
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Mon Jun 02, 2014 10:52 am    Post subject: Reply with quote

You need to bridge both eth0 and [assumed it is] wlan0 as, say, br0. If you know how bridging works, then it'll be trivial for you. Otherwise tell us what your wireless stack is (wpa_supplicant, ...) and if you're using OpenRC or systemd.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3137

PostPosted: Mon Jun 02, 2014 8:49 pm    Post subject: Reply with quote

One way is to bridge 2 devices to make your laptop work as an ethernet switch (use brctl to do that)
Another way it to make it act as router using iptables nat with masquerade and ip forwarding in kernel. Which one suits you better deppedns on how many IP adresses you want for those computers. IP routing allows you hide local network and pretend its' only 1 computer. Bridging allows eassier access from the internet
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum