BlueXIII's Blog

热爱技术,持续学习

0%

Docker版OpenVPN

GitHub

https://github.com/curve25519xsalsa20poly1305/docker-openvpn-socks5

参考

https://zzz.buzz/zh/2018/03/07/windows-openvpn-logs-algorithm-too-weak-solution/

启动脚本

1
2
3
4
5
6
docker run  -itd --name ov_publish \
--device=/dev/net/tun --cap-add=NET_ADMIN \
-v /opt/openvpn/publish:/vpn:ro \
-e OPENVPN_CONFIG=/vpn/vpn.ovpn \
-p 7031:1080 \
curve25519xsalsa20poly1305/openvpn-socks5

ovpn配置文件调整

vpn.ovpn

1
2
3
4
# 继续接受弱算法保护的证书
tls-cipher "DEFAULT:@SECLEVEL=0"
# 配置用户名密码文件
auth-user-pass login.conf

login.conf

1
2
yourname
yourpass