New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

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