Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > af53acbe87e97efddb84ccb744b4989b > files > 8

ipvsadm-1.21-1mdk.ppc.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