all repos — nixfiles @ 84b93c8b1c03379dcf3f76ddd29db4dcbb7cffcd

System and user configuration, managed by nix and home-manager

nanopi: optimise routing

Alan Pearce
commit

84b93c8b1c03379dcf3f76ddd29db4dcbb7cffcd

parent

c71113f92994c4174bfdb191e8a5123e1fa60e40

1 file changed, 20 insertions(+), 0 deletions(-)

jump to
M system/nanopi.nixsystem/nanopi.nix
@@ -347,6 +347,7 @@ IPForward = "yes";
}; dhcpV4Config = { UseDNS = false; + UseRoutes = false; SendHostname = false; SendRelease = false; UseHostname = false;
@@ -362,6 +363,7 @@ UplinkInterface = ":self";
}; ipv6AcceptRAConfig = { UseDNS = false; + UseGateway = false; }; addresses = [ {
@@ -370,6 +372,24 @@ Address = "192.168.100.10/24";
# Peer = "192.168.100.1/32"; Label = "wan0:0"; # Scope = "link"; + }; + } + ]; + routes = [ + { + routeConfig = { + Gateway = "_dhcp4"; + QuickAck = true; + InitialCongestionWindow = 30; + InitialAdvertisedReceiveWindow = 30; + }; + } + { + routeConfig = { + Gateway = "_ipv6ra"; + QuickAck = true; + InitialCongestionWindow = 30; + InitialAdvertisedReceiveWindow = 30; }; } ];