Add defualt pass rule on lan interface and remove it from config.

It is a default policy so lets keep it with defaults and let the user override it when pleases.
This commit is contained in:
Ermal Luçi 2008-02-01 21:58:21 +00:00
parent 448f4e1128
commit 23ffac28fa

View File

@ -2328,6 +2328,11 @@ function filter_rules_generate() {
block in $log all label "Default deny rule"
block out $log all label "Default deny rule"
#--------------------------------------------------------------------------
# default LAN pass rule
#--------------------------------------------------------------------------
pass in on \$lan from $lan:network to any keep state
# We use the mighty pf, we cannot be fooled.
block quick proto { tcp, udp } from any port = 0 to any
block quick proto { tcp, udp } from any to any port = 0