Need some help, client can't connect to server.

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
TheEight
OpenVpn Newbie
Posts: 4
Joined: Thu Jul 25, 2013 5:28 am

Need some help, client can't connect to server.

Post by TheEight » Thu Jul 25, 2013 5:37 am

So here's the problem:

I got a factory and office in different places of town and trying to establish an VPN network between them. Both Factory and Office have a static IP. For some reason (and i think that's because of mah mistakes, couse i'm noob in OpenVPN. -_-) client cannot connect server. For TCP, though, i think, that's because port is filtered. -_- But on open ports still the same.

Client:

Code: Select all

dev tun
proto tcp
port 12975
remote 95.78.231.216
route-delay 3
client
tls-client
ns-cert-type server
ca C:\\OpenVPN\\ssl\\ca.crt
cert C:\\OpenVPN\\ssl\\Office.crt
key C:\\OpenVPN\\ssl\\Office.key
tls-auth C:\\OpenVPN\\ssl\\ca.key 1
comp-lzo
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ping-restart 60
ping 10
status C:\\OpenVPN\\log\\openvpn-status.log
log C:\\OpenVPN\\log\\openvpn.log
verb 3
Server:

Code: Select all

dev tun
proto tcp-server
port 12975
tls-server
server 10.8.0.0 255.255.255.0
comp-lzo
dh C:\\OpenVPN\\ssl\\dh1024.pem
ca C:\\OpenVPN\\ssl\\ca.crt
cert C:\\OpenVPN\\ssl\\Host.crt
key C:\\OpenVPN\\ssl\\Host.key
tls-auth C:\\OpenVPN\\ssl\\ca.key 0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
keepalive 10 120
status C:\\OpenVPN\\log\\openvupn-status.log
log C:\\OpenVPN\\log\\openvpn.log
verb 3
Here's some logs, i was trying both UDP and TCP's

TCP:

Code: Select all

Thu Jul 25 10:50:18 2013 OpenVPN 2.3.2 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Jun  3 2013
Enter Management Password:
Thu Jul 25 10:50:18 2013 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Thu Jul 25 10:50:18 2013 Need hold release from management interface, waiting...
Thu Jul 25 10:50:19 2013 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Thu Jul 25 10:50:19 2013 MANAGEMENT: CMD 'state on'
Thu Jul 25 10:50:19 2013 MANAGEMENT: CMD 'log all on'
Thu Jul 25 10:50:19 2013 MANAGEMENT: CMD 'hold off'
Thu Jul 25 10:50:19 2013 MANAGEMENT: CMD 'hold release'
Thu Jul 25 10:50:19 2013 Control Channel Authentication: using 'C:\OpenVPN\ssl\ca.key' as a OpenVPN static key file
Thu Jul 25 10:50:19 2013 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jul 25 10:50:19 2013 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jul 25 10:50:19 2013 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Jul 25 10:50:19 2013 Attempting to establish TCP connection with [AF_INET]95.78.231.216:12975
Thu Jul 25 10:50:19 2013 MANAGEMENT: >STATE:1374727819,TCP_CONNECT,,,
Thu Jul 25 10:50:23 2013 TCP: connect to [AF_INET]95.78.231.216:12975 failed, will try again in 5 seconds: Connection refused (WSAECONNREFUSED)
Thu Jul 25 10:50:28 2013 MANAGEMENT: >STATE:1374727828,TCP_CONNECT,,,
Thu Jul 25 10:50:31 2013 TCP: connect to [AF_INET]95.78.231.216:12975 failed, will try again in 5 seconds: Connection refused (WSAECONNREFUSED)
Thu Jul 25 10:50:36 2013 MANAGEMENT: >STATE:1374727836,TCP_CONNECT,,,
Thu Jul 25 10:50:40 2013 SIGTERM[hard,init_instance] received, process exiting
Thu Jul 25 10:50:40 2013 MANAGEMENT: >STATE:1374727840,EXITING,init_instance,,
UDP:

Code: Select all

Thu Jul 25 10:47:12 2013 OpenVPN 2.3.2 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Jun  3 2013
Enter Management Password:
Thu Jul 25 10:47:12 2013 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Thu Jul 25 10:47:12 2013 Need hold release from management interface, waiting...
Thu Jul 25 10:47:13 2013 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Thu Jul 25 10:47:13 2013 MANAGEMENT: CMD 'state on'
Thu Jul 25 10:47:13 2013 MANAGEMENT: CMD 'log all on'
Thu Jul 25 10:47:13 2013 MANAGEMENT: CMD 'hold off'
Thu Jul 25 10:47:13 2013 MANAGEMENT: CMD 'hold release'
Thu Jul 25 10:47:13 2013 Control Channel Authentication: using 'C:\OpenVPN\ssl\ca.key' as a OpenVPN static key file
Thu Jul 25 10:47:13 2013 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jul 25 10:47:13 2013 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jul 25 10:47:13 2013 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Jul 25 10:47:13 2013 UDPv4 link local (bound): [undef]
Thu Jul 25 10:47:13 2013 UDPv4 link remote: [AF_INET]95.78.231.216:12975
Thu Jul 25 10:47:13 2013 MANAGEMENT: >STATE:1374727633,WAIT,,,
Thu Jul 25 10:47:13 2013 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Jul 25 10:47:15 2013 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Jul 25 10:47:19 2013 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Jul 25 10:47:25 2013 SIGTERM[hard,] received, process exiting
Thu Jul 25 10:47:25 2013 MANAGEMENT: >STATE:1374727645,EXITING,SIGTERM,,

TheEight
OpenVpn Newbie
Posts: 4
Joined: Thu Jul 25, 2013 5:28 am

Re: Need some help, client can't connect to server.

Post by TheEight » Thu Jul 25, 2013 7:00 am

UPD: static IP's assigned to routers. -_-

Post Reply