This is the server config file:
Code: Select all
port 1194
dev tun
ca /etc/openvpn/ssl/ca.crt
cert /etc/openvpn/ssl/server.crt
key /etc/openvpn/ssl/server.key
dh /etc/openvpn/ssl/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status
tls-server
Code: Select all
xxxxx:/usr/local/src/openvpn-2.0.9/easy-rsa # openvpn /etc/openvpn/server.conf
Sun Oct 3 12:42:41 2010 OpenVPN 2.0.9 i686-suse-linux [SSL] [LZO] [EPOLL] built on Oct 2 2010
Sun Oct 3 12:42:41 2010 Diffie-Hellman initialized with 1024 bit key
Sun Oct 3 12:42:41 2010 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sun Oct 3 12:42:41 2010 TUN/TAP device tun0 opened
Sun Oct 3 12:42:41 2010 /sbin/ip link set dev tun0 up mtu 1500
Sun Oct 3 12:42:41 2010 /sbin/ip addr add dev tun0 local 10.8.0.1 peer 10.8.0.2
Sun Oct 3 12:42:41 2010 /sbin/ip route add 10.8.0.0/24 via 10.8.0.2
Sun Oct 3 12:42:41 2010 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sun Oct 3 12:42:41 2010 UDPv4 link local (bound): [undef]:1194
Sun Oct 3 12:42:41 2010 UDPv4 link remote: [undef]
Sun Oct 3 12:42:41 2010 MULTI: multi_init called, r=256 v=256
Sun Oct 3 12:42:41 2010 IFCONFIG POOL: base=10.8.0.4 size=62
Sun Oct 3 12:42:41 2010 IFCONFIG POOL LIST
Sun Oct 3 12:42:41 2010 Initialization Sequence Completed
I try to connect from a openVPNGUI on a Windows 7.
Config file on the Windows7 client:
Code: Select all
client
dev tun
proto udp
remote www.myserver.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
comp-lzo
verb 3
Code: Select all
Sun Oct 03 14:00:21 2010 OpenVPN 2.1.3 i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on Aug 20 2010
Sun Oct 03 14:00:21 2010 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Sun Oct 03 14:00:21 2010 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sun Oct 03 14:00:21 2010 LZO compression initialized
Sun Oct 03 14:00:21 2010 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sun Oct 03 14:00:21 2010 Socket Buffers: R=[8192->8192] S=[32768->32768]
Sun Oct 03 14:00:21 2010 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sun Oct 03 14:00:21 2010 Local Options hash (VER=V4): '41690919'
Sun Oct 03 14:00:21 2010 Expected Remote Options hash (VER=V4): '530fdded'
Sun Oct 03 14:00:21 2010 UDPv4 link local: [undef]
Sun Oct 03 14:00:21 2010 UDPv4 link remote: xxx.xxx.xxx.xxx:1194
The firewalls on the server and the client are switched off temporarily.
What am I doing wrong?