blob: c8045fd3e2aa9c1169123e608d31453b2b70401d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{% for jail in jails -%}
{% if jail.name == 'ingress' -%}
# Interfaces & nets
lan = "epl{{ jail.num }}b"
wan = "epw{{ jail.num }}b"
lan_net = "{{ lan_ipv4_cidr }}"
# Keep PF out of loopback, drop by default if you add blocks later
set skip on lo0
set block-policy drop
# NAT: translate LAN traffic to the WAN interface address, and log it
nat log on $wan from $lan_net to any -> ($wan)
# Allow and log the LAN traffic so NAT can happen
pass in on $lan inet from $lan_net to any keep state
pass out on $wan inet from $lan_net to any keep state
{% endif %}
{% endfor %}
|