Iptables: Command Not Found
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...
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?
1 Answer
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