UFW

出自Gea-Suan Lin's Wiki
於 2021年2月26日 (五) 05:33 由 Gslin留言 | 貢獻 所做的修訂 →‎首段
跳至導覽 跳至搜尋
本頁面具有訪問限制。如果您看見此訊息,這代表您沒有訪問本頁面的權限。

UFW是一套在Linux上常見的防火牆管理軟體,底層通常是iptables

設定

可以修改/etc/rsyslog.d/20-ufw.conf內的設定,關閉阻擋的log寫到dmesg裡面:

# Log kernel generated UFW log messages to file
:msg,contains,"[UFW " /var/log/ufw.log

# Uncomment the following to stop logging anything that matches the last rule.
# Doing this will stop logging kernel generated UFW log messages to the file
# normally containing kern.* messages (eg, /var/log/kern.log)
& stop

範例

建議先設定:

sudo ufw allow 80/tcp
sudo ufw allow 443/tcp

然後再啟用:

sudo ufw enable

相關連結

外部連結