A
atomicmak
Guest
i am trying to use plesk's firewall module and i defined some policy which shows
/etc/rc.d/init.d/iptables status
but after 5 to 10 minutes it gets clear up if i issue same command it shows nothing in filter chain
here is sample :
[root@ns3 root]# /etc/rc.d/init.d/iptables status
Table: filter
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Table: mangle
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Table: nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@ns3 root]#
-------------------------------------
i have problem because i am blocking
china, korea, russia, and many more network due to spam and other attacks coming to my server and my customer has no reach in this countries and no need from this customers specially for spam mails.
the problem is iptables not working properly and so i cant get it work.
i did try to save iptables and added some more rule by hand through VI command and when i restart iptables it start working again but then in another 5 minutes its status shows blank chain.
Can any one help me to solve this problem ?
i am so much tired setting up it again and again and i cant go to ssh and restart it every 5 minutes.
please help.
/etc/rc.d/init.d/iptables status
but after 5 to 10 minutes it gets clear up if i issue same command it shows nothing in filter chain
here is sample :
[root@ns3 root]# /etc/rc.d/init.d/iptables status
Table: filter
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Table: mangle
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Table: nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@ns3 root]#
-------------------------------------
i have problem because i am blocking
china, korea, russia, and many more network due to spam and other attacks coming to my server and my customer has no reach in this countries and no need from this customers specially for spam mails.
the problem is iptables not working properly and so i cant get it work.
i did try to save iptables and added some more rule by hand through VI command and when i restart iptables it start working again but then in another 5 minutes its status shows blank chain.
Can any one help me to solve this problem ?
i am so much tired setting up it again and again and i cant go to ssh and restart it every 5 minutes.
please help.