Re: [CentOS] Re: Using CentOS 3 in and LVS?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 9/15/06, jim bartus <jim.bartus@xxxxxxxxx> wrote:

Btw, are you sure you even want to bother with DR?

We've got an existing server cluster using it and are only trying to
add new machines; changing the setup for the machines already in the
LVS is not really an option.

We found this:  http://www.ultramonkey.org/3/topologies/sl-ha-lb-eg.html

And adapted it as follows:

# yum install arptables_jf (if necessary)
# /etc/rc.d/init.d/arptables_jf stop
Flushing all chains:                                       [  OK  ]
Removing user defined chains:                              [  OK  ]
Resetting built-in chains to the default ACCEPT policy:    [  OK  ]
# /sbin/arptables -A IN -d [virtual_ip] -j DROP
# /sbin/arptables -A OUT -j mangle -o eth0 -s [virtual_ip]
--mangle-ip-s [realserver_ip]
# /etc/rc.d/init.d/arptables_jf save
Saving current rules to /etc/sysconfig/arptables:          [  OK  ]
# /sbin/chkconfig --level 2345 arptables_jf on
# /etc/rc.d/init.d/arptables_jf start
Flushing all current rules and user defined chains:        [  OK  ]
Clearing all current rules and user defined chains:        [  OK  ]
Applying arptables firewall rules:                         [  OK  ]

Then do "arptables -L -v -n" to verify that the rules were installed correctly.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux