你好我是新的你freebsd
我像这样配置了我的 /etc/rc.conf:
sshd_enable="YES"
firewall_enable="YES"
firewall_quiet="YES"
firewall_type="workstation"
firewall_myservices="4711 80"
firewall_allowservices="any"
firewall_logdeny="YES"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
我现在想要一个附加的 ipfw 规则,将端口 80 上的连接转发到端口 8080
在我的 Mac 服务器上,我这样做:
ipfw flush
ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in
ipfw add 100 fwd 127.0.0.1,8443 tcp from any to any 443 in
如何在 freebsd 上配置 ipfw,以便在启动时处理这些规则。如您所见,我加载了与一组默认规则结盟的 firewall_type="workstation"。如何将我的规则永久添加到此子集中?
有任何想法吗?亲切的问候马丁