chk_masq scrpit: iptables needs full path run from cron
This commit is contained in:
parent
7a55de632c
commit
8722e706c0
1 changed files with 1 additions and 1 deletions
|
@ -5,5 +5,5 @@
|
|||
/sbin/iptables -t nat -vnL | egrep "MASQUERADE.*all.*$_PUB_IF.*172.16.0.0/16.*0.0.0.0/0"
|
||||
if [ $? != 0 ] ; then
|
||||
# Add the Masquerade RULE
|
||||
iptables -t nat -I POSTROUTING -s 172.16.0.0/16 -o $_PUB_IF -j MASQUERADE
|
||||
/sbin/iptables -t nat -I POSTROUTING -s 172.16.0.0/16 -o $_PUB_IF -j MASQUERADE
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue