From 9002b5f089bf12108ee3670ddd17acb9e26bb16f Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sun, 4 Jul 2021 16:35:54 +0200 Subject: [PATCH] NAT on ens1 (Zayo), not ens18 (routage) Signed-off-by: Yohann D'ANELLO --- roles/router/templates/firewall_config_aurore.py | 2 +- roles/router/templates/interfaces-aurore | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/roles/router/templates/firewall_config_aurore.py b/roles/router/templates/firewall_config_aurore.py index 0309591..46c4a86 100644 --- a/roles/router/templates/firewall_config_aurore.py +++ b/roles/router/templates/firewall_config_aurore.py @@ -47,7 +47,7 @@ nat = [ { 'name' : 'AdminVlans', 'extra_nat' : { - 'ens18': { + 'ens1': { '10.129.0.254/32' : '45.66.111.{{ router_hard_ip_suffix }}', '10.128.0.0/16' : '45.66.111.{{ router_hard_ip_suffix }}', '10.130.0.0/16' : '45.66.111.{{ router_hard_ip_suffix }}', diff --git a/roles/router/templates/interfaces-aurore b/roles/router/templates/interfaces-aurore index ce8b55a..5226cdc 100644 --- a/roles/router/templates/interfaces-aurore +++ b/roles/router/templates/interfaces-aurore @@ -15,20 +15,6 @@ iface ens18 inet static iface ens18 inet6 static address 2a09:6840:129::0:{{ router_hard_ip_suffix }}/64 - # Now managed by keepalived. - # - # post-up ip route add 2a09:6840:10::/64 via 2a09:6840:129::1:254 dev ens18 - # post-up ip route add 2a09:6840:11::/64 via 2a09:6840:129::1:254 dev ens18 - - # post-up ip route add 2a09:6840:20::/64 via 2a09:6840:129::2:254 dev ens18 - # post-up ip route add 2a09:6840:21::/64 via 2a09:6840:129::2:254 dev ens18 - - # post-up ip route add 2a09:6840:40::/64 via 2a09:6840:129::4:254 dev ens18 - # post-up ip route add 2a09:6840:41::/64 via 2a09:6840:129::4:254 dev ens18 - - # post-up ip route add 2a09:6840:50::/64 via 2a09:6840:129::5:254 dev ens18 - # post-up ip route add 2a09:6840:51::/64 via 2a09:6840:129::5:254 dev ens18 - # The primary network interface allow-hotplug ens19