QSCTech / zjunet

Command Line Scripts for ZJU (VPN / WLAN / DNS)
GNU General Public License v3.0
302 stars 48 forks source link

强制踢下线 #14

Closed zenozeng closed 10 years ago

Hexcles commented 10 years ago

In my experience, just forcing xl2tpd-control to reconnect several times (disconnect and then connect, in most cases two or three times is enough) will kick old sessions off and log in.

zenozeng commented 10 years ago

反复重播却被直接掐断了。

Using interface ppp0
Connect: ppp0 <--> /dev/pts/41
Terminating on signal 15
Modem hangup
Connection terminated.
zenozeng commented 10 years ago

又好了。

zenozeng commented 10 years ago
./zjunet.sh vpn
[INFO] Logout: 3120100260
00 OK
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Setting up ip route.
default via 10.189.0.1 dev wlan0 
10.189.0.0/20 dev wlan0  proto kernel  scope link  src 10.189.9.207  metric 9 
[INFO] Login using 3120100260
01 Session 'zju-l2tp-3120100260' not up
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication failed: E2620: You are already online.
CHAP authentication failed
Connection terminated.
[INFO] Connection terminated.
[INFO] Retry now.
00 OK
00 OK
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication succeeded
CHAP authentication succeeded
local  IP address 222.205.19.137
remote IP address 10.5.1.5
Bring up ppp, done.
[INFO] Setting up ip route.
default dev ppp0 
10.5.1.0/24 via 10.189.0.1 dev wlan0 
10.5.1.5 dev ppp0  proto kernel  scope link  src 222.205.19.137 
10.10.0.0/24 via 10.189.0.1 dev wlan0 
10.189.0.0/20 dev wlan0  proto kernel  scope link  src 10.189.9.207  metric 9