Run NordVPN on Docker (Windows) Ubuntu container

For people like this

procedure

  1. Docker installation
  2. Container launch
  3. Create boot image
  4. NordVPN connection
  5. Other commands

1. Docker installation

Download (dockerhub): https://hub.docker.com/editions/community/docker-ce-desktop-windows/ Reference procedure site: https://ops.jig-saw.com/tech-cate/docker-for-windows-install

2. Container launch

docker pull ubuntu
docker run -it --name ubuntu1 ubuntu bash

3. Create startup image

NordVPN installation

apt-get update
apt-get install wget
wget -qnc https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb
apt install -y nordvpn-release_1.0.0_all.deb

I get an error, so

ERROR


E: Unable to locate package nordvpn

It passes after repeating apt install, update and upgrade several times.

apt update
apt upgrade
apt install -y nordvpn

If you can not proceed due to an error, if necessary,

apt --fix-broken install

Also mix and hit.

At this point, the following additional settings are required, so create a temporary image.

Temporary image creation

Exit from the container.

docker commit ubuntu1 ubuntu-nordvpn

Create Dockerfile

Make nordvpn start when the container is started. Official: How to build a NordVPN Docker image?

Dockerfile


FROM ubuntu-nordvpn

ENTRYPOINT ["/usr/sbin/nordvpnd", "&"]

Build

Execute the following command in the directory where the Dockerfile is located. Finally, add ". (Period)" that refers to the Dockerfile in the current directory.

docker build -t ubuntu-nordvpn-entrypoint .

Launching a container from a new image

Start the container with the option to grant permission to use network devices.

docker run -it --cap-add=NET_ADMIN --cap-add=SYS_MODULE --device /dev/net/tun --name ubuntu-nordvpn-entrypoint1 --sysctl net.ipv4.conf.all.rp_filter=2 ubuntu-nordvpn-entrypoint

If the shell doesn't respond, press Ctrl + p Ctrl + q to exit the container. Enter with bash again.

docker exec -it ubuntu-nordvpn_entrypoint1 bash

4. NordVPN connection

nordvpn login
# Username :Email address when registering a NordVPN account
# Password :Login password when registering a NordVPN account
nordvpn set protocol tcp
nordvpn set killswitch on     #Even if an error occurs, it will be registered on
nordvpn connect Japan

5. Other commands

For IP check

wget -O - http://inet-ip.info/ 

Link

Recommended Posts

Run NordVPN on Docker (Windows) Ubuntu container
Run openvpn on Docker (windows)
Run React on a Docker container
Run GUI application on Docker container
Run PureScript on a Docker container
Until you run apache on ubuntu on docker
Run Ubuntu + ROS with Docker on Mac
Until you put Ubuntu 20 on Windows 10 Home and WSL2 and run Docker
Run tiscamera on Ubuntu 18.04
M.S. docker on Windows
Run phpunit on Docker
Install Docker on Windows 10 PRO
Run VS Code on Docker
Systemctl cannot be used on Ubuntu inside Docker container
Install Docker on Ubuntu Server 20.04
Ubuntu on Windows Community Preview
Try Docker on Windows 10 Home
Oracle Java 8 on Docker Ubuntu
Run the Android emulator on Docker using Android Emulator Container Scripts
Run chromium-mir-kiosk on Ubuntu Core
Ubuntu on Windows build speed
Run java applet on ubuntu
Run Eclipse CDT on Ubuntu
Run SSE (Server-Sent-Event) samples on docker
Steps to run docker on Mac
Run puppeteer-core on Heroku (Docker edition)
Use Docker Compose on Windows 10 Home
Run the AWS CLI on Docker
How to run JavaFX on Docker
Try Docker on Windows Home (September 2020)
Using Docker on Windows10 Home WSL2
Build ffmpeg 4.3.1 on Ubuntu for Windows
[Microsoft] Run Azure Pipelines (VSTS) Agent on Docker or Azure Container Instance
Install Ubuntu20.04 on RaspberryPi 4 and build Kubernetes to run the container
Windows Docker: Disk pressure on WSL files
I tried running Docker on Windows Server 2019
Launch docker container on EC2 (personal memorandum)
Run Embulk on Docker to convert files
Use docker in proxy environment on ubuntu 20.04.1
Introducing Docker Desktop for Windows on WSL2
Until you run CuPy (v11.1) on Ubuntu 20.04
Microservices 101-I tried putting Docker on Ubuntu-
Try putting Docker in ubuntu on WSL
Liberty on Docker
Run JSP Hello World with Tomcat on Docker
I made a Docker container to run Maven
Send emails using Docker container on Raspberry Pi 3
Monitor the Docker container and SystemD process on the same host with Zabbix on Ubuntu.
Small Docker container
Update container image with KUSANAGI Runs on Docker
Docker on Ubuntu18.04 on WSL2 and VSCode installation instructions
I tried running Ansible on a Docker container
Operate Docker Desktop for Windows on Linux (WSL)
How to run NullpoMino 7.5.0 on Ubuntu 20.04.1 64bit version
tmux on Ubuntu
Redmine on Docker
Install Ubuntu 20.04 in virtual box on windows10 and build a development environment using docker
Eh !? Run Linux on Windows? I can do it! !! (I set WSL2 and put Ubuntu)
I built an Ubuntu environment on Windows 10 using WSL2.
Easily build Redmine on Windows using WSL2 and Docker
GitHub Actions/Cache: Cache bundle installed gems on Docker container