firewall/example.yaml

67 lines
1 KiB
YAML
Raw Normal View History

2023-04-16 23:11:54 +02:00
---
zones:
- name: users-internet-allowed
include:
- rules.yaml
- name: mgmt
include:
- 10.203.0.0/16
- name: adm
include:
- 2a09:6840::/29
- 10.128.0.0/16
- name: internet
exclude:
- adm
- mgmt
blacklist:
enabled: true
addr:
- 0.0.0.0
reverse_path_filter:
enabled: true
filter:
input:
- iif: lo
verdict: accept
- src: mgmt
protocols:
tcp:
2023-06-16 23:26:07 +02:00
dport: [22, 240..242]
2023-04-16 23:11:54 +02:00
verdict: accept
- src: backbone
protocols:
ospf: true
vrrp: true
tcp:
2023-06-16 23:26:07 +02:00
dport: [179]
2023-04-16 23:11:54 +02:00
verdict: accept
- protocols:
icmp: true
verdict: accept
output:
- verdict: accept
forward:
- src: interco-crans
verdict: accept
- src: users-internet-allowed
protocols:
tcp:
2023-06-16 23:26:07 +02:00
dport: [25]
2023-04-16 23:11:54 +02:00
verdict: drop
- src: users-internet-allowed
dest:
- internet
- 10.0.0.1
verdict: accept
nat:
- src: mgmt
snat:
addr: 45.66.108.14
persistent: true
...