OpenVPN - Home Network - Cannot access network shares
Posted: Sun Oct 05, 2014 5:17 pm
Hi everyone,
Firstly apologies - whilst I am a fairly experienced user of networking products, I have very little knowledge of network protocols/principals. Also, I know from looking at various sites, this issue isn't unusual but I'm a little unsure exactly where my problem lies.
I have an Asus RT-N66U at home which has the facility of a VPN server, namely PPTP or OpenVPN. Due to the PPTP server being quite flaky and the OpenVPN system offering greater security, OpenVPN is the protocol I've gone with. I'd like to use the VPN to access my home network when away from home, just as if I was sat in my lounge.
I've setup the VPN server and can make a connection from my own laptop (Win 7), work laptop (Win 7) and my Android devices. What I have so far noticed:
1 - On the Win 7 devices, I am assigned an IP address from the range as stated in the server setup (192.168.2.0 onwards) but the subnet mask shows as 255.255.255.252, not 255.255.255.0 as displayed in the server setup screen.
2 - When running the ipconfig command, the default gateway is blank.
Once connected, I am able to view webpages etc. and access things like the setup pages for my NAS drive by entering its internal IP address into a web browser (just like I could if at home). However, I cannot see any network shares, other computers or access mapped drives. Despite its flakiness, I was able to do this quite easily when I had the PPTP setup (when it actually connected!).
In terms of longs, I have the following to show:
Server
Oct 5 18:12:55 openvpn[916]: 213.205.251.241:64225 TLS: Initial packet from [AF_INET]213.205.251.241:64225, sid=970fe078 d6ebc894
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 PLUGIN_CALL: POST /usr/lib/openvpn-plugin-auth-pam.so/PLUGIN_AUTH_USER_PASS_VERIFY status=0
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 TLS: Username/Password authentication succeeded for username 'Richard' [CN SET]
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 [Richard] Peer Connection Initiated with [AF_INET]213.205.251.241:64225
Oct 5 18:12:56 openvpn[916]: Richard/213.205.251.241:64225 MULTI_sva: pool returned IPv4=192.168.2.10, IPv6=(Not enabled)
Oct 5 18:12:56 openvpn[916]: Richard/213.205.251.241:64225 MULTI: Learn: 192.168.2.10 -> Richard/213.205.251.241:64225
Oct 5 18:12:56 openvpn[916]: Richard/213.205.251.241:64225 MULTI: primary virtual IP for Richard/213.205.251.241:64225: 192.168.2.10
Oct 5 18:12:58 openvpn[916]: Richard/213.205.251.241:64225 PUSH: Received control message: 'PUSH_REQUEST'
Oct 5 18:12:58 openvpn[916]: Richard/213.205.251.241:64225 send_push_reply(): safe_cap=940
Oct 5 18:12:58 openvpn[916]: Richard/213.205.251.241:64225 SENT CONTROL [Richard]: 'PUSH_REPLY,route 192.168.1.0 255.255.255.0,route 192.168.2.1,topology net30,ping 15,ping-restart 60,ifconfig 192.168.2.10 192.168.2.9' (status=1)
Client
Sun Oct 05 18:11:32 2014 OpenVPN 2.3.4 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Aug 7 2014
Sun Oct 05 18:11:32 2014 library versions: OpenSSL 1.0.1i 6 Aug 2014, LZO 2.05
Enter Management Password:
Sun Oct 05 18:11:37 2014 UDPv4 link local: [undef]
Sun Oct 05 18:11:37 2014 UDPv4 link remote: [AF_INET]212.105.162.70:1194
Sun Oct 05 18:11:37 2014 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sun Oct 05 18:11:38 2014 [RT-N66U] Peer Connection Initiated with [AF_INET]212.***.***.70:1194
Sun Oct 05 18:11:40 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sun Oct 05 18:11:40 2014 open_tun, tt->ipv6=0
Sun Oct 05 18:11:40 2014 TAP-WIN32 device [Local Area Connection 8] opened: \\.\Global\{D8721A91-4DE0-4A9E-9A6D-AD27080A1D26}.tap
Sun Oct 05 18:11:40 2014 Notified TAP-Windows driver to set a DHCP IP/netmask of 192.168.2.6/255.255.255.252 on interface {D8721A91-4DE0-4A9E-9A6D-AD27080A1D26} [DHCP-serv: 192.168.2.5, lease-time: 31536000]
Sun Oct 05 18:11:40 2014 Successful ARP Flush on interface [31] {D8721A91-4DE0-4A9E-9A6D-AD27080A1D26}
Sun Oct 05 18:11:45 2014 Initialization Sequence Completed
Can anyone offer any guidance as to where I might be going wrong? Does the different subnet mask/no default gateway play a part?
Also, can anyone recommend a good place to start learning the basics of networking and what how it all interacts?!
Thanks for your time,
Rich
Firstly apologies - whilst I am a fairly experienced user of networking products, I have very little knowledge of network protocols/principals. Also, I know from looking at various sites, this issue isn't unusual but I'm a little unsure exactly where my problem lies.
I have an Asus RT-N66U at home which has the facility of a VPN server, namely PPTP or OpenVPN. Due to the PPTP server being quite flaky and the OpenVPN system offering greater security, OpenVPN is the protocol I've gone with. I'd like to use the VPN to access my home network when away from home, just as if I was sat in my lounge.
I've setup the VPN server and can make a connection from my own laptop (Win 7), work laptop (Win 7) and my Android devices. What I have so far noticed:
1 - On the Win 7 devices, I am assigned an IP address from the range as stated in the server setup (192.168.2.0 onwards) but the subnet mask shows as 255.255.255.252, not 255.255.255.0 as displayed in the server setup screen.
2 - When running the ipconfig command, the default gateway is blank.
Once connected, I am able to view webpages etc. and access things like the setup pages for my NAS drive by entering its internal IP address into a web browser (just like I could if at home). However, I cannot see any network shares, other computers or access mapped drives. Despite its flakiness, I was able to do this quite easily when I had the PPTP setup (when it actually connected!).
In terms of longs, I have the following to show:
Server
Oct 5 18:12:55 openvpn[916]: 213.205.251.241:64225 TLS: Initial packet from [AF_INET]213.205.251.241:64225, sid=970fe078 d6ebc894
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 PLUGIN_CALL: POST /usr/lib/openvpn-plugin-auth-pam.so/PLUGIN_AUTH_USER_PASS_VERIFY status=0
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 TLS: Username/Password authentication succeeded for username 'Richard' [CN SET]
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA
Oct 5 18:12:56 openvpn[916]: 213.205.251.241:64225 [Richard] Peer Connection Initiated with [AF_INET]213.205.251.241:64225
Oct 5 18:12:56 openvpn[916]: Richard/213.205.251.241:64225 MULTI_sva: pool returned IPv4=192.168.2.10, IPv6=(Not enabled)
Oct 5 18:12:56 openvpn[916]: Richard/213.205.251.241:64225 MULTI: Learn: 192.168.2.10 -> Richard/213.205.251.241:64225
Oct 5 18:12:56 openvpn[916]: Richard/213.205.251.241:64225 MULTI: primary virtual IP for Richard/213.205.251.241:64225: 192.168.2.10
Oct 5 18:12:58 openvpn[916]: Richard/213.205.251.241:64225 PUSH: Received control message: 'PUSH_REQUEST'
Oct 5 18:12:58 openvpn[916]: Richard/213.205.251.241:64225 send_push_reply(): safe_cap=940
Oct 5 18:12:58 openvpn[916]: Richard/213.205.251.241:64225 SENT CONTROL [Richard]: 'PUSH_REPLY,route 192.168.1.0 255.255.255.0,route 192.168.2.1,topology net30,ping 15,ping-restart 60,ifconfig 192.168.2.10 192.168.2.9' (status=1)
Client
Sun Oct 05 18:11:32 2014 OpenVPN 2.3.4 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Aug 7 2014
Sun Oct 05 18:11:32 2014 library versions: OpenSSL 1.0.1i 6 Aug 2014, LZO 2.05
Enter Management Password:
Sun Oct 05 18:11:37 2014 UDPv4 link local: [undef]
Sun Oct 05 18:11:37 2014 UDPv4 link remote: [AF_INET]212.105.162.70:1194
Sun Oct 05 18:11:37 2014 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sun Oct 05 18:11:38 2014 [RT-N66U] Peer Connection Initiated with [AF_INET]212.***.***.70:1194
Sun Oct 05 18:11:40 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sun Oct 05 18:11:40 2014 open_tun, tt->ipv6=0
Sun Oct 05 18:11:40 2014 TAP-WIN32 device [Local Area Connection 8] opened: \\.\Global\{D8721A91-4DE0-4A9E-9A6D-AD27080A1D26}.tap
Sun Oct 05 18:11:40 2014 Notified TAP-Windows driver to set a DHCP IP/netmask of 192.168.2.6/255.255.255.252 on interface {D8721A91-4DE0-4A9E-9A6D-AD27080A1D26} [DHCP-serv: 192.168.2.5, lease-time: 31536000]
Sun Oct 05 18:11:40 2014 Successful ARP Flush on interface [31] {D8721A91-4DE0-4A9E-9A6D-AD27080A1D26}
Sun Oct 05 18:11:45 2014 Initialization Sequence Completed
Can anyone offer any guidance as to where I might be going wrong? Does the different subnet mask/no default gateway play a part?
Also, can anyone recommend a good place to start learning the basics of networking and what how it all interacts?!
Thanks for your time,
Rich