rhk I've run up a VPN server on AWS, and have connected to it from a couple of Ubuntu clients with no problems. However, when I try to connect a client that is behind a socks4 proxy, it fails with the following error: Oct 23 17:12:45 ovpn-client[1887]: Attempting to establish TCP connection with [AF_INET]192.168.147.1:101 [nonblock] Oct 23 17:12:46 ovpn-client[1887]: TCP connection established with [AF_INET]192.168.147.1:101 Oct 23 17:12:51 ovpn-client[1887]: socks_handshake: TCP port read timeout expired: Operation now in progress (errno=115) Oct 23 17:12:51 ovpn-client[1887]: TCP/UDP: Closing socket Oct 23 17:12:51 ovpn-client[1887]: SIGTERM[soft,init_instance] received, process exiting My config is setup like this: client dev tun proto tcp socks-proxy 192.168.147.1 101 remote ec2-xx-xx-xx-xx.compute-1.amazonaws.com 1194 ca ca.crt cert client1.crt key client1.key The other clients connect fine (only line I've changed is the socks-proxy one for this client). Proxy is also working fine when used via tsocks, and I can telnet to the remote openvpn server host/port via tsocks with no problems. tsocks.conf local = 192.168.147.0/255.255.255.0 server = 192.168.147.1 server_type = 4 server_port = 101 Any ideas? /Steve
rhk btw, this looks like a pretty similar issue: http://readlist.com/lists/lists.sourceforge.net/openvpn-users/2/14696.html Not sure if this is considered a bug?
rhk this is the version: OpenVPN 2.2.1 x86_64-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Feb 27 2013
rhk OK I finally figured this out. OpenVPN ONLY supports SOCKS5. This was a SOCKS4 proxy. Changing the proxy to support SOCKS5 fixed this particular problem.