Ubuntu Server ICS
- Install Network Manager:
sudo apt-get install network-manager
- Allow it to manage the system networking: https://askubuntu.com/a/842843
- 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
-
Ensure ufw doesn't drop forwarded connections: https://superuser.com/a/1819224
-
(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
- May need to install driver for AP mode: https://github.com/Mange/rtl8192eu-linux-driver?tab=readme-ov-file#building-and-installing-using-dkms