code:work:lvisf:tips:start
Tips and Tricks
Sharing WiFi to Local LAN
If you have a computer with access to a WiFi and want to share to a local LAN and say you are booting off a ubuntu usb stick.
- Boot the compute freshly
- Put the computer on the WiFi
- Bring up a browser and log into the network
- Change the computer's wired connection to
- IP4 Manual instead of DHCP
- Set IP to 10.4.1.254 / 255.0.0.0 with no DNS or Gateway required
- Enable NAT network sharing with the following two commands
ifconfig sudo /sbin/iptables -t nat -A POSTROUTING -o wlp6s0 -j MASQUERADE echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
- Set any LAN computers to us 10.4.1.254 as gateway (and DNS to 8.8.8.8)
code/work/lvisf/tips/start.txt · Last modified: 2017/07/24 14:12 by david