PF

1 program Added 2026-03-13T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Packet Filter, pf.conf
Provenance: commit af5f90f62c · authored 2026-03-13T03:20:17+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

BPF (0.30)eBPF (0.30)PacketC (0.23)Filterscript (0.12)Typed Racket (0.11)

LLM-contributed programs

Web Server Firewall Ruleset

Provenance: commit af5f90f62c · authored 2026-03-13T03:20:17+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.conf · license: Public Domain · added: 2026-03-13T10:00:00Z
# Simple PF firewall ruleset for a web server
# Default deny policy
block all

# Allow loopback interface
set skip on lo0

# Scrub incoming packets
match in all scrub (no-df random-id)

# Allow established connections out
pass out keep state

# Allow incoming SSH (rate limited)
pass in on egress proto tcp from any to any port 22 keep state (max-src-conn 15, max-src-conn-rate 5/3, overload <bruteforce> flush global)

# Allow incoming HTTP and HTTPS
pass in on egress proto tcp from any to any port { 80, 443 } keep state

# Allow ICMP ping requests
pass in inet proto icmp all icmp-type echoreq keep state

# Block brute-force attackers
block drop in quick from <bruteforce>

Contribute — propose a file extension

Tell us where to find evidence about PF (mapped to pl/pf). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/PF/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Pește mort+ PFE →