vi /etc/systemd/system/vpnserver.service
[Unit] Description=Softether VPN Server Service After=network.target [Service] Type=forking User=root ExecStart=/usr/local/vpnserver/bin/vpnserver/vpnserver start ExecStop=/usr/local/vpnserver/bin/vpnserver/vpnserver stop Restart=on-abort WorkingDirectory=/usr/local/vpnserver/bin/vpnserver/ #環境に合わせてwlp2s0は変更する ExecStartPre=/sbin/ip link set dev wlp2s0 promisc on [Install] WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl start vpnserver.service
sudo systemctl status vpnserver.service
sudo systemctl enable vpnserver.service
コメント