Skip to content
Snippets Groups Projects
Commit c9accd6b authored by Benjamin Graillot's avatar Benjamin Graillot Committed by Benjamin Graillot
Browse files

[arp-proxy] delete arp proxy

parent 8b7c976e
No related branches found
No related tags found
1 merge request!175[arp-proxy] delete arp proxy
......@@ -10,10 +10,6 @@
- logall
- nftables
- hosts: routeur-sam.adm.crans.org
roles:
- arp-proxy
- hosts: crans_routeurs
vars:
subnets:
......
---
- name: Deploy interfaces config
template:
src: network/interfaces.d/{{ item }}.j2
dest: /etc/network/interfaces.d/{{ item }}
mode: 0644
owner: root
group: root
loop:
- 02-srv
- 24-srv-old
auto {{ interfaces.srv }}
iface {{ interfaces.srv }} inet manual
up /sbin/sysctl -w net.ipv4.conf.{{ interfaces.srv }}.proxy_arp=1
{% for ip in query('ldap', 'subnet_ipv4', 'srv') %}
up /sbin/ip route add {{ ip }}/32 dev {{ interfaces.srv }}
{% endfor %}
auto {{ interfaces.srv_old }}
iface {{ interfaces.srv_old }} inet static
address 185.230.79.2/24
gateway 185.230.79.254
up /sbin/sysctl -w net.ipv4.conf.{{ interfaces.srv_old }}.proxy_arp=1
up /sbin/ip addr add 185.230.79.204/24 dev {{ interfaces.srv_old }}
up /sbin/ip addr add 185.230.79.205/24 dev {{ interfaces.srv_old }}
up /sbin/ip addr add 185.230.79.206/24 dev {{ interfaces.srv_old }}
up /sbin/ip addr add 185.230.79.207/24 dev {{ interfaces.srv_old }}
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