Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 57c1e23609f1a951b51172d16ba5eb98 > files > 7

ipvsadm-1.27-5.mga5.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