Jump to content
Aerosol

CSF firewall tutorial

Recommended Posts

Posted

1 SSH into your server with the root user

2 If you are in a directory already, use cd to go back to your home directory. In the root users case, it'll be /root

3 Use the command wget http://configserver.com/free/csf.tgz

4 Type tar -zxvf csf.tgz

5 Type cd csf

6 Type ./install.sh

You now have CSF installed.

It would take me far too long to go through all of its features. It's basically a front end to iptables. Pretty straight forward to edit

Notable features would probably be

-Blocking incoming ping

-Blocking countries

-Sending emails when someone who is not in the ignore list logs into ssh (Ignore list is /etc/csf/csf.ignore)

There are tons of features

For maximum security, only allow incoming/outgoing ports that you need.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...