- Start VPN gateways support implementation.
This commit is contained in:
@@ -28,12 +28,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
|
||||
@@ -43,11 +43,11 @@ network_dst_tab_dev_lookup "${Dev}"
|
||||
network_dst_tab_get "${dst_id}"
|
||||
|
||||
|
||||
line="[${Dev}]: Local_MTU: [${Local_MTU}] Remote_MTU: [${Remote_MTU}] Local_Address: [${Local_Address}] Local_Netmask: [${Local_Netmask}] Dst_Table: ${dst_table} Phase: ${Phase}"
|
||||
line="[${Dev}]: Local_MTU: [${Local_MTU}] Remote_MTU: [${Remote_MTU}] Local_Address: [${Local_Address}] Local_Netmask: [${Local_Netmask}] Dst_Table: [${dst_table}] Phase: [${Phase}]"
|
||||
|
||||
if [[ "${dst_table}" != "" ]]
|
||||
then
|
||||
log_info "VPN-Down" "$line" " Status: [OK]"
|
||||
log_info "VPN-Down" "$line" " Status: [OK]"
|
||||
|
||||
remote_address=0.0.0.0
|
||||
|
||||
@@ -55,7 +55,7 @@ then
|
||||
|
||||
${DEBUG} ip_host_update vpn${id} vpn.rx3 ${remote_address} 60
|
||||
else
|
||||
log_error "VPN-Down" "$line" " Status: [ERROR]!"
|
||||
log_error "VPN-Down" "$line" " Status: [ERROR]!"
|
||||
fi
|
||||
|
||||
log_trace "VPN-Down" "[${Dev}]: Done!"
|
||||
log_trace "VPN-Down" "[${Dev}]: Done!"
|
||||
|
||||
Reference in New Issue
Block a user