Skip to content

Instantly share code, notes, and snippets.

@jeremysells
Created October 12, 2018 16:19
Show Gist options
  • Save jeremysells/96fcb81957357685936679d2940a00cf to your computer and use it in GitHub Desktop.
Save jeremysells/96fcb81957357685936679d2940a00cf to your computer and use it in GitHub Desktop.
ubuntu-ics notes

Notes on ICS from a VM

Some notes when I was working with ubuntu-ics. These might not be complete and are probably missing things

Hints

  • remove/disable apparmor might help
  • logs are in syslog (cat /var/log/syslog)

Config

  • OS = Xubuntu (Ubuntu 18.04.1 LTS)
  • enp0s3 = internet connection
  • enp0s8 = client network

Helpful links

Steps

  • apt install isc-dhcp-server
  • nano /etc/default/isc-dhcp-server and set INTERFACESv4="enp0s8"
  • cat dhcpd.conf (below)
ddns-update-style none;
log-facility local7;

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.10 192.168.1.100;
  option domain-name "example.com";
  option domain-name-servers 192.168.1.1;
  option routers 192.168.1.1;
}

host pi {
  hardware ethernet 52:54:00:5e:7a:a4;
  fixed-address 192.168.1.250;
  option host-name "pi.example.com";
}
  • sudo /etc/init.d/apparmor stop
  • sudo systemctl enable isc-dhcp-server
  • sudo systemctl restart isc-dhcp-server
  • (not sure if needed) /sbin/iptables -P FORWARD ACCEPT
  • (not sure if needed) /sbin/iptables --table nat -A POSTROUTING -o enp0s3 -j MASQUERADE
  • (not sure if needed) sysctl -w net.ipv4.ip_forward=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment