#author("2023-08-25T17:33:43+09:00","default:kuji","kuji") #author("2023-08-25T17:47:33+09:00","default:kuji","kuji") CONTENTS #contents ---- Lastmodified &lastmod; ---- *Debian 11 de FireWall [#l4cb8aec] 【参考URL】[[Debian 11 で UFW を使用してファイアウォールを設定する方法:https://ja.linux-console.net/?p=6575#gsc.tab=0]] sudo apt install ufw sudo ufw default deny incoming sudo ufw default allow outgoing ufw allow ssh ufw allow ****** 別のssh_portも開けておく。 ufw allow http ufw allow https ufw enable ufw status verbose Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip To Action From -- ------ ---- 22/tcp ALLOW IN Anywhere ****** ALLOW IN Anywhere 80/tcp ALLOW IN Anywhere 443 ALLOW IN Anywhere 22/tcp (v6) ALLOW IN Anywhere (v6) ****** (v6) ALLOW IN Anywhere (v6) 80/tcp (v6) ALLOW IN Anywhere (v6) 443 (v6) ALLOW IN Anywhere (v6) ufw allow from 210.255.122.208/28 ---- Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday); #counter([total|today|yesterday]);