For the complete documentation index, see llms.txt. This page is also available as Markdown.

wireguard-activate

WireGuard

WireGuard Activate

  1. Tạo file demon service activate

nano /etc/systemd/system/wg-http-activate.service

# enable service
systemctl daemon-reload
systemctl enable wg-http-activate.service

Nội dung file wg-http-activate.service

[Unit]
Description=Activate WireGuard HTTP Trigger
After=network-online.target wg-quick@wg0.service
Wants=network-online.target

[Service]
Type=oneshot
ExecStart=/u01/crontab/00-start-wg.sh

[Install]
WantedBy=multi-user.target
  1. Tạo script start wireguard

Nội dung file 00-start-wg.sh

Last updated