Deleted Added
full compact
rc.firewall (64244) rc.firewall (65257)
1############
2# Setup system for firewall service.
1############
2# Setup system for firewall service.
3# $FreeBSD: head/etc/rc.firewall 64244 2000-08-04 14:02:11Z ru $
3# $FreeBSD: head/etc/rc.firewall 65257 2000-08-30 13:14:32Z ru $
4
5# Suck in the configuration variables.
6if [ -r /etc/defaults/rc.conf ]; then
7 . /etc/defaults/rc.conf
8 source_rc_confs
9elif [ -r /etc/rc.conf ]; then
10 . /etc/rc.conf
11fi

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

71# before they encounter your remaining rules. The firewall rules
72# will then be run again on each packet after translation by natd
73# starting at the rule number following the divert rule.
74#
75# For ``simple'' firewall type the divert rule should be put to a
76# different place to not interfere with address-checking rules.
77#
78case ${firewall_type} in
4
5# Suck in the configuration variables.
6if [ -r /etc/defaults/rc.conf ]; then
7 . /etc/defaults/rc.conf
8 source_rc_confs
9elif [ -r /etc/rc.conf ]; then
10 . /etc/rc.conf
11fi

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

71# before they encounter your remaining rules. The firewall rules
72# will then be run again on each packet after translation by natd
73# starting at the rule number following the divert rule.
74#
75# For ``simple'' firewall type the divert rule should be put to a
76# different place to not interfere with address-checking rules.
77#
78case ${firewall_type} in
79[Ss][Ii][Mm][Pp][Ll][Ee])
80 ;;
81*)
79[Oo][Pp][Ee][Nn]|[Cc][Ll][Ii][Ee][Nn][Tt])
82 case ${natd_enable} in
83 [Yy][Ee][Ss])
84 if [ -n "${natd_interface}" ]; then
85 ${fwcmd} add 50 divert natd all from any to any via ${natd_interface}
86 fi
87 ;;
88 esac
89esac

--- 178 unchanged lines hidden ---
80 case ${natd_enable} in
81 [Yy][Ee][Ss])
82 if [ -n "${natd_interface}" ]; then
83 ${fwcmd} add 50 divert natd all from any to any via ${natd_interface}
84 fi
85 ;;
86 esac
87esac

--- 178 unchanged lines hidden ---