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

Asked by Manuel Malagon

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
Manuel Malagon (m4l490n) said :
#2

Thanks Savio, that solved my question.