block all connections by default to 21 port

Started by bybrunos2, January 09, 2021, 05:36:37 PM

Previous topic - Next topic

bybrunos2

Hello, how can i
block all connections by default to 21 port exept the IP list that i add manually?
thanks
Bruno

evansa

use the following:
csf -td 0.0.0.0/0  -p 21
You can then add manually the IPs you want to allow in /etc/csf/csf.allow