This script creates a network namespace, in that namespace your OpenVPN tunnel is the default interface.
- Change your OpenVPN server settings in yourvpn.ovpn, modify the paths to
passwdand crl files accordingly - Put in your username and password in
passwdfile ./piavpn.zsh up./piavpn.zsh start_vpn
Switch to that network namespace with: sudo ip netns exec piavpn bash