Skip to content

Instantly share code, notes, and snippets.

@cornet
Created November 17, 2017 10:02
Show Gist options
  • Save cornet/7b65b06cd24aa932e6be699dd88d45c8 to your computer and use it in GitHub Desktop.
Save cornet/7b65b06cd24aa932e6be699dd88d45c8 to your computer and use it in GitHub Desktop.
0 ;;; Fast Acks
chain=postrouting action=mark-packet new-packet-mark=fast-ack passthrough=no tcp-flags=ack protocol=tcp out-interface=pppoe-out1 packet-size=0-40 log=no log-prefix=""
1 ;;; Guest Network Mark
chain=postrouting action=mark-packet new-packet-mark=guest-network passthrough=no src-address=10.64.180.100-10.64.180.150 out-interface=pppoe-out1 log=no log-prefix=""
2 ;;; Mark mosh
chain=postrouting action=mark-packet new-packet-mark=mosh passthrough=no protocol=udp out-interface=pppoe-out1 dst-port=60000-61000 log=no log-prefix=""
3 ;;; Mark ssh
chain=postrouting action=mark-packet new-packet-mark=ssh passthrough=no protocol=tcp out-interface=pppoe-out1 dst-port=22 packet-size=0-1400 log=no log-prefix=""
4 ;;; Mark DNS
chain=postrouting action=mark-packet new-packet-mark=dns passthrough=no protocol=udp out-interface=pppoe-out1 dst-port=53 log=no log-prefix=""
5 chain=postrouting action=mark-packet new-packet-mark=dns passthrough=no protocol=tcp out-interface=pppoe-out1 dst-port=53 log=no log-prefix=""
6 ;;; ICMP
chain=postrouting action=mark-packet new-packet-mark=icmp passthrough=no protocol=icmp out-interface=pppoe-out1 log=no log-prefix=""
7 ;;; Mark Slack Calls
chain=postrouting action=mark-packet new-packet-mark=slack-calls passthrough=no protocol=udp out-interface=pppoe-out1 dst-port=22466 log=no log-prefix=""
8 ;;; Mark Google Meet
chain=postrouting action=mark-packet new-packet-mark=google-meet passthrough=no protocol=udp out-interface=pppoe-out1 dst-port=19302-19309 log=no log-prefix=""
9 ;;; Mark OpenVPN
chain=postrouting action=mark-packet new-packet-mark=openvpn passthrough=no protocol=tcp out-interface=pppoe-out1 dst-port=1194 log=no log-prefix=""
10 chain=postrouting action=mark-packet new-packet-mark=openvpn passthrough=no protocol=udp out-interface=pppoe-out1 dst-port=1194 log=no log-prefix=""
11 ;;; Everything Else
chain=postrouting action=mark-packet new-packet-mark=everything-else passthrough=no out-interface=pppoe-out1 log=no log-prefix=""
name="fast-ack-q" parent=upload-q packet-mark=fast-ack limit-at=0 queue=default priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
name="interactive-q" parent=upload-q packet-mark=dns,mosh,icmp,ssh limit-at=0 queue=default-small priority=2 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
name="comms-q" parent=upload-q packet-mark=google-meet,slack-calls limit-at=0 queue=default priority=3 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
name="vpn-q" parent=upload-q packet-mark=openvpn limit-at=0 queue=default priority=4 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
name="everything-else-q" parent=upload-q packet-mark=everything-else limit-at=0 queue=default priority=5 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
name="guest-q" parent=upload-q packet-mark=guest-network limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
name="upload-q" parent=pppoe-out1 packet-mark="" limit-at=600k queue=pcq-upload-default priority=8 max-limit=600k burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment