Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

iptables help?

So... I want to use iptables to block other user account in my workstation from accessing internet. What I'm doing is running this:

# iptables -A OUTPUT -o wlp2s0 -m owner --uid-owner 1001 -j DROP

as the user ID of what I want to block is 1001 and wlp2s0 is the only outgoing internet access I have.

now, I want to save it, which in this guide:

uses service command, which gives me this output:

The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.

and systemctl doesn't recognize iptables as one of the valid operation.

I don't know anything about iptables beside the guide and a few I've read here and there.

So, by that guide, there should be an iptables file in /etc/init.d?