Git Product home page Git Product logo

nordvpn-proxy's Introduction

nordvpn-proxy

Description

Sometimes you want to hide your IP, but just for one specific application. Or a couple; but certainly you do not want to completely switch to another network.

If your application does support SOCKS (or even HTTP) proxy, nordvpn-proxy is what you need!

However, please be aware that this is a very hacky solution, suitable for private use but definitely not production-ready (for whatever definition of "production"). You might want to check the links in References for other solutions.

Usage

First, go to the Nord Account dashboard to get the service credentials:

Nord Account dashboard screenshot

Paste the credentials to the auth.txt file within the same directory as Dockerfile. Username is the first line; password is the second.

Now, build the thing (note that the aforementioned auth.txt file will be stored in plaintext within the container!):

docker build -t nordvpn-proxy .

Customize the parameters (--env arguments are optional; default is to use TCP and a recommended server) and run the container:

docker run -it --privileged --rm \
    --dns=8.8.8.8 \
    --env SERVER=nl868.nordvpn.com \
    --env PROTOCOL=udp \
    -p 1080:1080 \
    -p 3128:3128 \
    nordvpn-proxy

You can also specify just the 2 digits of the country code and a random server from that country will be selected:

docker run -it --privileged --rm --dns=8.8.8.8 --env SERVER=de -p 1080:1080 nordvpn-proxy

Test it!

curl -x socks5h://127.0.0.1:1080 http://whatismyip.akamai.com
curl -x http://127.0.0.1:3128 http://whatismyip.akamai.com

References

nordvpn-proxy's People

Contributors

creaktive avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

mk386 rbkayz

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.