- Add vpn.bash libraries,
- Add rx3_vpn_adm tools.
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
if [[ "${NETWORK_BASH}" != "" ]]
|
||||
then
|
||||
return
|
||||
else
|
||||
declare -g NETWORK_BASH=1
|
||||
fi
|
||||
|
||||
|
||||
@@ -10,7 +12,6 @@ fi
|
||||
# Includes
|
||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
. /usr/global/lib/default.bash
|
||||
. /usr/global/lib/dns.bash
|
||||
|
||||
|
||||
@@ -20,8 +21,6 @@ fi
|
||||
# Global Variable
|
||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
declare -g NETWORK_BASH=1
|
||||
|
||||
declare -g NETWORK_OPENVPN_STATUS
|
||||
|
||||
declare -Ag NETWORK_IP_ROUTE_TAB
|
||||
@@ -770,7 +769,7 @@ network_dst_address_refresh()
|
||||
local dst_ip_old="$3"
|
||||
|
||||
local dst_ip_new
|
||||
local proxy_host="proxy${dst_id}.not.rx3"
|
||||
local proxy_host="proxy${dst_id}.${NETWORK_DST_PROXY_NAME}"
|
||||
local proxy_port=8080
|
||||
|
||||
|
||||
@@ -1063,6 +1062,36 @@ network_forward_stop()
|
||||
|
||||
|
||||
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
# network_init
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
network_init()
|
||||
{
|
||||
dns_init
|
||||
|
||||
file_dir_init ${NETWORK_CONFIG_LOCK} root apache
|
||||
|
||||
network_table_load
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
# network_deinit
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
network_deinit()
|
||||
{
|
||||
dns_deinit
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
# network_start
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user