diff options
-rw-r--r-- | hosts/vidhar/dns/default.nix | 1 | ||||
-rw-r--r-- | hosts/vidhar/network/dsl.nix | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/hosts/vidhar/dns/default.nix b/hosts/vidhar/dns/default.nix index ade884e7..11e6f55f 100644 --- a/hosts/vidhar/dns/default.nix +++ b/hosts/vidhar/dns/default.nix | |||
@@ -26,6 +26,7 @@ in { | |||
26 | root-hints = "${pkgs.dns-root-data}/root.hints"; | 26 | root-hints = "${pkgs.dns-root-data}/root.hints"; |
27 | trust-anchor-file = "${pkgs.dns-root-data}/root.key"; | 27 | trust-anchor-file = "${pkgs.dns-root-data}/root.key"; |
28 | trust-anchor-signaling = false; | 28 | trust-anchor-signaling = false; |
29 | ip-dscp = 20; | ||
29 | 30 | ||
30 | num-threads = 12; | 31 | num-threads = 12; |
31 | so-reuseport = true; | 32 | so-reuseport = true; |
diff --git a/hosts/vidhar/network/dsl.nix b/hosts/vidhar/network/dsl.nix index 7a1dab58..403b0fad 100644 --- a/hosts/vidhar/network/dsl.nix +++ b/hosts/vidhar/network/dsl.nix | |||
@@ -66,14 +66,14 @@ in { | |||
66 | text = '' | 66 | text = '' |
67 | ethtool -K telekom tso off gso off gro off | 67 | ethtool -K telekom tso off gso off gro off |
68 | 68 | ||
69 | tc qdisc replace dev "${pppInterface}" root cake pppoe-ptm nat bandwidth 35mbit | 69 | tc qdisc replace dev "${pppInterface}" root cake pppoe-ptm nat diffserv4 wash bandwidth 35mbit |
70 | 70 | ||
71 | modprobe ifb | 71 | modprobe ifb |
72 | ip link del "ifb4${pppInterface}" || true | 72 | ip link del "ifb4${pppInterface}" || true |
73 | ip link add name "ifb4${pppInterface}" type ifb | 73 | ip link add name "ifb4${pppInterface}" type ifb |
74 | tc qdisc del dev "${pppInterface}" ingress || true | 74 | tc qdisc del dev "${pppInterface}" ingress || true |
75 | tc qdisc add dev "${pppInterface}" handle ffff: ingress | 75 | tc qdisc add dev "${pppInterface}" handle ffff: ingress |
76 | tc qdisc replace dev "ifb4${pppInterface}" root cake pppoe-ptm bandwidth 93mbit | 76 | tc qdisc replace dev "ifb4${pppInterface}" root cake pppoe-ptm diffserv4 bandwidth 93mbit |
77 | ip link set "ifb4${pppInterface}" up | 77 | ip link set "ifb4${pppInterface}" up |
78 | tc filter add dev "${pppInterface}" parent ffff: matchall action mirred egress redirect dev "ifb4${pppInterface}" | 78 | tc filter add dev "${pppInterface}" parent ffff: matchall action mirred egress redirect dev "ifb4${pppInterface}" |
79 | ''; | 79 | ''; |