The server configuration files is as follow:
Code: Select all
root@server:/etc/openvpn# cat server.conf
port 1194
proto udp
dev tun
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
server 10.10.10.0 255.255.255.0
client-to-client
status openvpn-status.log
plugin /usr/lib/openvpn/openvpn-auth-pam.so common-auth
client-cert-not-required
username-as-common-name
client-config-dir /etc/openvpn/client-configs
root@server:/etc/openvpn#
Code: Select all
root@server:/etc/openvpn# cat client-configs/client
ifconfig-push 10.10.10.1 10.10.10.5
root@server:/etc/openvpn#
Code: Select all
root@server:/etc/openvpn# grep client /etc/passwd
client:x:1001:1001::/dev/null:/bin/false
Code: Select all
root@client:/etc/openvpn# cat client.conf
client
port 1194
proto udp
dev tun
remote 192.168.0.4
ca "/etc/openvpn/keys/ca.crt"
auth-user-pass
root@client:/etc/openvpn#
In server.log i see this (maybe i have problem with client recognition).
Code: Select all
root@server:/etc/openvpn# cat openvpn-status.log
OpenVPN CLIENT LIST
Updated,Sat May 21 18:51:57 2011
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
UNDEF,192.168.0.5:1194,12834,31234,Sat May 21 18:08:17 2011
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
10.10.10.6,UNDEF,192.168.0.5:1194,Sat May 21 18:38:49 2011
GLOBAL STATS
Max bcast/mcast queue length,0
END
root@server:/etc/openvpn#