2

I am trying to learn some iptables stuff, but seems I don't have it installed on 16.04 Ubuntu.

mypc@ubuntu:~$ iptables
-bash: iptables: command not found

How to fix this?

3

iptables needs a root priviledges. Seems like you are trying to execute it as a normal user.

so: sudo iptables

Also, check are iptables loaded in the kernel:

lsmod | grep ip_tables

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.