Donate Share

OpenVPN

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Client cannot connect to server

You are viewing a single message from this topic. View all messages.

  1. 2009-07-06 04:58:51 UTC
    Hi, would like to know if anyone can help sort out my problem setting up openVPN.

    I'm trying to set things up using bridging so that a computer at home can connect to a work machine and access files / use the work internet connection.

    Both computers (work and home) are Windows XP SP3 machines

    Set up is as follows:

    Work:
    Internet (124.xxx.xxx.xxx) -> Router (10.0.0.138) -> Server (10.0.0.20)

    Home:
    Internet (130.xxx.xxx.xxx) -> Router (192.168.2.1) -> Client (192.168.2.2)

    Both routers are set to forward 1194 to the respective computer.

    ------------------
    server.ovpn
    ------------------
    local 10.0.0.20
    port 1194
    proto udp
    dev tap
    dev-node tap-bridge
    ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
    cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\server.crt"
    key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\server.key" # This file should be kept secret
    dh "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\dh1024.pem"
    ifconfig-pool-persist ipp.txt
    server-bridge 10.0.0.20 255.255.255.0 10.0.0.240 10.0.0.250
    keepalive 10 120
    comp-lzo
    persist-key
    persist-tun
    status openvpn-status.log
    verb 6

    ----------------
    client.ovpn
    ----------------
    client
    dev tap
    proto udp
    remote 124.xxx.xxx.xxx 1194
    resolv-retry infinite
    nobind
    persist-key
    persist-tun
    ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
    cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\client1.crt"
    key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\client1.key"
    ns-cert-type server
    comp-lzo
    verb 6

    Server log file:

    Mon Jul 06 11:59:54 2009 us=564287 OpenVPN 2.0.9 Win32-MinGW [SSL] [LZO] built on Oct 1 2006
    Mon Jul 06 11:59:54 2009 us=613151 Diffie-Hellman initialized with 1024 bit key
    Mon Jul 06 11:59:54 2009 us=615074 TLS-Auth MTU parms [ L:1574 D:138 EF:38 EB:0 ET:0 EL:0 ]
    Mon Jul 06 11:59:54 2009 us=626142 TAP-WIN32 device [tap-bridge] opened: \\.\Global\{18A6AB75-4840-4E47-BA7D-6DFDDF0C8CFD}.tap
    Mon Jul 06 11:59:54 2009 us=626178 TAP-Win32 Driver Version 8.4
    Mon Jul 06 11:59:54 2009 us=626199 TAP-Win32 MTU=1500
    Mon Jul 06 11:59:54 2009 us=626524 Sleeping for 10 seconds...
    Mon Jul 06 12:00:04 2009 us=621601 NOTE: could not get adapter index for \DEVICE\TCPIP_{18A6AB75-4840-4E47-BA7D-6DFDDF0C8CFD}, status=55 : The specified network resource or device is no longer available.
    Mon Jul 06 12:00:04 2009 us=621693 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
    Mon Jul 06 12:00:04 2009 us=621754 Socket Buffers: R=[8192->8192] S=[8192->8192]
    Mon Jul 06 12:00:04 2009 us=621792 UDPv4 link local (bound): 10.0.0.20:1194
    Mon Jul 06 12:00:04 2009 us=621819 UDPv4 link remote: [undef]
    Mon Jul 06 12:00:04 2009 us=621842 MULTI: multi_init called, r=256 v=256
    Mon Jul 06 12:00:04 2009 us=621893 IFCONFIG POOL: base=10.0.0.240 size=11
    Mon Jul 06 12:00:04 2009 us=621933 IFCONFIG POOL LIST
    Mon Jul 06 12:00:04 2009 us=621982 Initialization Sequence Completed


    Client Log file

    Mon Jul 06 12:02:04 2009 us=145206 OpenVPN 2.0.9 Win32-MinGW [SSL] [LZO] built on Oct 1 2006
    Mon Jul 06 12:02:04 2009 us=145316 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
    Mon Jul 06 12:02:04 2009 us=155467 LZO compression initialized
    Mon Jul 06 12:02:04 2009 us=155572 Control Channel MTU parms [ L:1574 D:138 EF:38 EB:0 ET:0 EL:0 ]
    Mon Jul 06 12:02:04 2009 us=157962 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
    Mon Jul 06 12:02:04 2009 us=158005 Local Options String: 'V4,dev-type tap,link-mtu 1574,tun-mtu 1532,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
    Mon Jul 06 12:02:04 2009 us=158018 Expected Remote Options String: 'V4,dev-type tap,link-mtu 1574,tun-mtu 1532,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
    Mon Jul 06 12:02:04 2009 us=158048 Local Options hash (VER=V4): 'd79ca330'
    Mon Jul 06 12:02:04 2009 us=158066 Expected Remote Options hash (VER=V4): 'f7df56b8'
    Mon Jul 06 12:02:04 2009 us=158092 Socket Buffers: R=[8192->8192] S=[8192->8192]
    Mon Jul 06 12:02:04 2009 us=158108 UDPv4 link local: [undef]
    Mon Jul 06 12:02:04 2009 us=166444 UDPv4 link remote: 124.xxx.xxx.xxx:1194
    Mon Jul 06 12:02:04 2009 us=166532 UDPv4 WRITE [14] to 124.xxx.xxx.xxx:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
    Mon Jul 06 12:02:08 2009 us=267021 UDPv4 WRITE [14] to 124.xxx.xxx.xxx:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
    Mon Jul 06 12:02:08 2009 us=269984 UDPv4 READ [-1] from [undef]: DATA UNDEF len=-1
    Mon Jul 06 12:02:08 2009 us=270882 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
    Mon Jul 06 12:02:08 2009 us=270900 UDPv4 READ [-1] from [undef]: DATA UNDEF len=-1
    Mon Jul 06 12:02:08 2009 us=276790 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
    Mon Jul 06 12:02:08 2009 us=276820 UDPv4 READ [-1] from [undef]: DATA UNDEF len=-1
    Mon Jul 06 12:02:10 2009 us=718940 UDPv4 WRITE [14] to 124.xxx.xxx.xxx:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
    Mon Jul 06 12:02:10 2009 us=720110 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
    Mon Jul 06 12:02:10 2009 us=720132 UDPv4 READ [-1] from [undef]: DATA UNDEF len=-1
    Mon Jul 06 12:02:13 2009 us=162453 UDPv4 WRITE [14] to 124.xxx.xxx.xxx:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
    Mon Jul 06 12:02:13 2009 us=163585 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
    Mon Jul 06 12:02:13 2009 us=163605 UDPv4 READ [-1] from [undef]: DATA UNDEF len=-1
    Mon Jul 06 12:02:15 2009 us=405759 UDPv4 WRITE [14] to 124.xxx.xxx.xxx:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
    Mon Jul 06 12:02:15 2009 us=406983 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
    Mon Jul 06 12:02:15 2009 us=407006 UDPv4 READ [-1] from [undef]: DATA UNDEF len=-1
    Mon Jul 06 12:02:17 2009 us=448613 UDPv4 WRITE [14] to 124.xxx.xxx.xxx:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
    Mon Jul 06 12:02:17 2009 us=451118 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
    Mon Jul 06 12:02:17 2009 us=451139 UDPv4 READ [-1] from [undef]: DATA UNDEF len=-1
    Mon Jul 06 12:02:19 2009 us=491555 UDPv4 WRITE [14] to 124.xxx.xxx.xxx:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
    Mon Jul 06 12:02:19 2009 us=492948 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
    Mon Jul 06 12:02:19 2009 us=492971 UDPv4 READ [-1] from [undef]: DATA UNDEF len=-1
    Mon Jul 06 12:02:21 2009 us=534500 UDPv4 WRITE [14] to 124.xxx.xxx.xxx:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
    Mon Jul 06 12:02:21 2009 us=535657 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
    Mon Jul 06 12:02:21 2009 us=535678 UDPv4 READ [-1] from [undef]: DATA UNDEF len=-1
    Mon Jul 06 12:02:22 2009 us=563136 TCP/UDP: Closing socket
    Mon Jul 06 12:02:22 2009 us=564167 SIGTERM[hard,] received, process exiting

    So i suppose my question is, what am I doing so horribly wrong?
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.