nasvpn Posted September 25, 2013 Share Posted September 25, 2013 I just made a OpenVPN server running on a NAS which has this feature. I have been able to connect a client to it (locally, giving me 10.11.11.6) but I have no idea the IP i should access to view the content (files). The range is 10.11.11.2 - 10.11.11.254 so I tried 10.11.11.1 but nothing. What should I do? Ask things that you might need for more information which I might not have thought on giving. Thank you. Link to comment Share on other sites More sharing options...
nasvpn Posted September 25, 2013 Author Share Posted September 25, 2013 Server config: port 9411proto udpdev tunca /etc/openvpn/keys/ca.crtcert /etc/openvpn/keys/myserver.crtkey /etc/openvpn/keys/myserver.keyauth-user-pass-verify /usr/sbin/vpn_check_account via-envclient-cert-not-requiredusername-as-common-nameno-name-remappingdh /etc/openvpn/keys/dh1024.pemserver 10.8.0.0 255.255.255.0ifconfig-pool-persist /var/log/ipp.txtpush "redirect-gateway def1"push "dhcp-option DNS 192.168.100.29"client-to-clientduplicate-cnkeepalive 10 60reneg-sec 0cipher AES-256-CBCcomp-lzomax-clients 5client-connect /etc/openvpn/connect.shclient-disconnect /etc/openvpn/disconnect.shmanagement localhost 7505persist-keypersist-tunstatus /var/log/openvpn-status.log#log /tmp/openvpn.logverb 3 Client config: clientdev tunproto udpremote 192.168.100.87 9411resolv-retry infinitenobindca ca.crtauth-user-passreneg-sec 0cipher AES-256-CBCcomp-lzo Link to comment Share on other sites More sharing options...
+BudMan MVC Posted November 6, 2013 MVC Share Posted November 6, 2013 " but I have no idea the IP i should access to view the content" You would connect to the IP of the nas 192.168.100.87 clearly right there in the config you posted, with whatever protocol it uses to serve up the files. Be it http, ftp, webdav, cifs/smb, etc. The IP address it is given you is just a network connection that is to be used as a tunnel to access the nas.. So for example your out on the internet with an IP 192.168.1.100 behind your nat router.. And you want to access your NAS that is also behind a nat router on say 192.168.100.87 (which is in your config you posted).. So you have this Now you could port forward say http to your nat router to your nas and access it that way via http to your publicIP-B.. Or you could connect via vpn.. Your config there is for OpenVPN, So it is listening on port 9411 per your config. So you would forward udp 9411 to your NAS which again is in your config. Then from the internet you would connect to your publicIP-B in the drawing above from your remote location using openvpn client. It would then create a tunnel network between you using server 10.8.0.0 255.255.255.0 per your config - so not sure where you got 10.11 from? And tells client on the other end that hey if you want to get to off your network go down the tunnel push "redirect-gateway def1" Which is not really a good config for this sort of setup, you would must rather just push a route to your nas network vs changing the gateway. something like push "route 192.168.100.0 255.255.255.0" Anyhoo your connection would then be like this And to connect to your NAS IP 192.168.100.87 your remote person would go through the VPN tunnel and directly access it. This still flows over the internet, but the details are hidden to you as the user, and from your machines point of view its just got a new network connection on 10.8 network - and it uses this connection to connect to the 192.168.100/24 network. Link to comment Share on other sites More sharing options...
Recommended Posts