I have currently configured my Ubuntu system to connect to an OpenVPN server on startup. This is done by placing a configuration file in the
Additionally, I would like to enable a firewall to ensure all connections go through the VPN. To this end, I have added this line to my OpenVPN configuration:
Which points to a bash script with the following contents:
#!/bin/bash ufw enable
However, upon a system reboot, the VPN connection is made successfully, but
ufw status reports that the firewall is still inactive.
Edit: stderr output from
ufw enable command: https://pastebin.com/UYdh6iHq.