"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
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