Blocking open ports on Linux!!!

Hello All,
I am using APF and iptables firewall on different server.I have two questions ? CAn i use both iptables and APF simultaneously.I think I can't .But can anybody justify it.
Second thing is that I want to block port 631 on our local server.
I have tried this for it:
I have added entries in deny_host file in apf directory.. as :
tcp:in:d=631Blocking open ports on Linux!!!=0.0.0.0
then
apf -s
But it is working ?Why?
Help me !!! How should I block port ?
Thanks you

 

 

 

 

Top