Last active
January 10, 2021 19:35
-
-
Save reckenrode/dee3385e701922ee07b637c38f0ce97c to your computer and use it in GitHub Desktop.
Network configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Network] | |
Address=192.168._.1/24 # IPv4 address of my router | |
IPv6PrefixDelegation=yes # Use both delegated and static prefixes | |
IPMasquerade=true # Enable NAT for IPv4 | |
[IPv6PrefixDelegation] | |
OtherInformation=yes # Advertise that other information is available via DHCPv6 | |
RouterLifetimeSec=1200 # Specify a router lifetime, so the device advertises itself as one | |
DNS=_link_local # Advertise the link-local address as the DNS server | |
Domains=domain.example.com # Advertise DNS search domains | |
DNSLifetimeSec=1800 # Specify the lifetime of the DNS information | |
[IPv6Prefix] | |
Prefix=fd__:____:____:____::/64 # Define a ULA prefix | |
Assign=true # Assign an address to the LAN interface in the prefix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Match] | |
Name=enp1s0 # Match the interface with this name. | |
[Network] | |
DHCP=yes # Get an IP address via DHCPv4 and DHCPv6 | |
IPv6AcceptRA=true # Request a prefix from my ISP | |
IPv6PrivacyExtensions=false # Effectively just documentation b/c they only work with SLAAC addrs | |
[Route] # Cablehaunt mitigation (delete this section if your modem is not affected) | |
Destination=192.168.100.1/32 | |
Type=blackhole | |
[DHCPv4] | |
ClientIdentifier=mac # Send the router’s MAC to get the IP address I expect | |
UseDNS=false # Ignore the ISP’s DNS servers b/c I run an internal DNS server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment