0

I'm currently using the guide posted on Torguard here. Everything work perfectly up until setting up the cronjob to start at reboot.

This is the steps I've taken:

crontab -e

and then adding this line below my other cronjobs:

@reboot sudo openvpn --daemon --cd /etc/openvpn --config TorGuard.Canada.ovpn

When I reboot, TorGuard has not restarted.

1 Answers1

0

First of all, sudo doesn't work in crontabs.

Next, you need to specify the full path to the .ovpn file.

Instead of this:

TorGuard.Canada.ovpn

you need something like this instead:

/home/just_some_guy/Downloads/TorGuard.Canada.ovpn

However, I believe this is not the recommended way to do this. See related post.

mchid
  • 43,546
  • 8
  • 97
  • 150