Page 1 of 1

"csf -t" does not show port

Posted: 24 Jul 2016, 23:06
by MihanIT
Hello,
"csf -t" does not show port:

Code: Select all

[root@server2:~] $ csf -c
csf is already at the latest version: v9.10

[root@server2:~] $ csf -td 1.2.3.4 -p 22 "Comment: TEST" 
DROP  tcp opt -- in !lo out *  1.2.3.4  -> 0.0.0.0/0   tcp dpt:22
csf: 1.2.3.4 blocked on port 22 for 3600 seconds inbound

[root@server2:~] $ csf -t

A/D   IP address                               Port   Dir   Time To Live     Comment
DENY  1.2.3.4                                         in    59m 56s          Comment: TEST
Of course the command successfully done in the firewall and csf.tempban, Just there is a problem in showing port.

Code: Select all

[root@server2:~] $ tail -n1 /var/lib/csf/csf.tempban
1469397425|1.2.3.4|22|in|3600|Comment: TEST

[root@server2:~] $ csf -l | grep 1.2.3.4
2        0     0 DROP       tcp  --  !lo    *       1.2.3.4              0.0.0.0/0            tcp dpt:22

Re: "csf -t" does not show port

Posted: 25 Jul 2016, 10:21
by ForumAdmin
Thank you for reporting this. We will have a fix in the next release of csf.