rc.firewall (51231) | rc.firewall (51805) |
---|---|
1############ 2# Setup system for firewall service. | 1############ 2# Setup system for firewall service. |
3# $FreeBSD: head/etc/rc.firewall 51231 1999-09-13 15:44:20Z sheldonh $ | 3# $FreeBSD: head/etc/rc.firewall 51805 1999-09-30 04:55:23Z mpp $ |
4 5# Suck in the configuration variables. 6if [ -r /etc/defaults/rc.conf ]; then 7 . /etc/defaults/rc.conf 8elif [ -r /etc/rc.conf ]; then 9 . /etc/rc.conf 10fi 11 --- 65 unchanged lines hidden (view full) --- 77 ${fwcmd} add divert natd all from any to any via ${natd_interface} 78 fi 79 ;; 80esac 81 82############ 83# If you just configured ipfw in the kernel as a tool to solve network 84# problems or you just want to disallow some particular kinds of traffic | 4 5# Suck in the configuration variables. 6if [ -r /etc/defaults/rc.conf ]; then 7 . /etc/defaults/rc.conf 8elif [ -r /etc/rc.conf ]; then 9 . /etc/rc.conf 10fi 11 --- 65 unchanged lines hidden (view full) --- 77 ${fwcmd} add divert natd all from any to any via ${natd_interface} 78 fi 79 ;; 80esac 81 82############ 83# If you just configured ipfw in the kernel as a tool to solve network 84# problems or you just want to disallow some particular kinds of traffic |
85# they you will want to change the default policy to open. You can also | 85# then you will want to change the default policy to open. You can also |
86# do this as your only action by setting the firewall_type to ``open''. 87# 88# ${fwcmd} add 65000 pass all from any to any 89 90############ 91# Only in rare cases do you want to change these rules 92# 93${fwcmd} add 100 pass all from any to any via lo0 --- 121 unchanged lines hidden --- | 86# do this as your only action by setting the firewall_type to ``open''. 87# 88# ${fwcmd} add 65000 pass all from any to any 89 90############ 91# Only in rare cases do you want to change these rules 92# 93${fwcmd} add 100 pass all from any to any via lo0 --- 121 unchanged lines hidden --- |