I've followed this guide: How to block internet access for wine applications?
And created the following rules:
sudo addgroup no-internet # Create group "no-internet"
sudo adduser $USER no-internet # Add current user to no-internet
sudo iptables -I OUTPUT 1 -m owner --gid-owner no-internet -j DROP
sudo ip6tables -I OUTPUT 1 -m owner --gid-owner no-internet -j DROP # To also block IPv6 traffic
I then run the WINE app:
sg no-internet -c "wine-stable pathToApp"
But how do I make this a persistent rule so that I don't have to run the WINE app via sg no-internet -c "wine-stable pathToApp" (i.e. even if I run the app directly) and also it will work even after reboot?