需要开机启动,需要将命令写入rc.local 2、命令行启动容器 docker run -d \ --name=wg-easy \ -e WG_HOST=YOUR_SERVER_IP \ -e PASSWORD=YOUR_ADMIN_PASSWOR \ -e WG_DEFAULT_ADDRESS=10.0.0.x \ -e WG_DEFAULT_DNS=114.114.114.114 \ -e WG_PERSISTENT_KEEPALIVE=30 \ -e WG_ALLOWED_IPS=10.0....
需要开机启动,需要将命令写入rc.local 2、命令行启动容器 docker run -d \ --name=wg-easy \ -e WG_HOST=YOUR_SERVER_IP \ -e PASSWORD=YOUR_ADMIN_PASSWOR \ -e WG_DEFAULT_ADDRESS=10.0.0.x \ -e WG_DEFAULT_DNS=114.114.114.114 \ -e WG_PERSISTENT_KEEPALIVE=30 \ -e WG_ALLOWED_IPS=10.0....
AllowedIPs = 0.0.0.0/0, ::0/0 PersistentKeepalive = 25 EOF } #centos7安装wireguard wireguard_install(){ curl -Lo /etc/yum.repos.d/wireguard.repo https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-7/jdoss-wireguard-epel-7.repo yum install -y dkms gcc-c++ gcc-gfortran...
3、使用1Panel面板配置WG映射端口,挂载卷Command'/usr/bin/dumb-init' 'node' 'server.js'Entrypoint'docker-entrypoint.sh'环境变量 WG_HOST=172.16.0.2PASSWORD=passwd@123WG_DEFAULT_ADDRESS=192.168.123.xWG_DEFAULT_DNS=114.114.114.114WG_PERSISTENT_KEEPALIVE=30WG_ALLOWED_IPS=192.168.1.0/24,192...
-e WG_PERSISTENT_KEEPALIVE=25 (重连间隔)\ -v /opt/wg-easy:/etc/wireguard \ -p 51820:51820/udp \ -p 51821:51821/tcp \ --cap-add=NET_ADMIN \ --cap-add=SYS_MODULE \ --sysctl="net.ipv4.conf.all.src_valid_mark=1" \ --sysctl="net.ipv4.ip_forward=1" \ ...
typeWireGuardOptionstruct{BasicOptionWireGuardPeerOptionNamestring`proxy:"name"`Ipstring`proxy:"ip,omitempty"`Ipv6string`proxy:"ipv6,omitempty"`PrivateKeystring`proxy:"private-key"`Workersint`proxy:"workers,omitempty"`MTUint`proxy:"mtu,omitempty"`UDPbool`proxy:"udp,omitempty"`PersistentKeepaliveint`pr...
WG_PERSISTENT_KEEPALIVE 0 25 Value in seconds to keep the "connection" open. If this value is 0, then connections won't be kept alive. WG_DEFAULT_ADDRESS 10.8.0.x 10.6.0.x Clients IP address range. WG_DEFAULT_DNS 1.1.1.1 8.8.8.8, 8.8.4.4 DNS server clients will use. If set to...
Explore setting up WireGuard Easy, WG Easy, a versatile Wireguard config generator VPN server solution for Linux in a Docker container
Tx/Rx charts for each connected client. Gravatar support. only support Chinese language. Requirements A host with a kernel that supports WireGuard (all modern kernels). A host with Docker installed. Installation 1. Install Docker If you haven't installed Docker yet, install it by running: ...
"Name","Address","Endpoint","AllowedIPs","ListenPort","PersistentKeepalive","FwMark","PrivateKey","DNS","MTU","Table","PreUp","PostUp","PreDown","PostDown","SaveConfig" "tokyo1","10.1.0.1/16","tokyo1.com","","51820","","","yJndNh80ToNWGOfDlbtho1wHAEZGa7ZhNpsHf7AJVUM="...