feat(ansible): add VPN node configuration automation

This commit is contained in:
2026-06-10 12:36:27 +02:00
parent 89efd6430d
commit 5e6d4c1479
32 changed files with 526 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
---
# defaults file for roles/networking
radius_auth_nodeport: 30131
radius_acct_nodeport: 31622
+27
View File
@@ -0,0 +1,27 @@
---
- name: Install iptables persistence
apt:
name:
- iptables-persistent
state: present
- name: DNAT RADIUS auth traffic
iptables:
table: nat
chain: OUTPUT
protocol: udp
destination_port: "1812"
jump: DNAT
to_destination: ":{{ radius_auth_nodeport }}"
- name: DNAT RADIUS accounting traffic
iptables:
table: nat
chain: OUTPUT
protocol: udp
destination_port: "1813"
jump: DNAT
to_destination: ":{{ radius_acct_nodeport }}"
- name: Save iptables rules
command: netfilter-persistent save