Dietpi-vpn in automation_custom -?


I’m wondering if it’s possible to use the “dietpi-vpn” command in either the “” or “” script. My goal is to set up my VPN during the installation process.

It looks like the “/etc/openvpn/” directory is only created when the “dietpi-vpn” command is executed. As a result, I’m having trouble placing my VPN profile file, “.ovpn”, in any folder before this directory is created.


Why not create the directory and place the file in the automation_custom scripts? How will you navigate through the multiple screens of dietpi-vpn when you run it from a script?

better to not use dietpi-vpn in this case.

I would recommend to use the automation script and install OpenVPN directly, copy the configuration file and start OpenVPN via CLI.

Ah okay thanks :slight_smile: I was just wondering if dietpi-vpn could be “automatic” installed during setup :stuck_out_tongue:

I just wanted to invoke it, so that all the folders, dependencies etc. is already setup, and I just need to run dietpi-vpn and enter username password… :nerd_face:
I like the killswitch that is built-in… that’s why.

dietpi-vpn is not a tool or app. It’s a wrapper script for OpenVPN. Hence, you need to install OpenVPN tool.