"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
Junior Member
Posts: 3
Joined: 26 May 2016, 12:31

"csf -t" does not show port

Post by MihanIT »

"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 -p 22 "Comment: TEST" 
DROP  tcp opt -- in !lo out *  ->   tcp dpt:22
csf: blocked on port 22 for 3600 seconds inbound

[root@server2:~] $ csf -t

A/D   IP address                               Port   Dir   Time To Live     Comment
DENY                                         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||22|in|3600|Comment: TEST

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

Posts: 1457
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