How do you start or stop IP Tables
service iptables status
Unit iptables.service could not be found.
systemctl start iptables
Failed to start iptables.service: Unit iptables.service not found.
I found this file But there's no Indication of a start function
/usr/sbin/iptables-apply
I ran find / -name "iptables" and got this
/usr/bin/iptables-xml
/usr/lib/python3/dist-packages/ufw/backend_iptables.py
/usr/lib/python3/dist-packages/ufw/__pycache__/backend_iptables.cpython-36.pyc
/usr/sbin/iptables-apply
/usr/share/bash-completion/completions/iptables
/usr/share/iptables
/usr/share/iptables/iptables-rules
/usr/share/iptables/iptables.xslt
/usr/share/ufw/iptables
/usr/share/doc/iptables
/usr/share/zsh/functions/Completion/Linux/_iptables
/usr/share/man/man8/iptables-extensions.8.gz
/usr/share/man/man8/iptables.8.gz
/usr/share/man/man8/iptables-restore.8.gz
/usr/share/man/man8/iptables-save.8.gz
/usr/share/man/man8/iptables-apply.8.gz
/usr/share/man/man1/iptables-xml.1.gz
/usr/share/mime/text/x-iptables.xml
/usr/local/share/doc/pgl/examples/iptables-custom-remove.sh
/usr/local/share/doc/pgl/examples/iptables-custom-insert.sh
/usr/local/var/lib/pgl/.pglcmd.iptables.remove.sh
/etc/rsyslog.d/my_iptables.conf
/sbin/iptables-restore
/sbin/iptables
/sbin/iptables-save
/var/log/iptables.log
/var/lib/dpkg/info/iptables.md5sums
/var/lib/dpkg/info/iptables.list
So where exactly does it start?
iptables
isn't a service you 'stop'. It's the underlying system firewall. You can removeiptables
, but its not a service you can 'stop'. What's the actual issue you're having? – Thomas Ward Jun 04 '18 at 13:34iptables
is just a program that allows you to see the rules in place for the underlyingnetfilter
system.ufw
is another similar program. The filtering is done at a non-service level so there is noiptables
service that really loads up at boot - it's just 'omnipresent'. The only thing that you could do is a boot script that either loads up rules or flushes out rules to get back to a 'default' empty ruleset state – Thomas Ward Jun 04 '18 at 13:38iptables
is not a service" remains valid here. – Thomas Ward Jun 04 '18 at 13:39iptables
is just a front-end interface to the underlyingnetfilter
rulesets loaded up in memory for use at the kernel layer. There's noiptables
ornetfilter
program you can start or stop. – Thomas Ward Jun 04 '18 at 13:43iptables-persistant
. See https://askubuntu.com/questions/119393/how-to-save-rules-of-the-iptables – Panther Jun 04 '18 at 14:55