Firewalld command to block all outgoing connection to specific system user
Hi,
I can remember that I had done the same with iptables using Code:
iptables -A OUTPUT -m owner --uid-owner <username> -j DROP Thanks in advance and expecting your kind help on this. |
You want either firewall-cmd or /usr/bin/firewall-config.
You can add such rules using one or the other to the permanent tables to get the same result. I think it will have to be added under "custom rules". |
Hi jpollard,
Thanks for the reply. Would you please post firewall-cmd command for the same. Appreciate your kind help. |
I haven't done it, but most of the specifications appear in
https://www.rootusers.com/how-to-use...ering-and-nat/ Sorry about not knowing the details of your specific rule. |
Hi jpollard,
Thanks for sharing link to learn FirewallD. The link probably has all the info but except what I am expecting here. So would you please let me know which firewall-cmd command is used to block all outgoing connection to specific system user? Or if it is not possible with FirewallD then do I need remove FirewallD and install IPTables? Expecting your kind suggestion. |
IPTables is what firewalld is using. If you disable firewalld you can use it directly.
|
All times are GMT -5. The time now is 02:21 AM. |