
I have a functional routed vpn between server/client, but can't reach peripherals on the server lan (for example a network printer or a nas) .
I'm able to ping the server from a client, trough the vpn, the "virtual" ip "10.5.0.1/24" and the server real ip "192.168.10.1/24", but I can't ping other addresses.
I have enabled the IP forwarding to the server on the Firewall/Router.
Enabled also the Windows IP routing on the server.
These are my server/client config (I'm using X.X.X.X instead of my public IP for privacy):
* Windows Server:
Code: Select all
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.5.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.10.0 255.255.255.0"
keepalive 10 120
tls-auth key.txt 0
comp-lzo
max-clients 10
persist-key
persist-tun
status openvpn-status.log
verb 3
Code: Select all
Thu Apr 04 18:05:00 2013 OpenVPN 2.3.1 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Mar 28 2013
Thu Apr 04 18:05:00 2013 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Thu Apr 04 18:05:00 2013 Need hold release from management interface, waiting...
Thu Apr 04 18:05:00 2013 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Thu Apr 04 18:05:01 2013 MANAGEMENT: CMD 'state on'
Thu Apr 04 18:05:01 2013 MANAGEMENT: CMD 'log all on'
Thu Apr 04 18:05:01 2013 MANAGEMENT: CMD 'hold off'
Thu Apr 04 18:05:01 2013 MANAGEMENT: CMD 'hold release'
Thu Apr 04 18:05:01 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu Apr 04 18:05:01 2013 Diffie-Hellman initialized with 1024 bit key
Thu Apr 04 18:05:01 2013 Control Channel Authentication: using 'key.txt' as a OpenVPN static key file
Thu Apr 04 18:05:01 2013 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 04 18:05:01 2013 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 04 18:05:01 2013 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Apr 04 18:05:01 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Apr 04 18:05:01 2013 MANAGEMENT: >STATE:1365091501,ASSIGN_IP,,10.5.0.1,
Thu Apr 04 18:05:01 2013 open_tun, tt->ipv6=0
Thu Apr 04 18:05:01 2013 TAP-WIN32 device [OpenVPN] opened: \\.\Global\{DCBF8EB9-A5B9-4094-AF58-716302C0FCED}.tap
Thu Apr 04 18:05:01 2013 TAP-Windows Driver Version 9.9
Thu Apr 04 18:05:01 2013 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.5.0.1/255.255.255.252 on interface {DCBF8EB9-A5B9-4094-AF58-716302C0FCED} [DHCP-serv: 10.5.0.2, lease-time: 31536000]
Thu Apr 04 18:05:01 2013 Sleeping for 10 seconds...
Thu Apr 04 18:05:11 2013 Successful ARP Flush on interface [131074] {DCBF8EB9-A5B9-4094-AF58-716302C0FCED}
Thu Apr 04 18:05:11 2013 MANAGEMENT: >STATE:1365091511,ADD_ROUTES,,,
Thu Apr 04 18:05:11 2013 C:\WINDOWS\system32\route.exe ADD 10.5.0.0 MASK 255.255.255.0 10.5.0.2
Thu Apr 04 18:05:11 2013 Route addition via IPAPI succeeded [adaptive]
Thu Apr 04 18:05:11 2013 UDPv4 link local (bound): [undef]
Thu Apr 04 18:05:11 2013 UDPv4 link remote: [undef]
Thu Apr 04 18:05:11 2013 MULTI: multi_init called, r=256 v=256
Thu Apr 04 18:05:11 2013 IFCONFIG POOL: base=10.5.0.4 size=62, ipv6=0
Thu Apr 04 18:05:11 2013 ifconfig_pool_read(), in='client,10.5.0.4', TODO: IPv6
Thu Apr 04 18:05:11 2013 succeeded -> ifconfig_pool_set()
Thu Apr 04 18:05:11 2013 IFCONFIG POOL LIST
Thu Apr 04 18:05:11 2013 client,10.5.0.4
Thu Apr 04 18:05:11 2013 Initialization Sequence Completed
Thu Apr 04 18:05:11 2013 MANAGEMENT: >STATE:1365091511,CONNECTED,SUCCESS,10.5.0.1,
Thu Apr 04 18:05:24 2013 192.168.10.5:1084 TLS: Initial packet from [AF_INET]192.168.10.5:1084, sid=dcb4abc2 25791e57
Thu Apr 04 18:05:24 2013 192.168.10.5:1084 VERIFY OK: depth=1, C=IT, ST=Italy, L=changeme, O=changeme, OU=changeme, CN=changeme, name=changeme, emailAddress=mail@host.domain
Thu Apr 04 18:05:24 2013 192.168.10.5:1084 VERIFY OK: depth=0, C=IT, ST=Italy, L=changeme, O=changeme, OU=changeme, CN=client, name=changeme, emailAddress=mail@host.domain
Thu Apr 04 18:05:24 2013 192.168.10.5:1084 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Apr 04 18:05:24 2013 192.168.10.5:1084 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 04 18:05:24 2013 192.168.10.5:1084 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Apr 04 18:05:24 2013 192.168.10.5:1084 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 04 18:05:24 2013 192.168.10.5:1084 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu Apr 04 18:05:24 2013 192.168.10.5:1084 [client] Peer Connection Initiated with [AF_INET]192.168.10.5:1084
Thu Apr 04 18:05:24 2013 client/192.168.10.5:1084 MULTI_sva: pool returned IPv4=10.5.0.6, IPv6=(Not enabled)
Thu Apr 04 18:05:24 2013 client/192.168.10.5:1084 MULTI: Learn: 10.5.0.6 -> client/192.168.10.5:1084
Thu Apr 04 18:05:24 2013 client/192.168.10.5:1084 MULTI: primary virtual IP for client/192.168.10.5:1084: 10.5.0.6
Thu Apr 04 18:05:26 2013 client/192.168.10.5:1084 PUSH: Received control message: 'PUSH_REQUEST'
Thu Apr 04 18:05:26 2013 client/192.168.10.5:1084 send_push_reply(): safe_cap=940
Thu Apr 04 18:05:26 2013 client/192.168.10.5:1084 SENT CONTROL [client]: 'PUSH_REPLY,route 192.168.10.0 255.255.255.0,route 10.5.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.5.0.6 10.5.0.5' (status=1)
Code: Select all
client
dev tun
proto udp
remote x.x.x.x 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
tls-auth key.txt 1
comp-lzo
verb 3
Code: Select all
Thu Apr 04 18:05:25 2013 OpenVPN 2.3.1 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Mar 28 2013
Enter Management Password:
Thu Apr 04 18:05:25 2013 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Thu Apr 04 18:05:25 2013 Need hold release from management interface, waiting...
Thu Apr 04 18:05:25 2013 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Thu Apr 04 18:05:25 2013 MANAGEMENT: CMD 'state on'
Thu Apr 04 18:05:25 2013 MANAGEMENT: CMD 'log all on'
Thu Apr 04 18:05:25 2013 MANAGEMENT: CMD 'hold off'
Thu Apr 04 18:05:25 2013 MANAGEMENT: CMD 'hold release'
Thu Apr 04 18:05:25 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu Apr 04 18:05:26 2013 Control Channel Authentication: using 'key.txt' as a OpenVPN static key file
Thu Apr 04 18:05:26 2013 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 04 18:05:26 2013 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 04 18:05:26 2013 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Apr 04 18:05:26 2013 UDPv4 link local: [undef]
Thu Apr 04 18:05:26 2013 UDPv4 link remote: [AF_INET]X.X.X.X:1194
Thu Apr 04 18:05:26 2013 MANAGEMENT: >STATE:1365091526,WAIT,,,
Thu Apr 04 18:05:26 2013 MANAGEMENT: >STATE:1365091526,AUTH,,,
Thu Apr 04 18:05:26 2013 TLS: Initial packet from [AF_INET]X.X.X.X:1194, sid=523e8642 63966c51
Thu Apr 04 18:05:26 2013 VERIFY OK: depth=1, C=IT, ST=Italy, L=changeme, O=changeme, OU=changeme, CN=changeme, name=changeme, emailAddress=mail@host.domain
Thu Apr 04 18:05:26 2013 VERIFY OK: nsCertType=SERVER
Thu Apr 04 18:05:26 2013 VERIFY OK: depth=0, C=IT, ST=Italy, L=changeme, O=changeme, OU=changeme, CN=server, name=changeme, emailAddress=mail@host.domain
Thu Apr 04 18:05:26 2013 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Apr 04 18:05:26 2013 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 04 18:05:26 2013 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Apr 04 18:05:26 2013 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 04 18:05:26 2013 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu Apr 04 18:05:26 2013 [server] Peer Connection Initiated with [AF_INET]X.X.X.X:1194
Thu Apr 04 18:05:27 2013 MANAGEMENT: >STATE:1365091527,GET_CONFIG,,,
Thu Apr 04 18:05:28 2013 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Apr 04 18:05:28 2013 PUSH: Received control message: 'PUSH_REPLY,route 192.168.10.0 255.255.255.0,route 10.5.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.5.0.6 10.5.0.5'
Thu Apr 04 18:05:28 2013 OPTIONS IMPORT: timers and/or timeouts modified
Thu Apr 04 18:05:28 2013 OPTIONS IMPORT: --ifconfig/up options modified
Thu Apr 04 18:05:28 2013 OPTIONS IMPORT: route options modified
Thu Apr 04 18:05:28 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Apr 04 18:05:28 2013 MANAGEMENT: >STATE:1365091528,ASSIGN_IP,,10.5.0.6,
Thu Apr 04 18:05:28 2013 open_tun, tt->ipv6=0
Thu Apr 04 18:05:28 2013 TAP-WIN32 device [OpenVPN] opened: \\.\Global\{C1611BBC-0165-4E00-9FE6-6847324D2220}.tap
Thu Apr 04 18:05:28 2013 TAP-Windows Driver Version 9.9
Thu Apr 04 18:05:28 2013 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.5.0.6/255.255.255.252 on interface {C1611BBC-0165-4E00-9FE6-6847324D2220} [DHCP-serv: 10.5.0.5, lease-time: 31536000]
Thu Apr 04 18:05:28 2013 Successful ARP Flush on interface [4] {C1611BBC-0165-4E00-9FE6-6847324D2220}
Thu Apr 04 18:05:33 2013 TEST ROUTES: 2/2 succeeded len=2 ret=1 a=0 u/d=up
Thu Apr 04 18:05:33 2013 MANAGEMENT: >STATE:1365091533,ADD_ROUTES,,,
Thu Apr 04 18:05:33 2013 C:\WINDOWS\system32\route.exe ADD 192.168.10.0 MASK 255.255.255.0 10.5.0.5
Thu Apr 04 18:05:33 2013 Route addition via IPAPI succeeded [adaptive]
Thu Apr 04 18:05:33 2013 C:\WINDOWS\system32\route.exe ADD 10.5.0.1 MASK 255.255.255.255 10.5.0.5
Thu Apr 04 18:05:33 2013 Route addition via IPAPI succeeded [adaptive]
Thu Apr 04 18:05:33 2013 Initialization Sequence Completed
Thu Apr 04 18:05:33 2013 MANAGEMENT: >STATE:1365091533,CONNECTED,SUCCESS,10.5.0.6,X.X.X.X