Unfortunately, even with IP it fails to reconnect: Did no work; sleeping for 4000 ms... Send CSTP DPD Did no work; sleeping for 15000 ms... CSTP Dead Peer Detection detected dead peer! Attempting to connect to 140.247.2.134 Failed to connect to host 140.247.2.134 sleep 10s, remaining timeout 300s Attempting to connect to 140.247.2.134 sleep 20s, remaining timeout 290s ^C The command line was: echo ******* | openconnect -v --user 70731703 --passwd-on-stdin \ --script /etc/vpnc-script \ 140.247.2.134 # core-vpn-2-gw.fas.harvard.edu The version of openconnect and compilation flags: http://repos.archlinux.org/wsvn/packages/openconnect/repos/extra-x86_64/PKGBUILD BTW, after running for 10+ hours, openconnect often loses connection and fails to reconnect. Maybe it's the same problem. Let me know if more details will help! THanks!! Colin On Sun, Dec 06, 2009 at 12:18:28AM +0000, David Woodhouse wrote: > On Fri, 2009-12-04 at 13:19 -0500, Colin Zheng wrote: > > > > CSTP Dead Peer Detection detected dead peer! > > getaddrinfo failed: Temporary failure in name resolution > > sleep 10s, remaining timeout 300s > > getaddrinfo failed: Temporary failure in name resolution > > sleep 20s, remaining timeout 290s > > Ah. It's trying to reconnect... but it's doing a DNS lookup to find the > address of the server again. That's not so cunning. > > Can you confirm that it works properly if you specify the IP address of > the server on the command line, instead of the DNS name? > > -- > dwmw2 >