I use KryptoVPN wihch is essentially .ovpn script based - and have a problem which exists on both WinXP and Debian Testing.
On two different machines:
I have allready enquired to KryptoVPN and essentially they haven a clue.
What happens is that OpenVPN will connect fine to a server, and even renogiatiate the connection after an hour.
But after a while if the connection drops and when OpenVPN goes to re-establish the connection it apparently cannont get to the net or find the DNS, even when its in the Hosts file.
Internet connectivity is apparently lost.
On Win I need to kill and re-set the TAP/TUN connection, and reconenct.
Havent a clue on how to do this in Debian, so I have to reboot.
In a way this is a feature: When the VPN goes down I do NOT want the default IP restored.
I would just as soon kill the entire connection as i cannot seem to find a decent Guard type utility which will shut down all net and p2p apps when the VPN goes down. The few I've seen are Win based, which is problematic.
However, I would like the connection to be able to find the DNS and automatically reconnect.
I know little about networking and next to nothing about network interfaces.
If I cant find a way to reconnect, at least I would like to be able reset the connection the way the Win batch files do In the Win version - but in Debian.
Also: what I would like to know and this is VERY important!
During the 10 seconds that the VPN is renogiating every hour , is my home IP exposed?
Sun Jun 15 14:14:39 2014 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Sun Jun 15 14:14:39 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jun 15 14:14:39 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Sun Jun 15 14:14:39 2014 [vpn.kryptotel.net] Peer Connection Initiated with [AF_INET]178.239.59.82:80
Sun Jun 15 14:14:41 2014 SENT CONTROL [vpn.kryptotel.net]: 'PUSH_REQUEST' (status=1)
Sun Jun 15 14:14:41 2014 PUSH: Received control message: 'PUSH_REPLY,route 0.0.0.0 0.0.0.0,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route 10.80.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.80.0.78 10.80.0.77'
Sun Jun 15 14:14:41 2014 OPTIONS IMPORT: timers and/or timeouts modified
Sun Jun 15 14:14:41 2014 OPTIONS IMPORT: --ifconfig/up options modified
Sun Jun 15 14:14:41 2014 OPTIONS IMPORT: route options modified
Sun Jun 15 14:14:41 2014 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sun Jun 15 14:14:41 2014 ROUTE_GATEWAY 192.168.0.1/255.255.255.0 IFACE=eth1 HWADDR=00:11:2f:59:38:2f
Sun Jun 15 14:14:41 2014 TUN/TAP device tun0 opened
Sun Jun 15 14:14:41 2014 TUN/TAP TX queue length set to 100
Sun Jun 15 14:14:41 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sun Jun 15 14:14:41 2014 /sbin/ip link set dev tun0 up mtu 1500
Sun Jun 15 14:14:41 2014 /sbin/ip addr add dev tun0 local 10.80.0.78 peer 10.80.0.77
Sun Jun 15 14:14:41 2014 /sbin/ip route add 178.239.59.82/32 via 192.168.0.1
Sun Jun 15 14:14:41 2014 /sbin/ip route add 0.0.0.0/1 via 10.80.0.77
Sun Jun 15 14:14:41 2014 /sbin/ip route add 128.0.0.0/1 via 10.80.0.77
Sun Jun 15 14:14:41 2014 /sbin/ip route add 0.0.0.0/0 via 10.80.0.77
RTNETLINK answers: File exists
Sun Jun 15 14:14:41 2014 ERROR: Linux route add command failed: external program exited with error status: 2
Sun Jun 15 14:14:41 2014 /sbin/ip route add 10.80.0.1/32 via 10.80.0.77
Sun Jun 15 14:14:41 2014 Initialization Sequence Completed
Sun Jun 15 15:14:42 2014 VERIFY OK: depth=1, C=AE, ST=Dubai, L=Dubai, O=Kryptotel fz llc, CN=Kryptotel fz llc CA, emailAddress=
info@kryptotel.net
Sun Jun 15 15:14:42 2014 VERIFY OK: nsCertType=SERVER
Sun Jun 15 15:14:42 2014 VERIFY OK: depth=0, C=SC, ST=Victoria, L=Victoria, O=Kryptotel Bravotelco llc, CN=vpn.kryptotel.net, emailAddress=
info@kryptotel.net
Sun Jun 15 15:14:46 2014 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Sun Jun 15 15:14:46 2014 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jun 15 15:14:46 2014 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Sun Jun 15 15:14:46 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jun 15 15:14:46 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Sun Jun 15 16:14:39 2014 TLS: tls_process: killed expiring key
Sun Jun 15 16:14:47 2014 VERIFY OK: depth=1, C=AE, ST=Dubai, L=Dubai, O=Kryptotel fz llc, CN=Kryptotel fz llc CA, emailAddress=
info@kryptotel.net
Sun Jun 15 16:14:47 2014 VERIFY OK: nsCertType=SERVER
Sun Jun 15 16:14:47 2014 VERIFY OK: depth=0, C=SC, ST=Victoria, L=Victoria, O=Kryptotel Bravotelco llc, CN=vpn.kryptotel.net, emailAddress=
info@kryptotel.net
Sun Jun 15 16:14:51 2014 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Sun Jun 15 16:14:51 2014 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jun 15 16:14:51 2014 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Sun Jun 15 16:14:51 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jun 15 16:14:51 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA