Deleted Added
full compact
rc.firewall (73785) rc.firewall (73842)
1# Copyright (c) 1996 Poul-Henning Kamp
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions
6# are met:
7# 1. Redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23# SUCH DAMAGE.
24#
1# Copyright (c) 1996 Poul-Henning Kamp
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions
6# are met:
7# 1. Redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23# SUCH DAMAGE.
24#
25# $FreeBSD: head/etc/rc.firewall 73785 2001-03-05 20:51:40Z obrien $
25# $FreeBSD: head/etc/rc.firewall 73842 2001-03-06 02:15:38Z obrien $
26#
27
28#
29# Setup system for firewall service.
30#
31
32# Suck in the configuration variables.
33if [ -r /etc/defaults/rc.conf ]; then

--- 64 unchanged lines hidden (view full) ---

98############
99# Network Address Translation. All packets are passed to natd(8)
100# before they encounter your remaining rules. The firewall rules
101# will then be run again on each packet after translation by natd
102# starting at the rule number following the divert rule.
103#
104# For ``simple'' firewall type the divert rule should be put to a
105# different place to not interfere with address-checking rules.
26#
27
28#
29# Setup system for firewall service.
30#
31
32# Suck in the configuration variables.
33if [ -r /etc/defaults/rc.conf ]; then

--- 64 unchanged lines hidden (view full) ---

98############
99# Network Address Translation. All packets are passed to natd(8)
100# before they encounter your remaining rules. The firewall rules
101# will then be run again on each packet after translation by natd
102# starting at the rule number following the divert rule.
103#
104# For ``simple'' firewall type the divert rule should be put to a
105# different place to not interfere with address-checking rules.
106#
106#
107case ${firewall_type} in
108[Oo][Pp][Ee][Nn]|[Cc][Ll][Ii][Ee][Nn][Tt])
109 case ${natd_enable} in
110 [Yy][Ee][Ss])
111 if [ -n "${natd_interface}" ]; then
112 ${fwcmd} add 50 divert natd all from any to any via ${natd_interface}
113 fi
114 ;;

--- 177 unchanged lines hidden ---
107case ${firewall_type} in
108[Oo][Pp][Ee][Nn]|[Cc][Ll][Ii][Ee][Nn][Tt])
109 case ${natd_enable} in
110 [Yy][Ee][Ss])
111 if [ -n "${natd_interface}" ]; then
112 ${fwcmd} add 50 divert natd all from any to any via ${natd_interface}
113 fi
114 ;;

--- 177 unchanged lines hidden ---