wip: misc: setup infra-2

This commit is contained in:
jeltz 2023-09-16 01:52:35 +02:00
parent 078d9a3de9
commit fa87d9789d
Signed by: jeltz
GPG key ID: 800882B66C0C3326
6 changed files with 10 additions and 9 deletions

View file

@ -2,6 +2,7 @@
--- ---
- hosts: - hosts:
- infra-1.back.infra.auro.re - infra-1.back.infra.auro.re
- infra-2.back.infra.auro.re
vars: vars:
firewall__zones: firewall__zones:
adm-legacy: adm-legacy:

View file

@ -181,6 +181,7 @@
back0: back0:
addresses: addresses:
- 2a09:6840:203::1:4/64 - 2a09:6840:203::1:4/64
- 45.66.111.211/32
- 10.203.1.4/16 - 10.203.1.4/16
ups0: ups0:
ipv6_addrgen: false ipv6_addrgen: false

View file

@ -376,8 +376,8 @@
- 2a09:6840:203::1:3 - 2a09:6840:203::1:3
- 10.203.1.3 - 10.203.1.3
infra-2.back: infra-2.back:
- 10.128.10.104 - 2a09:6840:203::1:4
- 2a09:6840:128::10:104 - 10.203.1.4
isp-1.back: isp-1.back:
- 10.128.10.5 - 10.128.10.5
- 2a09:6840:128::10:5 - 2a09:6840:128::10:5

View file

@ -79,14 +79,10 @@
monit0: 04:00:00:72:0b:2d monit0: 04:00:00:72:0b:2d
wifi0: 04:00:00:ee:42:0f wifi0: 04:00:00:ee:42:0f
int0: 04:00:00:21:fd:d0 int0: 04:00:00:21:fd:d0
pub0:
enabled: false
sw0: 04:00:00:2e:5b:16 sw0: 04:00:00:2e:5b:16
bmc0: 04:00:00:bb:5a:a6 bmc0: 04:00:00:bb:5a:a6
pve0: 04:00:00:0b:2b:82 pve0: 04:00:00:0b:2b:82
isp0: 04:00:00:f4:4c:5d isp0: 04:00:00:f4:4c:5d
mgmt0:
enabled: false
ext0: 04:00:00:1d:0e:83 ext0: 04:00:00:1d:0e:83
vpn0: 04:00:00:02:ba:dd vpn0: 04:00:00:02:ba:dd
isp-1.back.infra.auro.re: isp-1.back.infra.auro.re:

View file

@ -4,6 +4,7 @@
name: name:
- python3-nftables - python3-nftables
- python3-pydantic - python3-pydantic
- python3-yaml
- nftables - nftables
- name: Install script - name: Install script
@ -57,11 +58,10 @@
notify: notify:
- Reload firewall - Reload firewall
- name: Disable nftables service - name: Mask nftables service
systemd: systemd:
name: nftables.service name: nftables.service
state: stopped masked: true
enabled: false
- name: Enable firewall service - name: Enable firewall service
systemd: systemd:

View file

@ -16,3 +16,6 @@ ProtectHome=true
ExecStart=/usr/local/sbin/firewall /etc/firewall/rules.yml ExecStart=/usr/local/sbin/firewall /etc/firewall/rules.yml
ExecReload=/usr/local/sbin/firewall /etc/firewall/rules.yml ExecReload=/usr/local/sbin/firewall /etc/firewall/rules.yml
ExecStop=/usr/sbin/nft flush ruleset ExecStop=/usr/sbin/nft flush ruleset
[Install]
WantedBy=sysinit.target