Navigation


RSS : Articles / Comments


CSF firewall and commands

5:06 PM, Posted by कैलास बधान, No Comment

Checking IP block with CSF :
Syntax : csf -g ipaddress


EX :

[root@server ~]# csf -g 190.161.18.37

Chain       num   pkts bytes target     prot opt in     out     source               destination

LOCALINPUT  109    881 46544 DROP       all  --  !lo    *       190.161.18.37        0.0.0.0/0

LOCALOUTPUT 104      0     0 DROP       all  --  *      !lo     0.0.0.0/0            190.161.18.37

csf.deny: 190.161.18.37 # lfd: (PERMBLOCK) 190.161.18.37 has had more than 4 temp blocks in the last 86400 secs - Wed Apr 28 14:58:04 2010
[root@server ~]#
OR


cat /etc/csf/csf.deny | grep ipaddress

No Comment