$ iptables
sh: 1: iptables: not found
$ sudo iptables
[sudo] password for [redacted]: 
sudo: iptables: command not found
$ /sbin/iptables
sh: 3: /sbin/iptables: not found
$ sudo /sbin/iptables
sudo: /sbin/iptables: command not found

iptables was removed from my computer somehow. How would I access it?

  • 1
    @muru It wasn't even installed. Weird. But it's fixed now! – robbie Feb 20 '15 at 21:45

In case iptables is not installed or the binary is missing, try installing/re-installing it:

sudo apt-get install --reinstall iptables

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.