[Unit]
Description=OpenVPN Service
[Service]
Type=forking
ExecStartPre=/sbin/iptables-restore /etc/iptables-save
ExecStart=/usr/sbin/openvpn --cd /etc/openvpn --config /etc/openvpn/server.conf --daemon
[Install]
WantedBy=multi-user.target
openvpn systemd 配置
发布于