LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Iptables rules getting flushing when service started (https://www.linuxquestions.org/questions/linux-server-73/iptables-rules-getting-flushing-when-service-started-915134/)

jsaravana87 11-23-2011 10:53 AM

Iptables rules getting flushing when service started
 
Hi
i installed iptables but it gets disabling when i start up my service ..
can some one help me out wat wrong in my firewall rules
# Generated by iptables-save v1.3.5 on Wed Nov 23 22:20:25 2011
*filter
:INPUT ACCEPT [155:11954]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [79:9816]
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22-j ACCEPT -s xx.xx.xx.xx
COMMIT
# Completed on Wed Nov 23 22:20:25 2011

unSpawn 11-23-2011 12:36 PM

Quote:

Originally Posted by arun5002 (Post 4531848)
i installed iptables but it gets disabling when i start up my service ..

Which service exactly and what is the (error) message?


Quote:

Originally Posted by arun5002 (Post 4531848)
can some one help me out wat wrong in my firewall rules

There's nothing wrong with it if you like it to be that way but this is not the default rule set the distribution comes with. Due to the standard chain ACCEPT policies it allows all inbound and outbound traffic. And in that state the one rule listed is unnecessary. What are you trying to accomplish? What services should be protected?


All times are GMT -5. The time now is 02:55 PM.