Because we have only 3 open ports on our network we want to use openvpn.
We used webmin to install and configure openvpn using this guide (
http://www.frontiernet.net/~beakmyn/vpn%20howto/Complete%20Home%20VPN%20Howto%20Guide.html)
Server config
port 443
proto udp
dev tun0
ca keys/hadoop_vpn/ca.crt
cert keys/hadoop_vpn/serverkey.crt
key keys/hadoop_vpn/serverkey.key
dh keys/hadoop_vpn/dh1024.pem
server 10.8.0.0 255.255.255.0
crl-verify keys/hadoop_vpn/crl.pem
ifconfig-pool-persist servers/Hadoop_VPN/logs/ipp.txt
tls-auth servers/Hadoop_VPN/ta.key 0
cipher DES-CFB
user nobody
group adm
status servers/Hadoop_VPN/logs/openvpn-status.log
log-append servers/Hadoop_VPN/logs/openvpn.log
verb 2
mute 20
max-clients 10
keepalive 10 120
client-config-dir /etc/openvpn/servers/Hadoop_VPN/ccd
tls-server
comp-lzo
persist-key
persist-tun
ccd-exclusive
Client config
client
proto udp
dev tun
ca ca.crt
dh dh1024.pem
cert clientkey_sander.crt
key clientkey_sander.key
remote xxx.xxx.xxx.xxx 443
tls-auth ta.key 1
cipher DES-CFB
verb 2
mute 20
keepalive 10 120
comp-lzo
persist-key
persist-tun
float
resolv-retry infinite
nobind
Server log
Fri Dec 30 13:18:53 2011 event_wait : Interrupted system call (code=4)
Fri Dec 30 13:18:53 2011 TCP/UDP: Closing socket
RTNETLINK answers: Operation not permitted
Fri Dec 30 13:18:53 2011 ERROR: Linux route delete command failed: external program exited with error status: 2
Fri Dec 30 13:18:53 2011 Closing TUN/TAP interface
Fri Dec 30 13:18:53 2011 /sbin/ip addr del dev tun0 local 10.8.0.1 peer 10.8.0.2
RTNETLINK answers: Operation not permitted
Fri Dec 30 13:18:53 2011 Linux ip addr del failed: external program exited with error status: 2
Fri Dec 30 13:18:53 2011 SIGTERM[hard,] received, process exiting
Fri Dec 30 13:18:55 2011 OpenVPN 2.2.1 x86_64-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] built on Sep 12 2011
Fri Dec 30 13:18:55 2011 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Fri Dec 30 13:18:55 2011 WARNING: file 'keys/hadoop_vpn/serverkey.key' is group or others accessible
Fri Dec 30 13:18:55 2011 WARNING: file 'servers/Hadoop_VPN/ta.key' is group or others accessible
Fri Dec 30 13:18:55 2011 Control Channel Authentication: using 'servers/Hadoop_VPN/ta.key' as a OpenVPN static key file
Fri Dec 30 13:18:55 2011 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Dec 30 13:18:55 2011 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Dec 30 13:18:55 2011 TLS-Auth MTU parms [ L:1539 D:166 EF:66 EB:0 ET:0 EL:0 ]
Fri Dec 30 13:18:55 2011 TUN/TAP device tun0 opened
Fri Dec 30 13:18:55 2011 /sbin/ip link set dev tun0 up mtu 1500
Fri Dec 30 13:18:55 2011 /sbin/ip addr add dev tun0 local 10.8.0.1 peer 10.8.0.2
Fri Dec 30 13:18:55 2011 Data Channel MTU parms [ L:1539 D:1450 EF:39 EB:135 ET:0 EL:0 AF:3/1 ]
Fri Dec 30 13:18:55 2011 GID set to adm
Fri Dec 30 13:18:55 2011 UID set to nobody
Fri Dec 30 13:18:55 2011 UDPv4 link local (bound): [undef]:443
Fri Dec 30 13:18:55 2011 UDPv4 link remote: [undef]
Fri Dec 30 13:18:55 2011 Initialization Sequence Completed
Client log
Fri Dec 30 13:37:33 2011 OpenVPN 2.1.3 i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on Aug 20 2010
Fri Dec 30 13:37:33 2011 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Fri Dec 30 13:37:33 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Dec 30 13:37:38 2011 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Fri Dec 30 13:37:38 2011 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Fri Dec 30 13:37:38 2011 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Dec 30 13:37:38 2011 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Dec 30 13:37:38 2011 LZO compression initialized
Fri Dec 30 13:37:38 2011 Control Channel MTU parms [ L:1539 D:166 EF:66 EB:0 ET:0 EL:0 ]
Fri Dec 30 13:37:38 2011 Data Channel MTU parms [ L:1539 D:1450 EF:39 EB:135 ET:0 EL:0 AF:3/1 ]
Fri Dec 30 13:37:38 2011 Local Options hash (VER=V4): 'f8941acb'
Fri Dec 30 13:37:38 2011 Expected Remote Options hash (VER=V4): '2cc7a368'
Fri Dec 30 13:37:38 2011 UDPv4 link local: [undef]
Fri Dec 30 13:37:38 2011 UDPv4 link remote: xxx.xxx.xxx.xxx:443
When I try to connect with the windows client, it asks for my password, but the state stays at connecting.