Autostart VPN server at server reboot on Debian 8

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
Ammar
Posts: 3
Joined: Sat Jul 29, 2017 11:54 am

Autostart VPN server at server reboot on Debian 8

Post by Ammar » Sat Jul 29, 2017 12:00 pm

I have followed all the steps to set up the VPN server but on softether's official guide, the startup script is for RHEL OS's but after searching online, i've found the "update-rc.d vpnserver defaults". This works on Ubuntu 14.01 LTS but the VPN server doesn't start on Debian 8. Any help would be highly appreciated.


Ammar
Posts: 3
Joined: Sat Jul 29, 2017 11:54 am

Re: Autostart VPN server at server reboot on Debian 8

Post by Ammar » Sat Jul 29, 2017 9:04 pm

raafat wrote:
>
> https://www.digitalocean.com/community/ ... l-examples
Thanks for your reply but I've already tried that before posting. I couldn't understand anything about the Debian version as it's so confusing.

rclub
Posts: 1
Joined: Mon Aug 13, 2018 1:06 am

Re: Autostart VPN server at server reboot on Debian 8

Post by rclub » Mon Aug 13, 2018 1:25 am

disregard my post, does not apply to debian - was for raspbian

qupfer
Posts: 202
Joined: Wed Jul 10, 2013 2:07 pm

Re: Autostart VPN server at server reboot on Debian 8

Post by qupfer » Tue Aug 14, 2018 12:48 pm

Debian 8 includes systemd? If yes, you should create a service file and enable it:

qupfer@vpn ~ % cat /etc/systemd/system/vpn.service
[Unit]
Description=SoftEther VPN Server daemon
After=network.target

[Service]
Type=forking
ExecStart=/usr/local/bin/vpnserver start
ExecStop=/usr/local/bin/vpnserver stop

[Install]
WantedBy=multi-user.target





and activate it with:
systemctl enable vpn.service
systemctl start vpn.service

Ammar
Posts: 3
Joined: Sat Jul 29, 2017 11:54 am

Re: Autostart VPN server at server reboot on Debian 8

Post by Ammar » Tue Aug 14, 2018 1:37 pm

Thanks for the reply. I'll try it out. Cheers!


Post Reply