Support configuring rp_filter mode

Change-Id: Iaceef08bde7bdee153040afdcfd800c7c4141c07
Story: 2003056
Task: 23093
This commit is contained in:
Doug Szumski 2018-07-20 14:39:21 +01:00
parent 8f76845f51
commit 5df1156cc2
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,4 @@
---
# See kernel doc for more detail: /Documentation/networking/ip-sysctl.txt
ip_routing_rp_filter_mode: 0

View File

@ -6,6 +6,6 @@
sysctl_set: "yes"
with_items:
- { name: "net.ipv4.ip_forward", value: 1}
- { name: "net.ipv4.conf.all.rp_filter", value: 0}
- { name: "net.ipv4.conf.default.rp_filter", value: 0}
- { name: "net.ipv4.conf.all.rp_filter", value: "{{ ip_routing_rp_filter_mode }}"}
- { name: "net.ipv4.conf.default.rp_filter", value: "{{ ip_routing_rp_filter_mode }}"}
become: True