vault backup: 2025-05-30 18:17:43
This commit is contained in:
@@ -22,13 +22,12 @@ npm install -g typescript
|
|||||||
|
|
||||||
#firewall install & enable
|
#firewall install & enable
|
||||||
apt install ufw -y
|
apt install ufw -y
|
||||||
ufw reset
|
#ufw reset -y
|
||||||
ufw default allow incoming
|
ufw default allow incoming
|
||||||
ufw default allow outgoing
|
ufw default allow outgoing
|
||||||
ufw deny proto tcp from any to eth0
|
ufw deny in on eth0
|
||||||
ufw allow proto tcp from any to eth0 port 22
|
ufw allow in on eth0 proto tcp to any port 22
|
||||||
ufw allow from 10.16.0.0/16
|
ufw allow from 10.16.0.0/16
|
||||||
|
|
||||||
ufw limit 22/tcp comment "Rate limit SSH"
|
ufw limit 22/tcp comment "Rate limit SSH"
|
||||||
|
|
||||||
ufw enable
|
ufw enable
|
||||||
|
|||||||
Reference in New Issue
Block a user