Code Monkey home page Code Monkey logo

fail2ban-1-click's Introduction

(Debian, Ubuntu) Fail2ban-1-click

Fail2ban - the open-source security solution for youre server

Bash script installs Fail2ban and settings file, and installs nftables to block IP addresses

image

๐Ÿ’  Ensure that the sudo and wget packages are installed on your system:

apt install -y sudo wget

๐Ÿ’  Root Access is Required. If the user is not root, first run:

sudo -i

๐Ÿ’  Then:

wget "https://raw.githubusercontent.com/Onair-santa/Fail2ban-1-click/main/fail2ban.sh" -O fail2ban.sh && chmod +x fail2ban.sh && bash fail2ban.sh

It performs the following tasks:

  • Remove firewalld, ufw or iptables
  • Install nftables
  • Open ports 22, 443, 80
  • Install Fail2ban
  • install config jail.local
  • Starting fail2ban

Config Fail2ban:

  • jail enabled: sshd(port 22), recidive(allport)

  • Status command:

    fail2ban-client status
    fail2ban-client status sshd
    fail2ban-client status recidive
    

๐Ÿ’  Thanks

https://github.com/fail2ban/fail2ban

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.