4 ms·
For those who don't know about uid-owner. Here's how you would block any process running as the "mike" user from accessing anything on localhost: iptables -A O
by mike-cardwell 11y ago
For those who don't know about uid-owner. Here's how you would block any process running as the "mike" user from accessing anything on localhost:
iptables -A OUTPUT -m owner --uid-owner mike -d 127.0.0.0/8 -j REJECT
ip6tables -A OUTPUT -m owner --uid-owner mike -d ::1 -j REJECT