/share-net

Internet connection sharing made simple with a straightforward bash script

Primary LanguageShell

ShareNET

Internet connection sharing made simple with a straight-forward bash script


Features:

  • Share ethernet to wireless, vice versa, or any combination
  • Supports NAT (great for circumventing hotel/airline Wi-Fi fees)
  • No arguments are necessary in most cases - it just works!

Known limitations:

  • Wi-Fi interface must support AP mode in order to be used as a hotspot
  • Wi-Fi interfaces sometimes do not like to be bridged. Use NAT (the default) instead

    Usage: share-net.sh [options]

     Options:

            -i      <internet_interface>
            -s      <shared_interface>
            -d      <DHCP subnet> e.g. 10.0.0.0
            -b      enable bridged mode (instead of NAT)

      Programs required:

            dnsmasq hostapd iptables ip