sudo /etc/init.d/iptables command not found

Asked by Manuel Malagon on 2013-01-03

when I try to turn off my firewall using:

$ sudo /etc/init.d/iptables off

I get the error "sudo /etc/init.d/iptables command not found" why is this?

Thanks!!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu iptables Edit question
Assignee:
No assignee Edit question
Solved by:
Savio
Solved:
2013-01-04
Last query:
2013-01-04
Last reply:
2013-01-03
Best Savio (abhijeet) said : #1

it's not present in /etc/init.d/ directory.
It present in /sbin/iptables

you can locate a file using 'whereis' command

like
savio@saviola:~$ whereis iptables
iptables: /sbin/iptables /usr/share/iptables /usr/share/man/man8/iptables.8.gz

Manuel Malagon (m4l490n) said : #2

Thanks Savio, that solved my question.