- Timestamp:
- Aug 13, 2010, 3:23:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2.0/nanobsd/nanobsd/files/etc/ipfw.sh
r8334 r8335 4 4 # Suck in the configuration variables. 5 5 if [ -z "${source_rc_confs_defined}" ]; then 6 7 8 9 10 11 6 if [ -r /etc/defaults/rc.conf ]; then 7 . /etc/defaults/rc.conf 8 source_rc_confs 9 elif [ -r /etc/rc.conf ]; then 10 . /etc/rc.conf 11 fi 12 12 fi 13 13 14 14 setup_loopback () { 15 16 17 18 19 20 15 ############ 16 # Only in rare cases do you want to change these rules 17 # 18 ${fwcmd} add 100 pass all from any to any via lo0 19 ${fwcmd} add 200 deny all from any to 127.0.0.0/8 20 ${fwcmd} add 300 deny ip from 127.0.0.0/8 to any 21 21 } 22 22 … … 26 26 case ${firewall_quiet} in 27 27 [Yy][Ee][Ss]) 28 29 28 fwcmd="/sbin/ipfw -q" 29 ;; 30 30 *) 31 32 31 fwcmd="/sbin/ipfw" 32 ;; 33 33 esac 34 34 … … 92 92 ${fwcmd} add 6002 allow udp from any to me 123 via $internalif 93 93 94 # Block anything else 95 ${fwcmd} add 65000 deny ip from any to any 94 96
Note:
See TracChangeset
for help on using the changeset viewer.