{
"ID": 62409,
"Username": "Yklym2",
"Groupname": "*",
"State": "connected",
"Device": "vpns2",
"MTU": "1406",
"Remote IP": "62.212.248.21",
"Location": "unknown",
"Local Device IP": "95.163.212.76",
"IPv4": "192.168.1.218",
"P-t-P IPv4": "192.168.1.1",
"RX": "5255",
"TX": "8151",
"_RX": "5.3 KB",
"_TX": "8.2 KB",
"Average RX": "2 bytes/sec",
"Average TX": "4 bytes/sec",
"DPD": "90",
"KeepAlive": "32400",
"Connected at": "2022-01-07 00:43",
"_Connected at": "31m:46s",
"Full session": "haGfR4jIYogPf1VNmfUC+NLhrSo=",
"Raw cookie": "haGfR4jIYogPf1VNmfUC+NLhrSo=",
"Cookie": "haGfR4",
"Session": "haGfR4",
"DNS": ["8.8.8.8", "8.8.4.4"],
"NBNS": [],
"Split-DNS-Domains": [],
"Routes": [],
"Routes": "defaultroute",
"No-routes": ["1.0.0.0/255.192.0.0", "1.64.0.0/255.224.0.0", "1.112.0.0/255.248.0.0", "1.176.0.0/255.240.0.0", "1.192.0.0/255.240.0.0", "14.0.0.0/255.224.>
"iRoutes": [],
"Restricted to routes": "False",
"Restricted to ports": []
},
check_sys(){
if [[ -f /etc/redhat-release ]]; then
release="centos"
elif cat /etc/issue | grep -q -E -i "debian"; then
release="debian"
elif cat /etc/issue | grep -q -E -i "ubuntu"; then
release="ubuntu"
elif cat /etc/issue | grep -q -E -i "centos|red hat|redhat"; then
release="centos"
elif cat /proc/version | grep -q -E -i "debian"; then
release="debian"
elif cat /proc/version | grep -q -E -i "ubuntu"; then
release="ubuntu"
elif cat /proc/version | grep -q -E -i "centos|red hat|redhat"; then
release="centos"
fi
bit=`uname -m`
}
check_sys
[[ ${release} != "debian" ]] && [[ ${release} != "ubuntu" ]] && [[ ${release} != "centos" ]] && echo -e "${Error} 本脚本不支持当前系统 ${release} !" && exit 1
action=$1
if [[ "${action}" == "clearall" ]]; then
Clear_transfer_all
elif [[ "${action}" == "autobak" ]]; then
Autobak
else