Setting SOURCE_IP and TARGET_IP variables if they have not values.

This commit is contained in:
2022-02-27 16:01:43 +00:00
parent 0d7f1035e6
commit 9b4bc872ef

View File

@@ -28,6 +28,13 @@ EXTRA_OPTIONS="$2 $3 $4"
fi; fi;
if [[ $SOURCE_IP = "" ]]; then
$SOURCE_IP="0.0.0.0/0"
fi;
if [[ $TARGET_IP = "" ]]; then
$TARGET_IP="0.0.0.0/0"
fi;
############################## ##############################
echo 1 > /proc/sys/net/ipv4/ip_forward echo 1 > /proc/sys/net/ipv4/ip_forward