From fb7d2d90d7dacd4aac0b272f7e952ed4a92f845c Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 27 Mar 2020 21:16:02 +0100 Subject: [PATCH] Add TOS 0x10 bit --- ip6tables.rules | 10 ++++------ iptables.rules | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/ip6tables.rules b/ip6tables.rules index fc26e76..3ba0a4d 100644 --- a/ip6tables.rules +++ b/ip6tables.rules @@ -1,4 +1,4 @@ -# Generated by ip6tables-save v1.8.4 on Thu Jan 30 09:05:19 2020 +# The coffee is too strong, get some stuff out *filter :INPUT DROP [17:2112] :FORWARD DROP [0:0] @@ -9,19 +9,17 @@ -A INPUT -i lo -j ACCEPT -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT COMMIT -# Completed on Thu Jan 30 09:05:19 2020 -# Generated by ip6tables-save v1.8.4 on Thu Jan 30 09:05:19 2020 +# Mangle *mangle :PREROUTING ACCEPT [18:2161] :INPUT ACCEPT [18:2161] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [31:3265] :POSTROUTING ACCEPT [48:5377] +-A OUTPUT -j TOS --set-tos 0x10/0xff COMMIT -# Completed on Thu Jan 30 09:05:19 2020 -# Generated by ip6tables-save v1.8.4 on Thu Jan 30 09:05:19 2020 +# Raw electrons *raw :PREROUTING ACCEPT [18:2161] :OUTPUT ACCEPT [31:3265] COMMIT -# Completed on Thu Jan 30 09:05:19 2020 diff --git a/iptables.rules b/iptables.rules index b15ca6a..1b344b8 100644 --- a/iptables.rules +++ b/iptables.rules @@ -1,4 +1,4 @@ -# Generated by iptables-save v1.8.4 on Thu Jan 30 10:59:37 2020 +# Filter *filter :INPUT DROP [0:0] :FORWARD DROP [0:0] @@ -12,19 +12,17 @@ -A INPUT -p tcp -j REJECT --reject-with tcp-reset -A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable COMMIT -# Completed on Thu Jan 30 10:59:37 2020 -# Generated by iptables-save v1.8.4 on Thu Jan 30 10:59:37 2020 +# Mangle *mangle :PREROUTING ACCEPT [8948:5925361] :INPUT ACCEPT [8943:5924001] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [10902:1431630] :POSTROUTING ACCEPT [10965:1438415] +-A OUTPUT -j TOS --set-tos 0x10/0xff # ISPs hate this trick, learn how he gets 10 ping with one single rule COMMIT -# Completed on Thu Jan 30 10:59:37 2020 -# Generated by iptables-save v1.8.4 on Thu Jan 30 10:59:37 2020 +# Raw *raw :PREROUTING ACCEPT [8948:5925361] :OUTPUT ACCEPT [10902:1431630] COMMIT -# Completed on Thu Jan 30 10:59:37 2020