Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AirVPN as provider #60

Closed
haugene opened this issue Apr 2, 2016 · 4 comments
Closed

Add AirVPN as provider #60

haugene opened this issue Apr 2, 2016 · 4 comments

Comments

@haugene
Copy link
Owner

haugene commented Apr 2, 2016

@SVR111 requested AirVPN as new provider in #48. As it was a bit off topic, I'm creating a new issue for this request.

Question though! I can add AirVPN as provider, but it seems you need to generate a configuration on their home pages which needs you to be logged in. Could you generate a config for me @SVR111? From what I understand you choose operating system (go linux) and a region to connect to. If you want, you could generate configs for several regions and I'll add them all. Or just send me one.

If someone gives me a dropbox-link or something with configs for AirVPN, I'll it as a provider to the container.

@stevepet
Copy link

stevepet commented Apr 3, 2016

AirVPN uses .ovpn files with private keys generated for each user account. Adding any of these files to the container will only work for the user that generated them. A better solution may be to add a new volume (-v) that points to a configuration directory where users can put their own .ovpn files.
The environment variables OPENVPN_USERNAME and OPENVPN_PASSWORD are also not necessary with these .ovpn files.

@haugene
Copy link
Owner Author

haugene commented Apr 3, 2016

Aha, I see. Well, that can be done without any changes to the container as it is today.

To run it with a custom provider and .ovpn file just add:
-v /path/to/custom/config.ovpn:/etc/openvpn/custom/default.ovpn
and then set OPENVPN_PROVIDER=CUSTOM

You still need to set OPENVPN_USERNAME and OPENVPN_PASSWORD as the startup script will fail if they're not there. But they can both be set to "dummy" and it won't have an effect as the ovpn-config will not read them anyways.

haugene added a commit that referenced this issue Apr 3, 2016
@stevepet
Copy link

stevepet commented Apr 3, 2016

Thanks Kristian, This worked as you described for AirVPN.

@haugene
Copy link
Owner Author

haugene commented Apr 5, 2016

Glad to hear it! Instructions are provided in README and code is merged to master. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants