Deleted Added
full compact
rc.firewall (35207) rc.firewall (35267)
1############
2# Setup system for firewall service.
1############
2# Setup system for firewall service.
3# $Id: rc.firewall,v 1.16 1998/02/10 01:45:47 adam Exp $
3# $Id: rc.firewall,v 1.17 1998/04/15 16:41:14 phk Exp $
4
5if [ -f /etc/rc.conf ]; then
6 . /etc/rc.conf
7fi
8
9############
10# Define the firewall type in /etc/rc.conf. Valid values are:
11# open - will allow anyone in

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

53 fwcmd="/sbin/ipfw"
54fi
55
56############
57# Flush out the list before we begin.
58$fwcmd -f flush
59
60############
4
5if [ -f /etc/rc.conf ]; then
6 . /etc/rc.conf
7fi
8
9############
10# Define the firewall type in /etc/rc.conf. Valid values are:
11# open - will allow anyone in

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

53 fwcmd="/sbin/ipfw"
54fi
55
56############
57# Flush out the list before we begin.
58$fwcmd -f flush
59
60############
61# These rules are required for using natd. All packets are passed to
62# natd before they encounter your remaining rules. The firewall rules
63# will then be run again on each packet after translation by natd,
64# minus any divert rules (see natd(8)).
65if [ "X${natd_enable}" = X"YES" -a "X${natd_interface}" != X"" ]; then
66 $fwcmd add divert natd all from any to any via ${natd_interface}
67fi
68
69############
61# If you just configured ipfw in the kernel as a tool to solve network
62# problems or you just want to disallow some particular kinds of traffic
63# they you will want to change the default policy to open. You can also
64# do this as your only action by setting the firewall_type to ``open''.
65
66# $fwcmd add 65000 pass all from any to any
67
68############

--- 111 unchanged lines hidden ---
70# If you just configured ipfw in the kernel as a tool to solve network
71# problems or you just want to disallow some particular kinds of traffic
72# they you will want to change the default policy to open. You can also
73# do this as your only action by setting the firewall_type to ``open''.
74
75# $fwcmd add 65000 pass all from any to any
76
77############

--- 111 unchanged lines hidden ---