Comments (14)
Hey,
It should be almost that easy. You just have to do some modification to the .ovpn files so that it will actually read the username/password that is provided etc. I have tried to script this however, and depending on the .ovpn files it should do all the work for you.
Try this:
- Add folder "pure" and put all configs in there
- From the openvpn folder, run the adjustConfigs.sh script with "pure" as argument
- ie. adjustConfigs.sh pure
- This should set ca cert location, auth-settings and name of the tun device. Also it adds up/down instructions to start and stop Transmission with the connection.
For reference, here are my two commits for adding IPVanish provider. The first adds all the configs:
b94f753
The second has the modifications made by adjustConfigs.sh script:
f10b134
Apart from this I also add a symlink to one of the .ovpn files and call the link "default.ovpn". That will be chosen as config if no OPENVPN_CONFIG is provided.
Give it a go and create a PR to the dev branch if you get it working. Or if you give me a link to the configs I can add it for you. I should probably add a section to the README on how to add new providers :)
from docker-transmission-openvpn.
I am French, I use Google Translation
Hello,
It would be possible to detail a procedure?
I'm far from an expert and would like to make a mistake ...
My goal would be to connect to the VPN Server of my little VPS.
thank you beforehand
from docker-transmission-openvpn.
CooperBarret, here is a little update on my results. In short, it works fine.
-- I cloned the repository to a local folder using git on my Synology NAS
-- I added a directory "pure" as instructed by haugene above, added the PureVPN .ovpn files into it and ran the "adjustConfigs.sh" script
-- I built a new docker container using "docker build -t transmission-openvpn ."
-- to run the container, I use "docker run --restart=always --privileged -d -v /volume1/torrent:/data -e "OPENVPN_PROVIDER=pure" -e "OPENVPN_CONFIG=SWEDEN-TCP" -e "OPENVPN_USERNAME=purevpn123456" -e "OPENVPN_PASSWORD=#############" -p 9091:9091 --name transmission-openvpn --dns 8.8.8.8 --dns 8.8.4.4 transmission-openvpn"
-- Note I had to use the DNS option as indicated by haugene as a known issue, as the container was unable to resolve DNS requests (this was visible in the logfiles)
-- I tested the nginx container, it works fine but I don't need it since I use a separate openVPN setup to access my NAS
-- torrent files added to /volume1/torrent/watch (e.g. by Sickrage or other) automatically get downloaded
It was quite simple to setup. I am a complete noob with Docker and my Synology NAS and this took me about an hour. Good luck!
from docker-transmission-openvpn.
I am French, I use Google Translation
@makloda
Thank you for your explanation is very clear.
Unfortunately I can not test this week but I will test with my VPS and give back information on the result.
Again thank you, your procedure will help me a lot.
from docker-transmission-openvpn.
I am French, I use Google Translation
Obviously, it does not work ...
I try to add the VPN "Cryptostorm".
Here is the message that I when I run "adjustconfig.sh"
./adjustConfigs.sh: line 3: tput: command not found
./adjustConfigs.sh: line 4: tput: command not found
sed: bad substitution option in Expression
sed: bad substitution option in Expression
Updated .ovpn all files in folder cryptostorm /
I'm on Qnap (ts-253pro), I do not know if I can install the program that executes "tput".
As for "sed: bad option in substitution expression," I do not know how to solve it ...
I also tried with my personal VPN created from a small VPS and I have the same error message.
If you have any solutions, I'm interested.
Thank you beforehand
from docker-transmission-openvpn.
Sorry for the late reply here. Have you gotten any further? You don't need to use the script to adjust the configs if it doesn't work for you. All it does is to change the device name, paths for ca- and auth-files plus add some triggers for interface up and down to start/stop transmission. It's the changes that are done to all configs in this commit: f10b134
from docker-transmission-openvpn.
hello,
thanks fort these information, i tried it yesterday, but i always have the same problem to add HMA provider
the logs are : unable to find HMA provider.
i create a new image with openvpn/HMA folder with all ovpn files,
i ran the adjustconfig script to add tun0 and start/stop transmission at bottom
but always the same error, is it a list of all vpn providers in a config file ?
thanks
from docker-transmission-openvpn.
There is no list of vpn providers. It just converts the OPENVPN_PROVIDER parameter to lowercase and checks for that folder under openvpn folder.
The logs says "Could not find OpenVPN provider: HMA", right?
Your error comes from here i guess:
https://github.com/haugene/docker-transmission-openvpn/blob/master/openvpn/start.sh#L6
Don't know what you're doing wrong. I can add HMA as provider for you, but this week is very busy for me. Maybe I'll have some time before the weekend, maybe not :) I'll follow up in issue #53
from docker-transmission-openvpn.
ahhh ! you gave a big point !
It just converts the OPENVPN_PROVIDER parameter to lowercase
my folder was in uppercase
opvenvpn/HMA
I rename it in lowercase and it works (some few problems with my HMA authentication, but it works now)
if U want to add them for others people, you can find HMA ovpn files here
thanks a lot for all ! i will rebuild it and put it in my synology !
from docker-transmission-openvpn.
Good stuff! 👍
I'll put "Adding HMA" on my TODO-list so that others can use it as well, and we'll see when I get it done. If you've added all the configs in your repo, feel free to submit a PR ;)
from docker-transmission-openvpn.
it is my first time on GitHub, your project is very interessant, so during my weekend, i installed an ubuntu virtual machine, i learnt Docker (using video courses) and registrer on docker website to create my own image and container !
it was a very good geek weekend :) thanks :D
PS : i don't understand "pull request" i added you as collaborator on my github if you can do yourself a PR for U, my copy of your stuff is https://github.com/gaeldevo/docker-transmission-openvpn-master
i have the issue on my synology for the tun/tap error, i'm working on it ...
from docker-transmission-openvpn.
👍 Sounds like a good weekend indeed! ;) Glad to hear you found it interesting, Docker is a really cool piece of tech.
Hmm, yeah. I see you've created a new GitHub repo. I can do a diff towards mine and get your changes, but usually you would just fork my repo and then be able to create a pull request as they call it where your changes(commits) are merged into my repository.
Good luck with the tun/tap! Post your findings if you have some good ones, I should make an entry of it in the readme. Just been swamped at work lately :)
from docker-transmission-openvpn.
I am also interested by that ! has anyone succeeded to add it on synology & HMA ?
from docker-transmission-openvpn.
I have updated the readme with info on how to add providers, and since the providers discussed here are already added I'm closing this issue.
from docker-transmission-openvpn.
Related Issues (20)
- Web UI taking too long to respond HOT 3
- High CPU usage HOT 13
- download-dir override not working HOT 3
- Let other containers use the VPN has some IP leaks HOT 1
- Container exiting after ping timeout, stuck in a loop HOT 11
- Container seems to star fine, but cannot reach & killed after 5 mins
- WebUI login not asked in Firefox HOT 1
- Problem resolved itself
- su: cannot set groups: Operation not permitted HOT 5
- Downloads stall with "too many open files" HOT 5
- Documentation show `x.protonvpn.net.udp` while file are named `x.protonvpn.udp` HOT 1
- NordVPN CDN Down? HOT 1
- Included firewall not aware of peer port in the transmission configuration
- Transmission web ui not displayed; curl returns unauthorised HOT 1
- AUTH_FAILED, data channel cipher negotiation failed (no shared cipher) HOT 102
- healthcheck.sh reporting DNS failure if VPN service DNS incorrectly filters IPv6 addresses HOT 5
- Transmission sets permissions wrong but fixes them on restart with TRANSMISSION_UMASK HOT 4
- Certain Transmission settings.json values can only be set by ENV var HOT 4
- WebUI not working HOT 1
- DNS problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-transmission-openvpn.