IPF="ipfw -q add"
ipfw -q -f flush
$IPF 500 allow all from any to any
$IPF 1 allow all from 109.236.84.29 to any
$IPF 2 allow all from 46.28.203.193 to any
$IPF 3 denay all from all to any
$IPF 10 allow all from any to any via lo0
$IPF 50 check-state
$IPF 60 allow tcp from any to any established
$IPF 70 allow all from any to any out keep-state
$IPF 80 allow icmp from any to any
$IPF 90 add deny all from 1.541.605.760 to any
$IPF 100 add deny all from 330.321.408 to any
$IPF 110 add deny all from 112.239.104 to any
$IPF 120 add deny all from 1.024 to any
##################################################
That's why man pages exist; ipfw(8).luzzo said:I just want to be sure that is the right configuration and syntax.
I suggest you lookup how an IP address should look like. None of these are valid.Code:$IPF 90 add deny all from 1.541.605.760 to any $IPF 100 add deny all from 330.321.408 to any $IPF 110 add deny all from 112.239.104 to any $IPF 120 add deny all from 1.024 to any
IPF="ipfw -q add"
ipfw -q -f flush
$IPF 1 allow all from 109.236.84.29 to any
$IPF 2 allow all from 46.28.203.193 to any
$IPF 3 allow all from 127.0.0.1 to any
$IPF 4 allow all from any to any 22
$IPF 5 allow all from any to any 12000 out
$IPF 6 allow all from any to any 14001 out
$IPF 7 deny all from any to any
$IPF 500 allow all from any to any
$IPF 10 allow all from any to any via lo0
$IPF 50 check-state
$IPF 60 allow tcp from any to any established
$IPF 70 allow all from any to any out keep-state
$IPF 80 allow icmp from any to any
##################################################
IPF="ipfw -q add"
ipfw -q -f flush
$IPF 1 deny all from { 112.239.104 or not 109.236.84.29 or not 46.28.203.193
or not 127.0.0.1 or not 82.59.189.23 } to any
$IPF 10 allow all from any to any via lo0
$IPF 50 check-state
$IPF 60 allow tcp from any to any established
$IPF 70 allow all from any to any out keep-state
$IPF 80 allow icmp from any to any
$IPF 81 deny all from all to any
##################################################