use openvpn .ovpn files as socks proxies
99
Docker Image: crazyman333/openvpn_socks5
Overview: This Docker image sets up an OpenVPN client configured to act as a SOCKS5 proxy server. It allows users to tunnel their network traffic securely through an OpenVPN connection, facilitating enhanced privacy and security.
Usage Instructions:
To run the container with default settings (no credentials required for .ovpn file):
docker run -it -d --rm --device=/dev/net/tun --cap-add=NET_ADMIN \
--name openvpn-client \
--volume /home/user/Public/openvpn/vpn.ovpn:/etc/openvpn/myvpn.conf:ro \
-p 1080:1080 \
crazyman333/openvpn_socks5
To include credentials for .ovpn file, create login.txt in the format:
username
password
Then run:
docker run -it -d --rm --device=/dev/net/tun --cap-add=NET_ADMIN \
--name openvpn-client \
--volume /home/user/Public/openvpn/login.txt:/etc/openvpn/login.txt \
--volume /home/user/Public/openvpn/vpn.ovpn:/etc/openvpn/myvpn.conf:ro \
-p 1080:1080 \
crazyman333/openvpn_socks5
Note: Replace /home/user/Public/openvpn/ with your actual path where the .ovpn and login.txt files are located.
Testing Finally check if everything working
curl --proxy socks5h://127.0.0.1:1080 ipinfo.io/json
Author: Docker image maintained by crazyman333.
Tags: VPN, OpenVPN, SOCKS5 Proxy, Docker, Security, Privacy.
Content type
Image
Digest
sha256:4bb9d4487…
Size
5.9 MB
Last updated
about 2 years ago
docker pull crazyman333/openvpn_socks5:arm