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.
ifconfig sudo /sbin/iptables -t nat -A POSTROUTING -o wlp6s0 -j MASQUERADE echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward