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
passwd
and crl files accordingly - Put in your username and password in
passwd
file ./piavpn.zsh up
./piavpn.zsh start_vpn
Switch to that network namespace with: sudo ip netns exec piavpn bash