mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
configure ufw
This commit is contained in:
commit
b6ba72e8a9
1 changed files with 14 additions and 0 deletions
|
@ -91,6 +91,20 @@ echo "*** HARDENING ***"
|
|||
|
||||
# firewall - just install (not configure)
|
||||
sudo apt-get install -y ufw
|
||||
echo "allow: ssh"
|
||||
ufw allow ssh
|
||||
echo "allow: bitcoin testnet"
|
||||
ufw allow 18333
|
||||
echo "allow: bitcoin mainnet"
|
||||
ufw allow 8333
|
||||
echo "allow: lightning"
|
||||
ufw allow 9735
|
||||
echo "deny incoming connection on other ports"
|
||||
ufw default deny incoming
|
||||
echo "allow outgoing connections"
|
||||
ufw default allow outgoing
|
||||
echo "enable lazy firewall"
|
||||
ufw enable
|
||||
|
||||
# fail2ban (no config required)
|
||||
sudo apt-get install -y fail2ban
|
||||
|
|
Loading…
Add table
Reference in a new issue