Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jatochnietdan/docker-vpn
Allows possibility to run a VPN in a docker container and connect to it via SOCKS5 proxy
https://github.com/jatochnietdan/docker-vpn
socks5-proxy ssh-tunnel vpn
Last synced: 4 days ago
JSON representation
Allows possibility to run a VPN in a docker container and connect to it via SOCKS5 proxy
- Host: GitHub
- URL: https://github.com/jatochnietdan/docker-vpn
- Owner: JaTochNietDan
- Created: 2020-04-27T13:13:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-27T19:00:00.000Z (about 1 year ago)
- Last Synced: 2023-10-27T20:21:21.161Z (about 1 year ago)
- Topics: socks5-proxy, ssh-tunnel, vpn
- Language: Dockerfile
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker OpenVPN container
Allows you to connect a Docker container to a VPN for the purposes of tunneling connections of your choice through it.## Setup
### Docker-Compose
```yaml
openvpnus:
image: dperson/openvpn-client
container_name: openvpnus
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
volumes:
- ../us.ovpn:/vpn/vpn.conf
dns:
- 8.8.8.8
- 8.8.4.4
ports:
- 1340:1080
- "1401:22"
- "3129:3128"
- "2346:2346"
vpnus:
image: jatochnietdan/docker-vpn
container_name: vpnus
volumes:
- ../us.ovpn:/home/config.ovpn
- ~/.kube:/root/.kube
- ../script.sh:/home/script.sh
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
network_mode: container:openvpnus
depends_on:
- openvpnus
```Then you can tunnel through SSH using `root:test` user on port `1400` and there's a SOCKS5 proxy available at port `1339` with no login
through which you can set one of your browsers to route (I use Firefox).