Pfsense Nat Rule Creation

Create NAT port forward rules on pfSense programmatically via PHP/SSH. Use when: (1) adding port forwards for new K8s services, (2) NAT rules added via PHP don't appear in pfctl output, (3) config_read_array() throws "undefined function" error, (4) destination "wanip" not working in NAT rules, (5) rules saved to config.xml but not loaded into pfctl. Covers the correct PHP array structure, config API differences between pfSense versions, and the required pfctl reload step.

majiayu000 1e7cf6b 2 files · 5.0 KB Updated 567 repo stars

File contents

majiayu000/claude-skill-registry-data/tree/main/devops/pfsense-nat-rule-creation commit 1e7cf6bb27

Frequently asked questions

npx skillmds add majiayu000/pfsense-nat-rule-creation