Skip to content

Instantly share code, notes, and snippets.

@cransom
Created May 1, 2019 01:02
Show Gist options
  • Save cransom/89bccbd9cb4e420441f0cf764cda3a00 to your computer and use it in GitHub Desktop.
Save cransom/89bccbd9cb4e420441f0cf764cda3a00 to your computer and use it in GitHub Desktop.
#eno1.10 is outside, eno1.20 is inside.
services.dnsmasq = {
enable = true;
resolveLocalQueries = true;
extraConfig = ''
dhcp-range=::1,::ffff,constructor:eno1.20,ra-names,48h
#and other stuff
'';
};
networking.dhcpcd.persistent = true;
networking.dhcpcd.extraConfig = ''
xidhwaddr
noipv6rs
#debug
interface eno1.10
ipv6rs
iaid 10
ia_na 1
ia_pd 2/::/56 eno1.20/2
'';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment