ansible/roles/nftables_router/templates/nftables.d/10-vars.conf.j2

82 lines
1.7 KiB
Text
Raw Normal View History

2021-03-10 03:16:51 +01:00
{{ ansible_managed | comment }}
## Interconnexion
# Réseaux d'interconnexion
2021-03-10 09:43:31 +01:00
define interco_v4 = {
{{ nftables_interco_v4 | join(",\n") | indent }}
}
define interco_v6 = {
{{ nftables_interco_v6 | join(",\n") | indent }}
}
2021-03-10 03:16:51 +01:00
## Administration
# Réseaux d'administration
2021-03-10 09:43:31 +01:00
define adm_v4 = {
{{ nftables_adm_v4 | join(",\n") | indent }}
}
define adm_v6 = {
{{ nftables_adm_v6 | join(",\n") | indent }}
}
2021-03-10 03:16:51 +01:00
# Serveurs de centralisation des journaux
define syslog_adm_v4 = { 10.128.0.51 }
define syslog_adm_v6 = { 2a09:6840:128::251 }
# Adresses des bastions autorisés
2021-03-10 09:43:31 +01:00
define bastions_v4 = {
{{ nftables_bastions_v4 | join(",\n") | indent }}
}
define bastions_v6 = {
{{ nftables_bastions_v6 | join(",\n") | indent }}
}
2021-03-10 03:16:51 +01:00
## Services
# Réseaux de services privés
2021-03-10 09:43:31 +01:00
define svc_v4 = {
{{ nftables_svc_v4 | join(",\n") | indent }}
}
define svc_v6 = {
{{ nftables_svc_v6 | join(",\n") | indent }}
}
2021-03-10 03:16:51 +01:00
## Adhérents
# Réseaux des adhérents
2021-03-10 09:43:31 +01:00
define members_v4 = {
{{ nftables_members_v4 | join(",\n") | indent }}
}
define members_v6 = {
{{ nftables_members_v6 | join(",\n") | indent }}
}
2021-03-10 03:16:51 +01:00
# Sous-réseau d'inscription des adhérents
2021-03-10 09:43:31 +01:00
define signup_v4 = {
{{ nftables_signup_v4 | join(",\n") | indent }}
}
define signup_v6 = {
{{ nftables_signup_v6 | join(",\n") | indent }}
}
2021-03-10 03:16:51 +01:00
# Hôtes déclencheurs d'accès à Internet pour inscription
2021-03-10 09:43:31 +01:00
define signup_triggers_v4 = {
{{ nftables_signup_triggers_v4 | join(",\n") | indent }}
}
define signup_triggers_v6 = {
{{ nftables_signup_triggers_v6 | join(",\n") | indent }}
}
2021-03-10 03:16:51 +01:00
## NAT
# Interface sur laquelle appliquer le NAT
define wan_iface = "ens18"
define members_nat_v4 = 92.222.211.198
2021-03-10 03:16:51 +01:00
define any_nat_v4 = 92.222.211.198