Displaying 1 result from an estimated 1 matches for "firewall_stop".
2005 Dec 27
3
Ingress policing (matching netfilter marks)
...--length :64 -j
MARK --or-mark $MARK_GENERAL
# Bulk traffic: everything else by default
$IPTABLES -t mangle -A POSTROUTING -m tos --tos Maximize-Throughput
-j MARK --or-mark $MARK_BULK
# Debugging - set EVERYTHING to BULK
# $IPTABLES -t mangle -A POSTROUTING -j MARK --set-mark $MARK_BULK
}
firewall_stop ()
{
# proc configuration
# Disable forwarding
echo 0 > /proc/sys/net/ipv4/ip_forward
# IP spoofing
if [ -e /proc/sys/net/ipv4/conf/all/rp_filter ]
then
for i in /proc/sys/net/ipv4/conf/*/rp_filter
do
echo 0 > $i
done
fi
# reset the default policies in the filter table....