Add support for routing networks through wireguard connections.

This commit is contained in:
2022-08-12 01:16:53 +02:00
parent 0831f26891
commit 9f016b1776
5 changed files with 107 additions and 62 deletions

View File

@ -54,3 +54,10 @@ local_2_ip=""
# NOT IN USE
local_2_ip=""
# - Devices given in list "nat_devices" will be natted
# -
# - Blank separated list
# -
nat_devices=""

View File

@ -53,3 +53,11 @@ local_1_ip=""
local_2_ip=""
# NOT IN USE
local_2_ip=""
# - Devices given in list "nat_devices" will be natted
# -
# - Blank separated list
# -
nat_devices=""

View File

@ -5,6 +5,18 @@
# --- Define Arrays
# -----------
# ---
# NAT (Masquerade) Network interfaces
# ---
declare -a nat_device_arr=()
for _dev in $nat_devices ; do
if ! containsElement $_dev "${nat_device_arr[@]}" ; then
nat_device_arr+=("$_dev")
fi
done
# ---
# - IP Addresses to log
# ---