How do I fix the iptables: command not found problem that happened to Debian 7.6?
batman@gotham:~$ uname -a Linux gotham 3.14-0.bpo.2-amd64 #1 SMP Debian 3.14.13-2~bpo70+1 (2014-07-31) x86_64 GNU/Linux batman@gotham:~$ iptables -L bash: iptables: command not found batman@gotham:~$ sudo apt-get install iptables [sudo] password for batman: Reading package lists... Done Building dependency tree Reading state information... Done iptables is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. batman@gotham:~$ I googled extensively and most of the answers were for CentOS and Fedora that dated back to 2005 and 2009.
echo $PATH?PATHso it is thesudoyou are missing.iptablesis not installed by default. Andsudo apt install iptablesworks. OP hasiptablesinstalled obviously.