dialog --backtitle"$BACKTITLE"--no-label" Back "--yes-label" Import "--title" VPN "--yesno"\nVPN configuration was not found.\n\nPlace file to /etc/server.vpn" 9 45
echo"ip route add $VPNSERVERIP via $IP dev $ADAPTER"
echo"ip route del default"
echo"ip route add default via $GW dev vpn_se"
read
dialog --title"VPN client is connected to $VPNSERVERIP"--colors--backtitle"$BACKTITLE"--help-button--help-label"Back"--yes-label"Stop"--no-label" Import "--yesno"\n\Z1Stop: \Z0 stop\n\n\Z1Import:\Z0 import new config from /etc/armbian.vpn" 9 70
dialog --title"VPN client is disconnected"--colors--backtitle"$BACKTITLE"--help-button--help-label"Back"--yes-label"Connect"--no-label" Import "--yesno"\n\Z1Connect:\Z0 Connect with your VPN server \n\n\Z1Import:\Z0 import new config from /etc/armbian.vpn" 9 70
response=$?
if[[$response= 0 ]];then
${VPNDIR}vpnclient start >/dev/null 2>&1
# raise devices
raise_dev
get_numbers
echo"ip route add $VPNSERVERIP via $IP dev $ADAPTER"