forked from extern/shorewall_code
Fix ROUTE_FILTER and LOG_MARTIANS in shorewall-shell
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6092 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
92a4483f88
commit
3388cc98bd
@ -3741,6 +3741,8 @@ __EOF__
|
||||
|
||||
if [ "$ROUTE_FILTER" = yes ]; then
|
||||
save_command "echo 1 > /proc/sys/net/ipv4/conf/default/rp_filter"
|
||||
elif [ "$ROUTE_FILTER" = no ]; then
|
||||
save_command "echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter"
|
||||
fi
|
||||
|
||||
save_command "[ -n \"\$NOROUTES\" ] || ip route flush cache"
|
||||
@ -3782,7 +3784,7 @@ __EOF__
|
||||
if [ "$LOG_MARTIANS" = yes ]; then
|
||||
save_command "echo 1 > /proc/sys/net/ipv4/conf/all/log_martians"
|
||||
save_command "echo 1 > /proc/sys/net/ipv4/conf/default/log_martians"
|
||||
else
|
||||
elif [ "$LOG_MARTIANS" = no ]; then
|
||||
save_command "echo 0 > /proc/sys/net/ipv4/conf/all/log_martians"
|
||||
save_command "echo 0 > /proc/sys/net/ipv4/conf/default/log_martians"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user