https://bugs.contribs.org/show_bug.cgi?id=11326

--- Comment #30 from Terry Fage <[email protected]> ---
/usr/lib/systemd/system/vpnserver.service

Unit]
Description=SoftEther VPN Server
After=network.target auditd.service
ConditionPathExists=!/opt/vpnserver/do_not_run

[Service]
Type=forking
EnvironmentFile=-/opt/vpnserver
ExecStart=/opt/vpnserver/vpnserver start
ExecStop=/opt/vpnserver/vpnserver stop
KillMode=process
Restart=on-failure

# Hardening
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=full
ReadOnlyDirectories=/
ReadWriteDirectories=-/opt/vpnserver
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST
CAP_NET_RAW CAP_SYS_NICE CAP_SYS_ADMIN CAP_SETUID

[Install]
WantedBy=multi-user.target
still using the /opt directory

changed dirs to /usr/ lest see what we get

reboot

voila, shes alive

[root@sme10a5 ~]# systemctl status vpnserver
● vpnserver.service - SoftEther VPN Server
Loaded: loaded (/usr/lib/systemd/system/vpnserver.service; enabled; vendor
preset: enabled)
Drop-In: /usr/lib/systemd/system/vpnserver.service.d
└─51koozali.conf
Active: active (running) since Sun 2021-01-24 08:49:05 AEDT; 1min 0s ago
Process: 1166 ExecStart=/usr/vpnserver/vpnserver start (code=exited,
status=0/SUCCESS)
Main PID: 1739 (vpnserver)
Memory: 19.4M
CGroup: /system.slice/vpnserver.service
├─1739 /usr/vpnserver/vpnserver execsvc
└─1740 /usr/vpnserver/vpnserver execsvc

Jan 24 08:48:54 sme10a5.sme10a5.fage.org systemd[1]: Starting SoftEther VPN
Server...
Jan 24 08:48:57 sme10a5.sme10a5.fage.org vpnserver[1166]: The SoftEther VPN
Server service has been started.
Jan 24 08:49:02 sme10a5.sme10a5.fage.org vpnserver[1166]: Let's get started by
accessing to the following URL from your PC:
Jan 24 08:49:02 sme10a5.sme10a5.fage.org vpnserver[1166]:
https://192.168.2.110:5555/
Jan 24 08:49:02 sme10a5.sme10a5.fage.org vpnserver[1166]: or
Jan 24 08:49:02 sme10a5.sme10a5.fage.org vpnserver[1166]:
https://192.168.2.110/
Jan 24 08:49:02 sme10a5.sme10a5.fage.org vpnserver[1166]: Note: IP address may
vary. Specify your server's IP address.
Jan 24 08:49:02 sme10a5.sme10a5.fage.org vpnserver[1166]: A TLS certificate
warning will appear because the server uses self sign...ning.
Jan 24 08:49:05 sme10a5.sme10a5.fage.org systemd[1]: Started SoftEther VPN
Server.
Hint: Some lines were ellipsized, use -l to show in full.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to