I would like to restrict network access for a specific user. I am used to configure iptables (Ubuntu), so please excuse this simple question.
How can I restrict all network access for a specific user?
First, I set the iptables rule: iptables -A OUTPUT -m owner --uid-owner 1002 -j REJECT
This blocks all network access for this user. Then I installed iptables-services and saved my iptables rules with iptables-save > /etc/sysconfig/iptables and ip6tables-save > /etc/sysconfig/ip6tables
However, after restart, the rules do net get applied automatically. I then read that Fedora is using firewalld.
Is there a simple way to block this user with firewalld or do I need to rely on iptables (and therefore do something else to make it applying my rules automatically?