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 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

0

Your Answer

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

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest