diff options
Diffstat (limited to 'hosts/vidhar/network/dsl.nix')
-rw-r--r-- | hosts/vidhar/network/dsl.nix | 4 |
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 | ''; |