PF防火墙设置端口映射,
比如我要将 192.168.172.63 机器 映射到 9009 端口
修改 /etc/pf.conf 文件
插入:
rdr pass on $ext_if proto tcp from any to any port 9009 -> "192.168.172.63" port 9009
保存退出
使用
# pfctl -N -f /etc/pf.conf
PF防火墙设置端口映射,
比如我要将 192.168.172.63 机器 映射到 9009 端口
修改 /etc/pf.conf 文件
插入:
rdr pass on $ext_if proto tcp from any to any port 9009 -> "192.168.172.63" port 9009
保存退出
使用
# pfctl -N -f /etc/pf.conf