summaryrefslogtreecommitdiff
path: root/hosts/vidhar/network
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2023-03-06 21:33:20 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2023-03-06 21:33:20 +0100
commit4c0e9c5d6d93a183ae60e711be3eb041dcc710a3 (patch)
treeed838259f8a507bc9783561fe89a6cb27c3cb579 /hosts/vidhar/network
parent47c8bd67b0852f699fa2d4d6780bb4444762e3d2 (diff)
downloadnixos-4c0e9c5d6d93a183ae60e711be3eb041dcc710a3.tar
nixos-4c0e9c5d6d93a183ae60e711be3eb041dcc710a3.tar.gz
nixos-4c0e9c5d6d93a183ae60e711be3eb041dcc710a3.tar.bz2
nixos-4c0e9c5d6d93a183ae60e711be3eb041dcc710a3.tar.xz
nixos-4c0e9c5d6d93a183ae60e711be3eb041dcc710a3.zip
...
Diffstat (limited to 'hosts/vidhar/network')
-rw-r--r--hosts/vidhar/network/dsl.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/vidhar/network/dsl.nix b/hosts/vidhar/network/dsl.nix
index 403b0fad..aa2adf4b 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 diffserv4 wash bandwidth 35mbit 69 tc qdisc replace dev "${pppInterface}" root cake memlimit 64Mb 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 diffserv4 bandwidth 93mbit 76 tc qdisc replace dev "ifb4${pppInterface}" root cake memlimit 64Mb 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 '';