# OpenVpn don't launch on boot

Source: https://forum.modalai.com/topic/567/openvpn-don-t-launch-on-boot
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2021-11-19 14:06:20 UTC by Sébastien de Pret Roose de Calesberg
Replies: 4 · Views: 893

## Sébastien de Pret Roose de Calesberg · 2021-11-19 14:06:20 UTC

Hi,
I have OpenVpn that work when I launch the command: 
```
openvpn --daemon --script-security 2 --config /etc/openvpn/modal-connector_amsterdam.ovpn
```
But when I try to have it launch on boot I have the service that launch but I don't have the tun0 showing in ifconfig.![Screenshot from 2021-11-19 14-51-17.png](https://forum.modalai.com/assets/uploads/files/1637330212237-screenshot-from-2021-11-19-14-51-17.png) 
![Screenshot from 2021-11-19 14-57-11.png](https://forum.modalai.com/assets/uploads/files/1637330291156-screenshot-from-2021-11-19-14-57-11.png) 

And i did 
```
systemctl enable vpn-start.service
```

Any idea where the problem could be? Thanks.
(And I ask on the side but is it possible to install zerotier?)

## Reply by tom (ModalAI staff) · 2021-11-19 18:34:00 UTC

I see that the VPN service is starting so that is a positive. It relies on the `voxl-time-sync` service to confirm that the date / time is correct before proceeding. One thing to try is to add  a `sudo` to the front of your openvpn call in the service file. Root access may be required depending on your VPN configuration.

I am not familiar with zerotier so can't give you an answer on that one.

## Reply by Sébastien de Pret Roose de Calesberg · 2021-11-19 22:07:08 UTC

It gives me 2021 when I launch the time-sync command, so it should be ok. 
Going to try the sudo command. 
```
sudo /usr/sbin/openvpn --daemon --script-security 2 --config /etc/openvpn/modal-connector_amsterdam.ovpn
```
So something like that in the vpn-start file, right?

## Reply by tom (ModalAI staff) · 2021-11-19 22:09:58 UTC

@Sébastien-de-Pret-Roose-de-Calesberg Yes, exactly. You may have to specify the whole path of `sudo` i.e. `/usr/bin/sudo`

## Reply by tom (ModalAI staff) · 2021-11-19 22:11:08 UTC

Also, ensure you aren't connecting to your VPN with the same key on a different machine.
