- Start new external VPN management implementation.

This commit is contained in:
2025-07-08 23:25:17 +02:00
parent de448dd924
commit bd5c0ecbd6
4 changed files with 118 additions and 31 deletions

View File

@@ -99,7 +99,7 @@ dump()
#--------------------------------------------------------------------------------------------------------------------------
# Table-Set ()
# Table_Set
#--------------------------------------------------------------------------------------------------------------------------
table_set()
@@ -111,6 +111,32 @@ table_set()
#--------------------------------------------------------------------------------------------------------------------------
# Address_Refresh
#--------------------------------------------------------------------------------------------------------------------------
address_refresh()
{
dst_id="$1"
if [[ "${dst_id}" != "" ]]
then
echo "Refreshing address: [${dst_id}]..."
network_dst_tab_get ${dst_id}
network_dst_address_refresh ${dst_id} ${dst_host_name} ${dst_ip}
else
echo "Refreshing all address..."
network_dst_address_refresh_all
fi
}
#--------------------------------------------------------------------------------------------------------------------------
# Main
#--------------------------------------------------------------------------------------------------------------------------
@@ -143,6 +169,10 @@ case "$1" in
table_set)
table_set $2 $3
;;
refresh_address)
address_refresh $2
;;
*)
echo "Usage: $0 {start|stop|restart|status|dump|table_set}"