标签:color 执行 配置文件 指定 freebsd 动态 脚本 keyword firewall
内核支持
options IPFIREWALL # enables IPFW options IPFIREWALL_VERBOSE # enables logging for rules with log keyword options IPFIREWALL_VERBOSE_LIMIT=5 # limits number of logged packets per-entry options IPFIREWALL_DEFAULT_TO_ACCEPT # sets default policy to pass what is not explicitly denied options IPDIVERT # enables NAT
# /boot/loader.conf ipfw_load="YES" ipfw_nat_load="YES"
配置文件
# /etc/rc.conf[.local]
firewall_enable="YES" firewall_logging="YES"
# 如下两条二选一 firewall_type="/PATH/TO/RULE_FILE" #指定包含自定义配置规则的文件 firewall_script="/PATH/IPFW_SCRIPT" #指定具有执行权限的 ipfw rule 脚本
IPFW 語法
...
FreeBSD_11-系统管理——{Part_8-IPFW}
标签:color 执行 配置文件 指定 freebsd 动态 脚本 keyword firewall
原文地址:http://www.cnblogs.com/hadex/p/6068493.html