FBSD firewall

出自 NCUCCWiki
前往: 導覽搜尋

防火牆參考設定檔 /etc/pf.conf:


# 網卡代號<br> ext_if="em0" table <mysql_list> { 140.115.17.51, 140.115.17.31, 140.115.17.215 } table <ssh_list> { 140.115.189.100, 140.115.17.163 } table <block_list> { 211.180.219.200 } set block-policy return scrub in all # Filtering: the implicit first two rules are pass out all pass in all ※ 改完之後,必須重跑 #pfctl –f /etc/pf.conf