Hi everybody,
due to recent corporate proxy changes, I'm not able anymore to connect to my ssh server and doing ssh tunneling (still I have not figured why), so I decided to try the openvpn way.
My vpn server is a debian VPS hosted in US, my client is a debian machine located in EU.
Here is my server configuration:
dev tun1
ifconfig 10.9.8.1 10.9.8.2
proto tcp-server
port 443
tls-server
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
reneg-sec 60
log-append /var/log/openvpn.log
verb 5
My client configuration:
client
dev tun1
remote server-ip
port 443
proto tcp-client
tls-client
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/pe.crt
key /etc/openvpn/easy-rsa/keys/pe.key
reneg-sec 60
http-proxy corp-proxy 8080
ifconfig 10.9.8.1 10.9.8.2
log-append /var/log/openvpn.log
verb 5
When I try to connect I get connection reset client side:
Tue Oct 28 10:11:22 2014 us=889568 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Tue Oct 28 10:11:22 2014 us=890131 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Oct 28 10:11:22 2014 us=903327 Control Channel MTU parms [ L:1543 D:140 EF:40 EB:0 ET:0 EL:0 ]
Tue Oct 28 10:11:22 2014 us=910719 Socket Buffers: R=[87380->131072] S=[16384->131072]
Tue Oct 28 10:11:22 2014 us=917680 Data Channel MTU parms [ L:1543 D:1450 EF:43 EB:4 ET:0 EL:0 ]
Tue Oct 28 10:11:22 2014 us=923688 Local Options String: 'V4,dev-type tun,link-mtu 1543,tun-mtu 1500,proto TCPv4_CLIENT,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Tue Oct 28 10:11:22 2014 us=924049 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1543,tun-mtu 1500,proto TCPv4_SERVER,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Tue Oct 28 10:11:22 2014 us=924369 Local Options hash (VER=V4): 'db02a8f8'
Tue Oct 28 10:11:22 2014 us=924517 Expected Remote Options hash (VER=V4): '7e068940'
Tue Oct 28 10:11:22 2014 us=924641 Attempting to establish TCP connection with [AF_INET]proxy-ip:8080 [nonblock]
Tue Oct 28 10:11:23 2014 us=926065 TCP connection established with [AF_INET]proxy-ip:8080
Tue Oct 28 10:11:23 2014 us=926146 Send to HTTP proxy: 'CONNECT xxx.xxx.xxx.xxx:443 HTTP/1.0'
Tue Oct 28 10:11:24 2014 us=5888 HTTP proxy returned: 'HTTP/1.0 200 Connection Established'
Tue Oct 28 10:11:26 2014 us=12513 TCPv4_CLIENT link local: [undef]
Tue Oct 28 10:11:26 2014 us=12679 TCPv4_CLIENT link remote: [AF_INET]proxy-ip:8080
WTue Oct 28 10:11:26 2014 us=100075 Connection reset, restarting [-1]
Tue Oct 28 10:11:26 2014 us=101127 TCP/UDP: Closing socket
Tue Oct 28 10:11:26 2014 us=101832 SIGUSR1[soft,connection-reset] received, process restarting
Tue Oct 28 10:11:26 2014 us=102388 Restart pause, 5 second(s)
Server side log have these info:
Tue Oct 28 06:10:36 2014 us=469365 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or e
xecutables
Tue Oct 28 06:10:36 2014 us=470280 Diffie-Hellman initialized with 1024 bit key
Tue Oct 28 06:10:36 2014 us=470751 Control Channel MTU parms [ L:1543 D:140 EF:40 EB:0 ET:0 EL:0 ]
Tue Oct 28 06:10:36 2014 us=470774 Socket Buffers: R=[174760->131072] S=[174760->131072]
Tue Oct 28 06:10:36 2014 us=470966 TUN/TAP device tun1 opened
Tue Oct 28 06:10:36 2014 us=470986 TUN/TAP TX queue length set to 100
Tue Oct 28 06:10:36 2014 us=470996 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Tue Oct 28 06:10:36 2014 us=471010 /sbin/ifconfig tun1 10.9.8.1 pointopoint 10.9.8.2 mtu 1500
Tue Oct 28 06:10:36 2014 us=478355 Data Channel MTU parms [ L:1543 D:1450 EF:43 EB:4 ET:0 EL:0 ]
Tue Oct 28 06:10:36 2014 us=478407 Local Options String: 'V4,dev-type tun,link-mtu 1543,tun-mtu 1500,proto TCPv4_SERVER,ifconfi
g 10.9.8.2 10.9.8.1,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Tue Oct 28 06:10:36 2014 us=478424 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1543,tun-mtu 1500,proto TCPv4_CLIE
NT,ifconfig 10.9.8.1 10.9.8.2,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Tue Oct 28 06:10:36 2014 us=478438 Local Options hash (VER=V4): '50282195'
Tue Oct 28 06:10:36 2014 us=478446 Expected Remote Options hash (VER=V4): '257dc101'
Tue Oct 28 06:10:36 2014 us=478457 Listening for incoming TCP connection on [undef]
Tue Oct 28 06:10:37 2014 us=478561 TCP connection established with [AF_INET]xxx.xxx.xxx.xxx:53634
Tue Oct 28 06:10:37 2014 us=478601 TCPv4_SERVER link local (bound): [undef]
Tue Oct 28 06:10:37 2014 us=478617 TCPv4_SERVER link remote: [AF_INET]xxx.xxx.xxx.xxx:53634
Tue Oct 28 06:10:37 2014 us=478719 WARNING: Bad encapsulated packet length from peer (17231), which must be > 0 and <= 1543 -- please ensure that --tun-mtu or --link-mtu is equal on both peers -- this condition could also indicate a possible active attack on the TCP link -- [Attempting restart...]
Tue Oct 28 06:10:37 2014 us=478738 Connection reset, restarting [0]
Tue Oct 28 06:10:37 2014 us=478844 TCP/UDP: Closing socket
Tue Oct 28 06:10:37 2014 us=478890 Closing TUN/TAP interface
Tue Oct 28 06:10:37 2014 us=478910 /sbin/ifconfig tun1 0.0.0.0
Tue Oct 28 06:10:37 2014 us=514740 SIGUSR1[soft,connection-reset] received, process restarting
Tue Oct 28 06:10:37 2014 us=514772 Restart pause, 1 second(s)
Anybody can help?
Thanks.