rc.firewall (52873) | rc.firewall (54108) |
---|---|
1############ 2# Setup system for firewall service. | 1############ 2# Setup system for firewall service. |
3# $FreeBSD: head/etc/rc.firewall 52873 1999-11-04 10:13:59Z ru $ | 3# $FreeBSD: head/etc/rc.firewall 54108 1999-12-04 01:27:51Z obrien $ |
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 --- 85 unchanged lines hidden (view full) --- 97 98 99# Prototype setups. 100# 101case ${firewall_type} in 102[Oo][Pp][Ee][Nn]) 103 ${fwcmd} add 65000 pass all from any to any 104 ;; | 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 --- 85 unchanged lines hidden (view full) --- 97 98 99# Prototype setups. 100# 101case ${firewall_type} in 102[Oo][Pp][Ee][Nn]) 103 ${fwcmd} add 65000 pass all from any to any 104 ;; |
105[Cc][Ll][Ii][Ee][Nn][Tt]) | |
106 | 105 |
106[Cc][Ll][Ii][Ee][Nn][Tt]) |
|
107 ############ 108 # This is a prototype setup that will protect your system somewhat 109 # against people from outside your own network. 110 ############ 111 112 # set these to your network and netmask and ip 113 net="192.168.4.0" 114 mask="255.255.255.0" --- 27 unchanged lines hidden (view full) --- 142 ${fwcmd} add pass udp from ${ip} to any 123 143 144 # Everything else is denied by default, unless the 145 # IPFIREWALL_DEFAULT_TO_ACCEPT option is set in your kernel 146 # config file. 147 ;; 148 149[Ss][Ii][Mm][Pp][Ll][Ee]) | 107 ############ 108 # This is a prototype setup that will protect your system somewhat 109 # against people from outside your own network. 110 ############ 111 112 # set these to your network and netmask and ip 113 net="192.168.4.0" 114 mask="255.255.255.0" --- 27 unchanged lines hidden (view full) --- 142 ${fwcmd} add pass udp from ${ip} to any 123 143 144 # Everything else is denied by default, unless the 145 # IPFIREWALL_DEFAULT_TO_ACCEPT option is set in your kernel 146 # config file. 147 ;; 148 149[Ss][Ii][Mm][Pp][Ll][Ee]) |
150 | |
151 ############ 152 # This is a prototype setup for a simple firewall. Configure this 153 # machine as a named server and ntp server, and point all the machines 154 # on the inside at this machine for those services. 155 ############ 156 157 # set these to your outside interface network and netmask and ip 158 oif="ed0" --- 66 unchanged lines hidden --- | 150 ############ 151 # This is a prototype setup for a simple firewall. Configure this 152 # machine as a named server and ntp server, and point all the machines 153 # on the inside at this machine for those services. 154 ############ 155 156 # set these to your outside interface network and netmask and ip 157 oif="ed0" --- 66 unchanged lines hidden --- |