source: lvs/debian/config/etc/network/if-up.d/iptables @ 1119

Last change on this file since 1119 was 1005, checked in by quentin, 14 years ago
Load balance SMTP
  • Property svn:executable set to *
File size: 1015 bytes
RevLine 
[210]1#!/bin/sh
2## Joe Presbrey <presbrey@mit.edu>
3## SIPB Scripts LVS Firewall marks
4
5iptables -F -t mangle
6
7# scripts.mit.edu
[1005]8iptables -A PREROUTING -t mangle -m tcp -m multiport -p tcp -d 18.181.0.46/31 --dports 25,80,443,444 -j MARK --set-mark 2
[210]9iptables -A PREROUTING -t mangle -m mark --mark 0 -d 18.181.0.46/31 -j MARK --set-mark 1
10
[965]11# scripts-new.mit.edu
[1005]12iptables -A PREROUTING -t mangle -m tcp -m multiport -p tcp -d 18.181.0.43 --dports 25,80,443,444 -j MARK --set-mark 2
[965]13iptables -A PREROUTING -t mangle -m mark --mark 0 -d 18.181.0.43 -j MARK --set-mark 1
14
[210]15# scripts-cert.mit.edu
[1005]16iptables -A PREROUTING -t mangle -m tcp -m multiport -p tcp -d 18.181.0.50/31 --dports 25,80,443,444 -j MARK --set-mark 2
[210]17iptables -A PREROUTING -t mangle -m mark --mark 0 -d 18.181.0.50/31 -j MARK --set-mark 1
[577]18
19# webzephyr.mit.edu
20iptables -A PREROUTING -t mangle -m tcp -m multiport -p tcp -d 18.181.0.49 --dports 80,443 -j MARK --set-mark 2
21iptables -A PREROUTING -t mangle -m mark --mark 0 -d 18.181.0.49 -j MARK --set-mark 1
Note: See TracBrowser for help on using the repository browser.