[CentOS] Regd: Source NAT Rule in Cluster Suite Setup

Balaji

balajisundar at midascomm.com
Fri Dec 21 05:02:00 UTC 2007


Dear All,

    My Requirement is
    1. I am taking backup from client to server and i configured 
floating IP Address at the client
    2. From primary or secondary server rsync command will be triggerd 
via floating IP Address to the client PC

    I am using the following rules in firewall scripts

       /sbin/iptables -F INPUT
       /sbin/iptables -F OUTPUT
       /sbin/iptables -F FORWARD
       /sbin/iptables -F RH-Firewall-1-INPUT

       # Default Rule
       /sbin/iptables -P OUTPUT ACCEPT
       /sbin/iptables -P INPUT  ACCEPT
       /sbin/iptables -P FORWARD ACCEPT

Rsync Source NAT rules is
       iptables -t nat -A POSTROUTING -p tcp -s 192.168.13.179 --dport 
873 -j SNAT --to-source 192.168.13.83:873

192.168.13.83  is floating ipaddress
192.168.13.179 is primary ipaddress
192.168.13.110  is  secondary ipaddress

The following rules is working fine .

But the problem is at every trigger of rsync command we will restart the 
iptables and firewall scripts, then only it will works fine.

If the services are not restart then it will send the following error 
message
"rsync: failed to connect to 192.168.13.100: Connection timed out (110)
rsync error: error in socket IO (code 10) at clientserver.c(94)"

I need to solve the following "iptables and firewall restart" issue in 
Cluster Suite Setup.

Can some one throw light on this.




More information about the CentOS mailing list