Skip to content

science2468/openvpn-socks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

推荐

podman create --name openvpn-socks --device=/dev/net/tun --cap-add=NET_ADMIN \
 -p 1080:1080 \
 -v /home/max/ustcp:/etc/openvpn-socks \
 -e OVPN=/etc/openvpn-socks/yourconfig.tcp.ovpn \
 ghcr.io/science2468/openvpn-socks
mkdir -p .config/systemd/user/
podman generate systemd --name openvpn-socks > ~/.config/systemd/user/container-openvpn-socks.service
systemctl --user daemon-reload
systemctl --user enable container-openvpn-socks.service
systemctl --user start container-openvpn-socks.service
loginctl enable-linger <username>

<username> 是非root用户登录系统的当前用户名称(也就是非root用户)。具体请看教程,再看Redhat的podman文档 重新设置

systemctl --user stop container-openvpn-socks.service
systemctl --user disable container-openvpn-socks.service

About

podman运行openvpn和socks服务器的容器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages