Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > b59f8f4be5928a816ea119e430d69362 > files > 7

ipvsadm-1.31-3.mga9.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