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 {
39
39
# this allows rules/routing to be altered by supplying this function
40
40
# in an included file, such as ovpn_env.sh
41
41
function 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 || {
43
43
iptables -t nat -A POSTROUTING -s $OVPN_SERVER -o $OVPN_NATDEVICE -j MASQUERADE
44
44
}
45
45
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 || {
47
47
iptables -t nat -A POSTROUTING -s " $i " -o $OVPN_NATDEVICE -j MASQUERADE
48
48
}
49
49
done
You can’t perform that action at this time.
0 commit comments