Change IPFW default to allow

Tim Daneliuk tundra at tundraware.com
Sun Dec 9 18:24:26 UTC 2018


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 at tundraware.com
PGP Key:         http://www.tundraware.com/PGP/



More information about the freebsd-questions mailing list