|
34 | 34 | # scripts-test.mit.edu
|
35 | 35 | -A PREROUTING -d 18.4.86.229 -j test
|
36 | 36 |
|
| 37 | +# Clear external DSCP bits |
| 38 | +-A scripts -j DSCP --set-dscp 0 |
37 | 39 | # Send Apache-bound traffic to FWM 2 (load-balanced)
|
38 | 40 | -A scripts -m tcp -m multiport -p tcp --dports 80,443,444 -j MARK --set-mark 2
|
39 | 41 | # Send SMTP-bound traffic to FWM 3 (load-balanced)
|
|
43 | 45 | # Send everything else to FWM 1 (primary)
|
44 | 46 | -A scripts -m mark --mark 0 -j MARK --set-mark 1
|
45 | 47 |
|
| 48 | +# Clear external DSCP bits |
| 49 | +-A primary -j DSCP --set-dscp 0 |
46 | 50 | # scripts-primary.mit.edu goes to the primary (FWM 1) on all ports
|
47 | 51 | -A primary -j MARK --set-mark 1
|
48 | 52 |
|
| 53 | +# Clear external DSCP bits |
| 54 | +-A sipb -j DSCP --set-dscp 0 |
49 | 55 | # sipb.mit.edu acts like regular scripts for the web ports, everything else goes to i-hate-penguins.xvm.mit.edu (FWM 4)
|
50 | 56 | -A sipb -m tcp -m multiport -p tcp --dports 80,443,444 -j MARK --set-mark 2
|
51 | 57 | # Also send port 25 there too because the IP is shared with rtfm.mit.edu (fix this after renaming the machine)
|
|
65 | 71 | -A f30 -m tcp -p tcp --dport 78:79 -j RETURN
|
66 | 72 | -A f30 -m mark --mark 0 -j MARK --set-mark 31
|
67 | 73 |
|
| 74 | +# Clear external DSCP bits |
| 75 | +-A test -j DSCP --set-dscp 0 |
68 | 76 | # send web traffic to HAProxy and everything else to f20
|
69 | 77 | -A test -m tcp -m multiport -p tcp --dports 80,443,444 -j MARK --set-mark 92
|
70 | 78 | -A test -m tcp -p tcp --dport 25 -j MARK --set-mark 23
|
|
0 commit comments