- Start VPN gateways support implementation.

This commit is contained in:
AlkorZ3 committed 2025-08-23 11:58:29 +02:00
1 parent 7a2bd651d7
commit 67f1ec7de8
7 files changed
+115 -18

No files matched your search

+7 -7
View File
@@ -29,12 +29,12 @@
# Main
#-----------------------------------------------------------------------------------------------------------------------------------
Dev="$1"
Local_MTU="$2"
Remote_MTU="$3"
Dev="$1"
Local_MTU="$2"
Remote_MTU="$3"
Local_Address="$4"
Local_Netmask="$5"
Phase="$6"
Phase="$6"
network_init
@@ -48,12 +48,12 @@ line="[${Dev}]: Local_MTU: [${Local_MTU}] Remote_MTU: [${Remote_MTU}] Local_
if [[ "${dst_table}" != "" ]]
then
log_info "VPN-Up" "$line" " Status: [OK]"
log_info "VPN-Up" "$line" " Status: [OK]"
log_trace "VPN-Up" "[${Dev}]: ip route add table: [${dst_table}] default dev: [${Dev}]"
network_route_dst_init ${dst_id}
else
log_error "VPN-Up" "$line" " Status: [ERROR]!"
log_error "VPN-Up" "$line" " Status: [ERROR]!"
fi
log_trace "VPN-Up" "[${Dev}]: Done!"
log_trace "VPN-Up" "[${Dev}]: Done!"