归档

WireGuard安装与配置

在使用linux系统的过程中,我们往往不希望ssh端口直接暴露在公网,此时通过wireguard组网、服务器防火墙禁止22入站就可以实现相对较高的安全性(在不配置fail2ban或密钥登陆的时候尤其如此) wg使用udp协议通信,在一切的开始时需要先确定并放行为wg分配的端口(此案例假设为20000

守护进程模板

一、systemctl systemctl daemon-reload systemctl enable app && systemctl start app systemctl status app 编写app.service vi /etc/systemd/system/app [Unit] D