Skip to content

Instantly share code, notes, and snippets.

@HostOnNet
Created November 22, 2017 18:21
Show Gist options
  • Save HostOnNet/d08a4dfe344978d49b97b5ca13c36d56 to your computer and use it in GitHub Desktop.
Save HostOnNet/d08a4dfe344978d49b97b5ca13c36d56 to your computer and use it in GitHub Desktop.
Current open ports (csf rules)
=============
TCP_IN = "1186,2202,4444,4568,9999,9200,9500,4567,44433,60016,40054,41690,587,10000,20,21,22,25,53,80,110,143,443,465,587,993,995"
# Allow outgoing TCP ports
TCP_OUT = "1186,2202,4444,4568,9999,9200,9500,4567,44433,60016,40054,41690,587,10000,20,21,22,25,53,80,110,143,443,465,587,993,995"
=============
We may only need following
=============
TCP_IN = "22,25,80,443"
TCP_OUT = "22,53,80,443"
=============
Also, we could change SSH portf rom 22 to non standard one like 4545
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment