Setting Vpn to access from outside

  • Hi, I installed on my old pc ( dual core with 2 gb ram) the omv version 2, everything seems to be OK, I can play my films on lan or wifi, but when I try to do the same thing from outside I can't do it. What kind of system I should use to play my videos? Ftp? Sftp? Vpn? Someone said me that Vpn it's always better, but how can I setting? There are some videos that can explain me what should I do? I use ddns.


    Thanks so much to anyone help me.
    P.s. If my English shouldn't be OK, sorry, it will be better soon ;)

  • It is true that VPN is safer/better but also a bit more work to setup and you will need to setup a VPN server (on OMV) and connect using a VPN client (on device accessing from outside).


    The easier option (but less secure) is to configure a port forwarding rule on your router that points to the FTP port on your OMV. I can explain how to do this if you like...


    For the VPN solution, you need to install the OpenVPN plug-in on your OMV. Then configure it, then configure a port forward on your router to point to your VPN server, then setup a VPN client to connect to the VPN server.


    Sounds but it's not as difficult as it sounds.


    I suggest you start with the easier option i explained above and see if you can get this working. Then move to the VPN solution.


    The most important part for both solutions above is that you need to know the external IP of your internet connection. This often changes (dynamic IP) but its easy to find a free service that maps your internet ip to an easy to remember address/name.


    let me know when/if you want any help and i'll try.


    good luck!

  • Thanks for your reply,
    Vpn it's to complicated to just play some videos, server and client, and I'm not the only that use this system, so ftp or sftp sounds better. Can you explain what should I do? I said before that I use ddns, I have an public ip, dynamic but really static. I'm not noob but if you can help me I really appreciate.


    Thanks so much

  • OK. I understand. sounds like you are almost ready. this is what you need for FTP.


    I'm assuming you are going to use an FTP client on the device to connect to the FTP server. If not, please let me know how you are going to connect via FTP. you can use a web browser for example.


    • turn on FTP on OMV and test you can access shared folder via FTP while on local network
    • on your router, setup a port forward rule that that forwards TCP port 20021 to local IP of OMV on TCP port 21
    • create a FTP connection on the client by using the following settings:

      • IP address for FTP server = IP of internet address (DDNS)
      • port for FTP server = port 20021 (or what ever you used for external port to forward on your router

    If above is working, the port forwarding rule will forward your FTP connection to the FTP server on OMV


    that's the basic process to make this work.


    you should know that different router's have different ways of setting up port forwarding but you can google this!

  • HI, finally i got it! :thumbup::thumbup:
    I tried all the possibilities, different port, ssh, ssl, port forward, and at the end i got it!
    For everyone who need i activated the ssl/tls under ftp voice on omv settings, just the certificated, a choose a different port to forward on my router, obviously not 21, i used a sftp with filezilla (but i think every program like that it's ok), user root and the password i put that i choose in my settings, (default should be openmediavault, but i changed), and that's IT!


    I really appreciate the fast to reply me. Thanks so much jata1 :thumbup::thumbup::thumbup::thumbup::thumbup::thumbup:

  • cool. well done.


    I would recommend VPN as its much safer and once connected, it's just like being on your local network.


    When i'm overseas, I use VPN to connect to my OMV and then can access skyTV, BBC iplayer, netflix etc as if i'm in my home country.

  • How can i configure my vpn? Once i downloaded vpn plugin from my omv, what should i do? you can help me again?


    When you said:

    I use VPN to connect to my OMV and then can access skyTV, BBC iplayer, netflix etc

    how can you do this?
    If you have a guide video, or similar?

  • ok.


    openvpn settings in OMV


    port - leave as is 1194
    protocol - UDP
    compession - yes
    PAM auth - no


    address - leave 10.8...
    mask - leave
    gateway - yes
    cli to cli - no


    dns server - 8.8.8.8,8.8.4.4


    public address - [use your ddns name here]


    then you enable and save and wait.... it can take ages to save (did on my RPi) but might be quicker on your setup.


    once saved and running properly you need to create a certificate for the vpn client on the remote device you want to connect.


    go to setting of VPN on OMV and change tab to certificate. create certificate by clicking add (+).


    download the certificate to a computer and put in dropbox or somewhere safe!


    let me know when done and i'll give you the last bits needed.

  • then use need to setup the VPN connection on the client. I use openVPN on android and iOS. on a mac free vpn software is tunnelblick. i think on windows there is an openvpn client but i don't use windows (much) and not for VPN.


    what client(s) do you use? iOS, windows etc?

  • I downloaded my certificate on my pc, a forwarded the port 1194 UDP, but first when i try to go on my omv like this "192.168.1.xxx:1194" on lan i can't. And second my certificate i have to save it somewhere safe, but i have to copy on omv?


    I use windows on pc right now, android on my phone, but i use sometime also linux, different distro.

  • let's do android first as i don't use windows. the best and easiest way to make the connection using a vpn client.


    download the openvpn client for android. then you need to copy the .ovpn file to the openvpn client

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!