forwarding #61

This commit is contained in:
Evgeniy Ivanov 2016-08-21 12:51:58 +03:00
parent 2adf591394
commit e6090b8245
2 changed files with 10 additions and 7 deletions

View file

@ -70,4 +70,13 @@
notify: notify:
- restart loopback - restart loopback
- meta: flush_handlers - meta: flush_handlers
- name: Enable packet forwarding for IPv4
sysctl: name="{{ item }}" value=1
with_items:
- net.ipv4.ip_forward
- net.ipv4.conf.all.forwarding
- name: Enable packet forwarding for IPv6
sysctl: name=net.ipv6.conf.all.forwarding value=1

View file

@ -90,12 +90,6 @@
notify: notify:
- flush routing cache - flush routing cache
- name: Enable packet forwarding for IPv4
sysctl: name=net.ipv4.ip_forward value=1
- name: Enable packet forwarding for IPv6
sysctl: name=net.ipv6.conf.all.forwarding value=1
- name: Do not send ICMP redirects (we are not a router) - name: Do not send ICMP redirects (we are not a router)
sysctl: name=net.ipv4.conf.all.send_redirects value=0 sysctl: name=net.ipv4.conf.all.send_redirects value=0