Reintroduce VPN_LAN_NETWORK
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
#!/command/with-contenv bash
|
||||
|
||||
echo "Obtaining Wireguard Server IP..."
|
||||
wgserver=$(grep Endpoint "${CONFIG_DIR}/wireguard/wg0.conf" | awk '{print $3}')
|
||||
gateway=$(ip -o -4 route show to default | awk '{print $3}')
|
||||
echo "IP: ${wgserver%:*}"
|
||||
|
||||
echo "Obtaining default gateway..."
|
||||
gateway=$(ip -o -4 route show to default | awk '{print $3}')
|
||||
echo "Gateway: ${gateway}"
|
||||
|
||||
echo "Adding route to Wireguard Server via Default Gateway"
|
||||
ip -4 route add ${wgserver%:*} via ${gateway} dev eth0
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
#!/command/with-contenv bash
|
||||
|
||||
echo "Installing Git..."
|
||||
apk add -u git
|
||||
|
||||
echo "Installing py-natpmp"
|
||||
git clone https://github.com/yimingliu/py-natpmp.git
|
||||
|
||||
@@ -8,6 +8,7 @@ services:
|
||||
PUID: ${NASCOMPOSE_UID?}
|
||||
PGID: ${NASCOMPOSE_GID?}
|
||||
VPN_ENABLED: true
|
||||
VPN_LAN_NETWORK: 192.168.0.0/23
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
sysctls:
|
||||
|
||||
Reference in New Issue
Block a user