5
$ 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
  • 1
    @muru It wasn't even installed. Weird. But it's fixed now!
    – robbie
    Feb 20, 2015 at 21:45

1 Answer 1

6

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

sudo apt-get install --reinstall iptables

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .