Mimiko wroteSetup a basic OpenVPN setup with server and client and use it.
Thanks for the reply! I've been trying to do this for quite a while. The client is behind an http proxy. The server is behind no proxy. Here are my config files:
SERVER:
proto tcp-server
port 80
dev tun
ifconfig 10.8.0.1 10.8.0.2
secret key.txt
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
CLIENT:
remote 41.xxx.xx.xx
port 80
proto tcp-client
dev tun
ifconfig 10.8.0.2 10.8.0.1
comp-lzo
secret key.txt
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
Regardless if the server is running or not, I get this error log from the client:
Sat Oct 13 01:12:16 2012 OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011
Sat Oct 13 01:12:16 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Oct 13 01:12:16 2012 LZO compression initialized
Sat Oct 13 01:12:16 2012 TAP-WIN32 device [Local Area Connection 2] opened: \\.\Global\{7A9AF7DC-9BDA-47BC-AE10-42DBBC90BCA8}.tap
Sat Oct 13 01:12:16 2012 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.8.0.2/255.255.255.252 on interface {7A9AF7DC-9BDA-47BC-AE10-42DBBC90BCA8} [DHCP-serv: 10.8.0.1, lease-time: 31536000]
Sat Oct 13 01:12:16 2012 Successful ARP Flush on interface [13] {7A9AF7DC-9BDA-47BC-AE10-42DBBC90BCA8}
Sat Oct 13 01:12:16 2012 Attempting to establish TCP connection with 143.xxx.xx.xxx:80
Sat Oct 13 01:12:16 2012 TCP connection established with 143.xxx.xx.xxx:80
Sat Oct 13 01:12:21 2012 recv_line: TCP port read timeout expired
Sat Oct 13 01:12:21 2012 SIGTERM[soft,init_instance] received, process exiting
I forwarded port 1194 UDP on the server even though I'm using tcp 80. I've tried everything, don't know what I'm doing wrong! Any tips/help would be much appreciated! 😃