# pacemaker 로 이중화된 서버
pcs resource create virtual_ip ocf:heartbeat:IPaddr2 ip=192.168.235.11 cidr_netmask=24 op monitor interval=30s
pcs resource create src_ip ocf:heartbeat:IPsrcaddr ipaddress=192.168.235.11 cidr_netmask=24 op monitor interval=30
pcs resource group add IPS virtual_ip src_ip
pcs constraint order set virtual_ip src_ip
# iptables 활용 - 싱글 서버
ip addr add 192.168.235.11 dev eth0 or ifconfig eth0:1 address 192.168.235.11
iptables -t nat -A POSTROUTING -s 0.0.0.0 -o eth0 -j SNAT --to < eth0 IP >
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to < NAT IP(secondary) >