Buffalo Forums

Products => Storage => Topic started by: Foreshadow on June 16, 2015, 08:50:32 AM

Title: Unable to reach LinkStation 210D trough OpenVPN
Post by: Foreshadow on June 16, 2015, 08:50:32 AM
Hello!

If anybody can give me some advice it would be most appreciated. I have a problem reaching my LinkStation files trough an OpenVPN connection.

I am running OpenVPN on a linux box on my LAN. The Buffalo LinkStation is in the same LAN as the OpenVPN box. Both are behind the same router.
The router is located at 192.168.1.1 and the OpenVPN linux box at 192.168.1.4. My Buffalo Linkstation is at 192.168.1.7

The VPN subnet is configuredt at openVPN server's /server.conf as:
- server 10.8.0.0 255.255.255.0

So far I am able to:
1. Establish VPN connection between client and server.
2. My Client receives IP 10.8.0.X IP address from the OpenVPN server.
3. I am able to reach my Buffalo LinkStation trough the VPN connection by entering 192.168.1.7 to Chrome browser (so as to say: I can reach the buffalo setup portal)
4. I can also access an IP camera hosted on the same LAN trough the VPN connection

I am unable to:
1. I am unable to see the LinkStation via NASNavigator or enter it's filedirectory (it's not found on Windows Explorer).
2. I am unable to ping the 192.168.1.X network devices (Linkstation or the IP camera) with the connected openVPN Client from command prompt - even though I am able to reach said devices trough Chrome (see above point 4). Seems strange to me.
2.1 EDIT: I am able to ping the linkstation now after establishing VPN. Still unable to see it with NAS Navigator however.

By following different guides, I've come to suspect that the issue is somehow related to routing, but I am unable to find a configuration that works.

1. On my router I have added a static routing between 10.8.0.0 and 192.168.1.1
2. I have tried adding routing rules to the server.conf: - push "route 192.168.1.0 255.255.255.0"
3. I have tired adding routing to the server like this: "route add -net 10.8.0.0/24 gw 192.168.1.4" and "route add -net 10.8.0.0/24 gw 192.168.1.0" and "route add -net 10.8.0.0/24 gw 192.168.1.1"
4. On my server the "netstat rn" command shows:
0.0.0.0 / 192.168.1.1 / 0.0.0.0 / UG
10.8.0.0 / 10.8.0.2 / 255.255.255.0 / UG
10.8.0.2 / 0.0.0.0 / 255.255.255.255 / UH
192.168.1.0 / 0.0.0.0 / 255.255.255.0 / U
4. When VPN is established and I run -netstat -rn on the Client, I see there is an active route like this: 192.168.1.0 / 255.255.255.0 / 10.8.0.5 / 10.8.0.6 / 20


Thank you in advance, and if I have neglected to give some important information please advice me as to what I should provide.

Title: Re: Unable to reach LinkStation 210D trough OpenVPN
Post by: Foreshadow on June 22, 2015, 07:54:46 AM
This issue has been solved.
In order to reach my Buffalo NAS through OpenVPN I had to use bridged and not routed mode of OpenVPN.

https://forums.openvpn.net/topic19064.html
Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 50 (show)
Files included: 27 - 1055KB. (show)
Memory used: 736KB.
Tokens: post-login.
Queries used: 10.

[Show Queries]