gcavalcante8808
Hello Folks,
I'm trying to build a VPN with 3 remoter computers.
My problem is: after the first client connects, all other connections made to the port of the openvpn daemon always receive a 'Connection Refused', including testing done with the telnet client as well.
My server.conf is the following:
proto tcp-server
port 8081
dev tap
ifconfig 172.1.1.1 255.255.255.0
tls-server
dh /etc/openvpn/keys/dh2048.pem
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
If I connect with one/any of my 2 clients, the vpn works normally and I have connectivity. At this point, no other vpn clients can connect unless the first disconnects; if I try a simple telnet against the 8081 port of the server, the telnet returns 'Connection Refused' unless the first client disconnects.
Thanks in advance.
AndyInNYC
Your server config doesn't include a command to allow multiple use of the same certificate: duplicate-cn
If you are using the same certificate rather than unique client certificates created for use on each machine, this rejection might seem reasonable.
In your server config, put the line: log-append /etc/openvpn/openvpn.log
(you can use whatever location you want). Restart everything, log in with user A and then try with User B - read/post the openvpn.log file.
Andrew