File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ function addArg {
3939# this allows rules/routing to be altered by supplying this function
4040# in an included file, such as ovpn_env.sh
4141function setupIptablesAndRouting {
42- iptables -t nat -C POSTROUTING -s $OVPN_SERVER -o $OVPN_NATDEVICE -j MASQUERADE || {
42+ iptables -t nat -C POSTROUTING -s $OVPN_SERVER -o $OVPN_NATDEVICE -j MASQUERADE 2> /dev/null || {
4343 iptables -t nat -A POSTROUTING -s $OVPN_SERVER -o $OVPN_NATDEVICE -j MASQUERADE
4444 }
4545 for i in " ${OVPN_ROUTES[@]} " ; do
46- iptables -t nat -C POSTROUTING -s " $i " -o $OVPN_NATDEVICE -j MASQUERADE || {
46+ iptables -t nat -C POSTROUTING -s " $i " -o $OVPN_NATDEVICE -j MASQUERADE 2> /dev/null || {
4747 iptables -t nat -A POSTROUTING -s " $i " -o $OVPN_NATDEVICE -j MASQUERADE
4848 }
4949 done
You can’t perform that action at this time.
0 commit comments