Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > main-release-src > by-pkgid > dcd209fa2f7e03fc4c8f1fcfeb60478d > files > 8

ipvsadm-1.24-10mdv2010.1.src.rpm

# This is not a firewall :)
# Here you can only find the relevant lines in order to be able to use ipvsadm
# In the following case, one of th einternal networks is 192.168.0.0/24

# Mandrake-Security : if you remove this comment, remove the next line too.
echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
/sbin/iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT