Skip to content

Instantly share code, notes, and snippets.

@shmidt
Last active September 30, 2020 07:41
Show Gist options
  • Select an option

  • Save shmidt/6f410324ae177f57491e407a4e145c27 to your computer and use it in GitHub Desktop.

Select an option

Save shmidt/6f410324ae177f57491e407a4e145c27 to your computer and use it in GitHub Desktop.

Revisions

  1. shmidt revised this gist Sep 30, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion secure_pi.sh
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,5 @@ sudo apt install ufw
    sudo ufw allow ssh
    sudo ufw limit ssh/tcp
    sudo ufw enable
    sudo apt install fail2ban
    sudo apt install fail2ban
    sudo service fail2ban restart
  2. shmidt revised this gist Sep 30, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions secure_pi.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # https://www.raspberrypi.org/documentation/configuration/security.md
    sudo apt install ufw
    sudo ufw allow ssh
    sudo ufw limit ssh/tcp
  3. shmidt created this gist Sep 30, 2020.
    5 changes: 5 additions & 0 deletions secure_pi.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    sudo apt install ufw
    sudo ufw allow ssh
    sudo ufw limit ssh/tcp
    sudo ufw enable
    sudo apt install fail2ban