View previous topic :: View next topic |
Author |
Message |
kaiulrich n00b
Joined: 10 Sep 2005 Posts: 59
|
Posted: Sat May 31, 2014 7:41 pm Post subject: Internet Connection Sharing Wlan->eth0 without Network Ma |
|
|
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 |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Mon Jun 02, 2014 10:52 am Post subject: |
|
|
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 |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3095
|
Posted: Mon Jun 02, 2014 8:49 pm Post subject: |
|
|
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 |
|
|
|