Changes between Version 5 and Version 6 of PiranhaSetupSimple


Ignore:
Timestamp:
05/22/11 03:14:17 (3 years ago)
Author:
digimer
Comment:

Fixed a couple of typos and set code sections to monospace.

Legend:

Unmodified
Added
Removed
Modified
  • PiranhaSetupSimple

    v5 v6  
    11Configuration: 
    22 
    3  * 10.34.38.101-105 are real machines 
    4  * 10.34.38.51-100 are IP addresses for services (virtual addresses) 
     3 * {{{10.34.38.101-105}}} are real machines 
     4 * {{{10.34.38.51-100}}} are IP addresses for services (virtual addresses) 
    55 
    66On router/load-balancer (10.34.38.101): 
    77 
    8  1. set net.ipv4.ip_forward = 1  in /etc/sysctl.conf 
     8 1. {{{set net.ipv4.ip_forward = 1}}} in {{{/etc/sysctl.conf}}} 
    99 
    1010On server where services will run: 
    1111 
    12  1. arptables -A IN -d 10.34.38.51 -j DROP 
    13  1. arptables -A OUT -d 10.34.38.51 -j mangle --mangle-ip-s 10.34.38.103 
    14  1. repeat step 1,2 for each virtual address 
    15  1. service arptables_jf save 
    16  1. chkconfig --level 2345 arptables_jf on 
    17  1. ip addr add 10.34.38.51 dev eth0 
    18  1. repeat step 6 for each virtual address [you should put this in /etc/rc.d/rc.local; elsewehere you will lost it after reboot] 
     12 1. {{{arptables -A IN -d 10.34.38.51 -j DROP}}} 
     13 1. {{{arptables -A OUT -d 10.34.38.51 -j mangle --mangle-ip-s 10.34.38.103}}} 
     14 1. Repeat step 1,2 for each virtual address 
     15 1. {{{service arptables_jf save}}} 
     16 1. {{{chkconfig --level 2345 arptables_jf on}}} 
     17 1. {{{ip addr add 10.34.38.51 dev eth0}}} 
     18 1. repeat step 6 for each virtual address. You should put this in {{{/etc/rc.d/rc.local}}}; Otherwise you will lose it after reboot.