forked from freifunktrier/Supernodes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtraffic-shaping.txt
28 lines (21 loc) · 884 Bytes
/
traffic-shaping.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// work in progress - please help or ignore this file
//traffic shaping for supernodes
//
//shaping with a HTB-based system won't work for us because we don't have constant throughput speeds,
//instead we should use something priority and bottom-limit based
//
//best soltion in my opinion would be something like Mikrotik PCQ + basic shaping.
//lower priority number (per queue) = earlier sending
Client >> Internet:
- ACK packets
mangle rule: tcp tcp-mss:1407-65535 tcp-flags:syn 1366
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -o tun0 -j TCPMSS --set-mss 1366
Client << Internet:
- ACK Packets
Classes:
DHCP: (udp src:68 dst:67)
dns: udp dst:53
tcp control packets: tcp tcp-flags:fin/syn/rst
tcp ack packets: tcp packet-size:40-89 tcp-flags:ack
tcp new connections: tcp connection-state:new
tcp less important ack: tcp packet-size:90-159 tcp-flags:ack