Changeset 1005


Ignore:
Timestamp:
Mar 5, 2009, 11:22:28 PM (14 years ago)
Author:
quentin
Message:
Load balance SMTP
Location:
lvs/debian/config/etc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lvs/debian/config/etc/ha.d/ldirectord.cf

    r965 r1005  
    44logfile="/var/log/ldirectord.log"
    55quiescent=no
     6
     7virtual=18.181.0.46:25
     8        real=18.181.0.53:25 gate 1024
     9        real=18.181.0.57:25 gate 1024
     10        real=18.181.0.167:25 gate 1024
     11        fallback=18.187.1.128:25 gate
     12        service=smtp
     13        scheduler=sh
     14        protocol=tcp
     15        checktype=negotiate
    616
    717virtual=18.181.0.46:80
     
    4454        checktype=negotiate
    4555
     56virtual=18.181.0.43:25
     57        real=18.181.0.53:25 gate 1024
     58        real=18.181.0.57:25 gate 1024
     59        real=18.181.0.167:25 gate 1024
     60        fallback=18.187.1.128:25 gate
     61        service=smtp
     62        scheduler=sh
     63        protocol=tcp
     64        checktype=negotiate
     65
    4666virtual=18.181.0.43:80
    4767        real=18.181.0.53:80 gate 1024
     
    7898        virtualhost="scripts.mit.edu"
    7999        receive="1"
     100        scheduler=sh
     101        protocol=tcp
     102        checktype=negotiate
     103
     104virtual=18.181.0.50:25
     105        real=18.181.0.53:25 gate 1024
     106        real=18.181.0.57:25 gate 1024
     107        real=18.181.0.167:25 gate 1024
     108        fallback=18.187.1.128:25 gate
     109        service=smtp
    80110        scheduler=sh
    81111        protocol=tcp
  • lvs/debian/config/etc/network/if-up.d/iptables

    r965 r1005  
    66
    77# scripts.mit.edu
    8 iptables -A PREROUTING -t mangle -m tcp -m multiport -p tcp -d 18.181.0.46/31 --dports 80,443,444 -j MARK --set-mark 2
     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
    99iptables -A PREROUTING -t mangle -m mark --mark 0 -d 18.181.0.46/31 -j MARK --set-mark 1
    1010
    1111# scripts-new.mit.edu
    12 iptables -A PREROUTING -t mangle -m tcp -m multiport -p tcp -d 18.181.0.43 --dports 80,443,444 -j MARK --set-mark 2
     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
    1313iptables -A PREROUTING -t mangle -m mark --mark 0 -d 18.181.0.43 -j MARK --set-mark 1
    1414
    1515# scripts-cert.mit.edu
    16 iptables -A PREROUTING -t mangle -m tcp -m multiport -p tcp -d 18.181.0.50/31 --dports 80,443,444 -j MARK --set-mark 2
     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
    1717iptables -A PREROUTING -t mangle -m mark --mark 0 -d 18.181.0.50/31 -j MARK --set-mark 1
    1818
Note: See TracChangeset for help on using the changeset viewer.