Docker Transmission OpenVPN setup // AirVPN

    • OMV 4.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Docker Transmission OpenVPN setup // AirVPN

      Dear all,

      I would like to setup "Transmission OpenVPN" with my VPN provider "AirVPN", but after searching on the forum and spending many hours browsing on the web i'm still not sure how to do it. I'm not knowledgeable using Linux and this is definitely not helping.

      Currently I have my OMV system running fine, but I would like to be able to download torrents using a VPN.

      The instructions on Haugene's GitHub site are quite confusing for me, as AirVPN requires a special setup as the credentials are included in the ovpn file.

      Anyone here using AirVPN in combination with Transmission-OpenVPN?

      On top of that do I need to unistall my current Transmission installation before installing Transmission-OpenVPN?

      Thanks!
    • Hi Geaves and Techno Dad,

      @TechnoDadLife congratulations for your awesome youtube videos, I'm a big fan. :)

      I read the README file, but I'm having troubles to proceed with the setup as i'm still a newbie with Docker.

      Add a new volume mount to your docker run command that mounts your config file: -v /path/to/your/config.ovpn:/etc/openvpn/custom/default.ovpn

      Should I add this command to the same window were I add the PUID and the PGID?

      Then you can set OPENVPN_PROVIDER=CUSTOM and the container will use the config you provided. If you are using AirVPN or other provider with credentials in the config file, you still need to set OPENVPN_USERNAME and OPENVPN_PASSWORD as this is required by the startup script. They will not be read by the .ovpn file, so you can set them to whatever.

      This is clear

      Note that you still need to modify your .ovpn file as described in the previous section. If you have an separate ca.crt, client.key or client.crt file in your volume mount should be a folder containing both the ca.crt and the .ovpn config.

      This part is not clear to me, in the previous part it's not described how to modify the .ovpn file. Which one would be my volume mount folder?

      Mount the folder contianing all the required files instead of the openvpn.ovpn file. -v /path/to/your/config/:/etc/openvpn/custom/

      Should I add this command to the same window were I add the PUID and the PGID, like before?

      Additionally the .ovpn config should include the full path on the docker container to the ca.crt and additional files. ca /etc/openvpn/custom/ca.crt

      How do I add this information in the .ovpn file?

      If -e OPENVPN_CONFIG= variable has been omitted from the docker run command the .ovpn config file must be named default.ovpn. IF -e OPENVPN_CONFIG= is used with the custom provider the .ovpn config and variable must match as described above.

      This last part is also not clear to me.

      Sorry for all the questions, but I'm not able to do it by myself.

      Thanks again

      Best regards
    • rhodesfreak wrote:



      This part is not clear to me, in the previous part it's not described how to modify the .ovpn file. Which one would be my volume mount folder?

      Mount the folder contianing all the required files instead of the openvpn.ovpn file. -v /path/to/your/config/:/etc/openvpn/custom/

      Should I add this command to the same window were I add the PUID and the PGID, like before?

      Additionally the .ovpn config should include the full path on the docker container to the ca.crt and additional files. ca /etc/openvpn/custom/ca.crt

      How do I add this information in the .ovpn file?

      If -e OPENVPN_CONFIG= variable has been omitted from the docker run command the .ovpn config file must be named default.ovpn. IF -e OPENVPN_CONFIG= is used with the custom provider the .ovpn config and variable must match as described above.
      It should be added like this, I think.



      I don't have any experience doing this. But it turns a simple container into a complex container. Have you thought about just switching to a more popular vpn where everything is already set up for you?
      Build, Learn, Create.

      How to Videos for OMV

      Post any questions to the forum, so others can benefit from your curiosity. :thumbsup:
      No private support.
    • Hello,

      I finally managed to run openvpn docker transmission with a "custom provider"
      I will try to explain what I did but I have bad English.

      First
      We will take the example that I have my 4 files
      test.ovpn
      testca.crt
      test.crt
      test.key


      I just edit in the test.ovpn file (with notepad ++)
      ca testca.crt <=> ca /etc/openvpn/custom/test.crt
      key test.key <=> key /etc/openvpn/custom/test.key
      cert test.crt <=> cert /etc/openvpn/custom/test.crt

      After in the AppData shared folder I created an OpenVPN/test/ folder

      In OpenVPN/test/ I put my 4 files
      test.ovpn
      testca.crt
      test.crt
      test.key

      I created to another folder in AppData/OpenVPN/test/default.ovpn/
      In this folder I created a file named default.ovpn
      With notepad ++ I edit it and I just write test.ovpn at the first line
      So I have AppData/OpenVPN/test/default.ovpn/default.ovpn


      The configuration of the docker is exactly the same as in the video, I just added
      OPENVPN_CONFIG = test

      I do not have user or password set to "dummy"

      In Hostpath Container Path
      /sharedfoldersAppData/OpenVPN/test/default.ovpn <=> /etc/openvpn/custom/default.ovpn
      /sharedfolders/AppData/OpenVPN/test <=> /etc/openvpn/custom


      For me it works