Skip to content

Instantly share code, notes, and snippets.

@insertish
Created February 27, 2024 11:00
Show Gist options
  • Save insertish/d856e3f67ae0f8b88e8cc3a2942fa744 to your computer and use it in GitHub Desktop.
Save insertish/d856e3f67ae0f8b88e8cc3a2942fa744 to your computer and use it in GitHub Desktop.

Ubuntu Server ICS

  1. Install Network Manager: sudo apt-get install network-manager
  2. Allow it to manage the system networking: https://askubuntu.com/a/842843
  3. Configure your interface (enp37s0f0 = lan in this example):
nmcli c add con-name upstairs type ethernet ifname enp37s0f0 ipv4.method shared ipv6.method ignore
nmcli c up upstairs
  1. Ensure ufw doesn't drop forwarded connections: https://superuser.com/a/1819224

  2. (optionally) Configure a Wi-Fi network as well:

nmcli con add type wifi ifname wlxd037450ddf48 con-name hotspot autoconnect yes ssid equestria
nmcli con modify hotspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify hotspot wifi-sec.key-mgmt wpa-psk
nmcli con modify hotspot wifi-sec.psk "the wifi password ever!!!"
nmcli con up hotspot
  1. May need to install driver for AP mode: https://github.com/Mange/rtl8192eu-linux-driver?tab=readme-ov-file#building-and-installing-using-dkms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment