iptables error
root@linux-laptop:/home/linux# service iptables status
iptables: unrecognized service Why is it so?? Please do help me.. |
Hello,
It would help us a lot if you indicate what distro and version you are using. Check if you have iptables installed as root with: Code:
which iptables Kind regards, Eric |
Thanks for reply...
I am using Ubuntu 10.04 Lucid Lynx. I want to check if firewall is enabled in my laptop. linux@linux-laptop:~$ which iptables /sbin/iptables How to check if I have startup script for iptables?? |
Hi,
Check if you have file named iptables in /etc/init.d. Kind regards, Eric |
In /etc/init.d I dont find iptables.
What does it mean?? |
In Ubuntu the firewall is always enabled, it is not a service - it is a kernel feature, enabled during compilation. But besides enabled firewall you need to write some rules for it and execute them after each reboot, for example as network interface startup script. Programming rules is simple, for example:
Code:
iptables -P INPUT DENY # By default do not allow to anybody to start connection with your machine |
All times are GMT -5. The time now is 05:29 PM. |