Date: Sun, 9 Dec 2018 12:15:38 -0600 From: Tim Daneliuk <tundra@tundraware.com> To: Ernie Luzar <luzar722@gmail.com>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Change IPFW default to allow Message-ID: <23e93420-7a70-634a-982f-6f9fe2d23da6@tundraware.com> In-Reply-To: <5C0D594C.2060407@gmail.com> References: <5C0D594C.2060407@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 12/9/18 12:05 PM, Ernie Luzar wrote:
> Is there a sysctl nib to reset the ipfw default from deny all to allow all? Some thing that works without rebooting the system.
You can just run these commands:
export FWCMD="ipfw -q"
${FWCMD} -f flush
${FWCMD} add 100 pass all from any to any via lo0
${FWCMD} add 200 deny all from any to 127.0.0.0/8
${FWCMD} add 300 deny ip from 127.0.0.0/8 to any
${FWCMD} add 65000 pass all from any to any
--
----------------------------------------------------------------------------
Tim Daneliuk tundra@tundraware.com
PGP Key: http://www.tundraware.com/PGP/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23e93420-7a70-634a-982f-6f9fe2d23da6>
