GithubHelp home page GithubHelp logo

andrew-naish / docker-openvpn-proxy Goto Github PK

View Code? Open in Web Editor NEW
33.0 3.0 17.0 28 KB

Docker container > :8080 > OpenVPN > Internet

Shell 80.91% Dockerfile 19.09%
docker docker-container openvpn-proxy openvpn ovpn

docker-openvpn-proxy's People

Contributors

andrew-naish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-openvpn-proxy's Issues

Leaks actual IP when failing to authenticate

I accidentally provided wrong authentication details. Checked for my public IP via curl (using the proxy) and found out that my public IP was being used.

Here is the output of docker logs:

2021-01-12 10:59:43.104 7f81ea130b48 Info: Listening on port 8080 on IP address 0.0.0.0
Tue Jan 12 10:59:43 2021 AUTH: Received control message: AUTH_FAILED
2021-01-12 10:59:44.643 7f81ea01cb20 Request: icanhazip.com/
Tue Jan 12 10:59:45 2021 AUTH: Received control message: AUTH_FAILED

I wonder if Privoxy should listen to a specific IP tied to openvpn rather than 0.0.0.0?

check / set ovpn config

Check for / Add the following line to targeted VPN config.

auth-user-pass /app/ovpn/config/credentials.txt

These actions should be done within /app/ovpn/run.

  • For the check - echo something to stdout if the line isn't found.
  • For the fix - copy the ovpn file within the container to a new location, adding the line and using that ovpn file to connect. I don't want to enforce write permissions to the volume.

onlinecheck changes

Use cron instead of while sleep

It's what cron is made for after all.
There is already a baked in 15min interval, I can use that.
https://devopsheaven.com/cron/docker/alpine/linux/2017/10/30/run-cron-docker-alpine.html

Replace ONLINECHECK_DELAY with ONLINECHECK_QUERYURL

I think I should remove the option to easily set the delay and instead add the option to configure the query URL.
After switching to cron this will be harder to set anyway.
The default is and will remain https://www.google.co.uk if unset.

TODO: Externalise .ovpn path definition

I should have the ability to define the ovpn path as a volume instead of defining as a variable.

This makes the container much easier to use:

  1. You can store ovpn file anywhere.
  2. You can change config more easily.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.