# PFLINUX offline parse test 1 — macros, tables, anchors, filter rules. # Only lo is referenced so the config parses on any Linux host. xif = "lo" int_net = "127.0.0.0/8" table persist table const { 10.0.0.0/8, 127.0.0.1 } table const { $int_net } set skip on lo set block-policy return set loginterface $xif set ruleset-optimization basic set state-policy if-bound set timeout { tcp.established 3600, tcp.closed 90 } set limit states 100000 set limit src-nodes 3000 anchor "in/*" anchor "testsub" { block drop in quick on $xif from to any label "blocked-in" pass in quick on $xif proto tcp from any to any port 22 keep state } load anchor "in/loaded" from "tests/anchor_loaded.conf" pass in quick on $xif inet proto tcp from any to any port { 80 443 8080 } \ tag WEB keep state (max 1000) pass in quick on $xif inet6 proto tcp from fe80::/10 to any port 443 pass out quick on $xif proto udp from any to any port 53 block drop in log quick on $xif from to any