27 lines
558 B
YAML
27 lines
558 B
YAML
---
|
|
- 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 |