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

[sysctl-fowarding] Enable IP forwarding on routers

parent 53b098e3
No related branches found
No related tags found
1 merge request!50[sysctl-fowarding] Enable IP forwarding on routers
#!/usr/bin/env ansible-playbook
---
# Deploy iproute2 config file
# Deploy iproute2 and sysctl config files
- hosts: crans_routeurs
roles:
- iproute2
- sysctl-forwarding
# Deploy firewall
- hosts: crans_routeurs
......
---
- name: Deploy sysctl configuration
template:
src: sysctl.d/10-forwarding.conf.j2
dest: /etc/sysctl.d/10-forwarding.conf
{{ ansible_header | comment }}
# Enable packet forwarding for IPv4
net.ipv4.ip_forward=1
# Enable packet forwarding for IPv6
# Enabling this option disables Stateless Address Autoconfiguration
# based on Router Advertisements for this host
net.ipv6.conf.all.forwarding=1
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