Skip to content
Snippets Groups Projects
Commit 383e8d67 authored by Paul's avatar Paul :turtle:
Browse files

allow to disable exit traffic for gateway

parent 2c00b3b0
No related branches found
No related tags found
No related merge requests found
Pipeline #4658 failed
......@@ -10,8 +10,10 @@ dhcpd_start: 10.130.32.1
dhcpd_end: 10.130.39.255
exit_iface: enp1s0
masked_services:
- radvd.service
# meshvpn
exit_traffic: no
# masked_services:
# - radvd.service
mesh_gwvpn_secret: !vault |
$ANSIBLE_VAULT;1.1;AES256
......
......@@ -54,6 +54,7 @@ mesh_vpn_instances:
# the out-interface for NAT
exit_iface: ens3
exit_traffic: yes
# ICVPN variables
icvpn_name: luebeck2
......
......@@ -12,6 +12,15 @@
line: INTERFACESv4="ffhl"
- name: restart dhcpd
when: exit_traffic == false
systemd:
enabled: no
state: stopped
name: isc-dhcp-server.service
- name: restart dhcpd
when: exit_traffic
systemd:
enabled: yes
state: restarted
name: isc-dhcp-server.service
......@@ -5,7 +5,16 @@
dest: /etc/radvd.conf
- name: restart radvd
when: exit_traffic
systemd:
state: restarted
enabled: yes
name: radvd
- name: restart radvd
when: exit_traffic == false
systemd:
state: stopped
enabled: no
name: radvd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment