Re: IPFW compiled in kernel: Where is it reading the config?

看板FB_security作者時間18年前 (2007/12/14 02:41), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/4 (看更多)
At 05:00 12/13/2007, Gary Palmer wrote: >=20 >> The config file locaton that I specify in rc.conf doesn't=20 >> appear to be being used: >>=20 >> firewall_script=3D"/usr/local/etc/ipfw.rules" > >You require > >firewall_enable=3D"YES" > >in /etc/rc.conf for the rules to be looked at > >Also, firewall_script may be the wrong configuration parameter to use. =20 >firewall_script is expected to be a shell script to configure the=20 >firewall. If you just want a file of rules, set firewall_type instead. >e.g. > >firewall_type=3D"/etc/rc.firewall.rules" >firewall_enable=3D"YES" > >and then put your rules one line at a time into the specified file. i.e. > >add allow ip from any to any via lo0 >(etc) > >ipfw is a kernel module. It will not show up in "ps aux". If >"ipfw list" does not come back with an error message, then it >is likely running. You can check for the ipfw module using > >kldstat > >(assuming you did not compile ipfw into a custom kernel) > >To check the syntax of a list of rules (note: not a shell script) then >you can use > >ipfw -n /path/to/rules/file > >>From the man page > > -n Only check syntax of the command strings, without actually= pass- > ing them to the kernel. > >Regards, > >Gary Thanks, Gary! This is much of what I was looking for. Start Here to Find It Fast!=99 ->= http://www.US-Webmasters.com/best-start-page/ $8.77 Domain Names -> http://domains.us-webmasters.com/ _______________________________________________ freebsd-security@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-security To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
文章代碼(AID): #17ONp300 (FB_security)
文章代碼(AID): #17ONp300 (FB_security)