"csf -t" does not show port

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
MihanIT
Junior Member
Posts: 3
Joined: 26 May 2016, 12:31

"csf -t" does not show port

Post 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
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: "csf -t" does not show port

Post by ForumAdmin »

Thank you for reporting this. We will have a fix in the next release of csf.
Post Reply