Network firewall
NAT and PBR
SNAT, DNAT, masquerade, and policy-based routing.
Goal
Translate addresses with NAT and steer selected flows with policy-based routing (PBR).
Prerequisites
- Working L3 addressing from Addresses and routing.
network.write.
NAT
- Open Network → NAT / PBR.
- Create a NAT rule (type such as SNAT, DNAT, 1:1, or MASQUERADE—per form options).
- Set match criteria and translation targets.
- Publish and test with a known client flow.
PBR
- In the same section, create a PBR rule (match + target table / next hop as exposed in the UI).
- Keep PBR tables consistent with static routes that use non-default table ids.
- Publish after NAT when both change in one maintenance window—or publish separately for safer rollback.
Tips
- Masquerade outbound WAN traffic before opening broad inbound DNAT.
- Document which firewall rules must allow post-NAT traffic.
- Roll back the network snapshot if a DNAT change breaks a production service.
Verify
- NAT/PBR rows list under NAT / PBR.
- Expected source/destination addresses appear in session or packet captures on Linux appliances.