I’m new to Manjaro, and new to using linux on a workstation. I’m trying to become friends with using linux with a DE.
I’ll install some virtualbox VM’s, and I want their network traffic to be routed through a vpn. My approach to this to create a bridge interface. Then make the vpn and the vm’s members of this bridge. I found an default installed application named “advanced network configuration” where I could create bridge interface. Last time I was doing something “advanced” network config in linux was with gentoo, many years ago. Then there was a way to run a command every time a interface came up or down. I want such script to be triggered by the events of up/down on this bridge. On UP I want it to connect the vpn. On DOWN I want it to disconnect the VPN. Where do I enter the commands I want it to run?
Maybe my approach is not a good way at all to do this?
second question: nat rules. Should I create nat rules using iptables commands, or is there a more prefered way for this in manjaro?