📖 ~1 min read
Table of contents
Symptom & Impact
Services inside jail cannot fetch packages or reach APIs.
Environment & Reproduction
VNET jail starts normally but pings fail beyond gateway.
Root Cause Analysis
Bridge misconfiguration, missing NAT rules, or blocked forwarding in pf/ipfw.
Quick Triage
Check jail and host interfaces.
jls -v
ifconfig -a
service pf status
Step-by-Step Diagnosis
Inspect jail route table and host forwarding state.
jexec 1 netstat -rn
sysctl net.inet.ip.forwarding
pfctl -sn

Solution – Primary Fix
Enable forwarding, correct bridge config, and reload firewall NAT.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sysrc gateway_enable='YES'
sysrc cloned_interfaces+=' bridge0'
service netif restart && service pf reload

Solution – Alternative Approaches
Use non-VNET jails with shared host stack for simpler setups with fewer moving parts.
Verification & Acceptance Criteria
`jexec` ping and DNS tests pass; package installs succeed from inside jail.
Rollback Plan
Restore previous jail and pf configs from backup and restart networking.
Prevention & Hardening
Template jail networking, validate after every host firewall change, and monitor bridge health.
Related Errors & Cross-Refs
`Network is unreachable`, DNS timeout inside jail, no egress in packet captures.
Related tutorial: View the step-by-step tutorial for freebsd-12.
View all freebsd-12 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
`jail(8)`, FreeBSD jail handbook, `pf.conf(5)` NAT examples.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.