Skip to content

Commit 975da45

Browse files
committed
Clear external DSCP bits for non-version pools, to prevent trouble for end-users whose networks also use DSCP
1 parent eb72282 commit 975da45

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ansible/roles/lvs-iptables/files/scripts-iptables.rules.v4

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
# scripts-test.mit.edu
3535
-A PREROUTING -d 18.4.86.229 -j test
3636

37+
# Clear external DSCP bits
38+
-A scripts -j DSCP --set-dscp 0
3739
# Send Apache-bound traffic to FWM 2 (load-balanced)
3840
-A scripts -m tcp -m multiport -p tcp --dports 80,443,444 -j MARK --set-mark 2
3941
# Send SMTP-bound traffic to FWM 3 (load-balanced)
@@ -43,9 +45,13 @@
4345
# Send everything else to FWM 1 (primary)
4446
-A scripts -m mark --mark 0 -j MARK --set-mark 1
4547

48+
# Clear external DSCP bits
49+
-A primary -j DSCP --set-dscp 0
4650
# scripts-primary.mit.edu goes to the primary (FWM 1) on all ports
4751
-A primary -j MARK --set-mark 1
4852

53+
# Clear external DSCP bits
54+
-A sipb -j DSCP --set-dscp 0
4955
# sipb.mit.edu acts like regular scripts for the web ports, everything else goes to i-hate-penguins.xvm.mit.edu (FWM 4)
5056
-A sipb -m tcp -m multiport -p tcp --dports 80,443,444 -j MARK --set-mark 2
5157
# Also send port 25 there too because the IP is shared with rtfm.mit.edu (fix this after renaming the machine)
@@ -65,6 +71,8 @@
6571
-A f30 -m tcp -p tcp --dport 78:79 -j RETURN
6672
-A f30 -m mark --mark 0 -j MARK --set-mark 31
6773

74+
# Clear external DSCP bits
75+
-A test -j DSCP --set-dscp 0
6876
# send web traffic to HAProxy and everything else to f20
6977
-A test -m tcp -m multiport -p tcp --dports 80,443,444 -j MARK --set-mark 92
7078
-A test -m tcp -p tcp --dport 25 -j MARK --set-mark 23

0 commit comments

Comments
 (0)