Support configuring rp_filter mode
Change-Id: Iaceef08bde7bdee153040afdcfd800c7c4141c07 Story: 2003056 Task: 23093
This commit is contained in:
parent
8f76845f51
commit
5df1156cc2
4
ansible/roles/ip-routing/defaults/main.yml
Normal file
4
ansible/roles/ip-routing/defaults/main.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
# See kernel doc for more detail: /Documentation/networking/ip-sysctl.txt
|
||||||
|
ip_routing_rp_filter_mode: 0
|
@ -6,6 +6,6 @@
|
|||||||
sysctl_set: "yes"
|
sysctl_set: "yes"
|
||||||
with_items:
|
with_items:
|
||||||
- { name: "net.ipv4.ip_forward", value: 1}
|
- { name: "net.ipv4.ip_forward", value: 1}
|
||||||
- { name: "net.ipv4.conf.all.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: 0}
|
- { name: "net.ipv4.conf.default.rp_filter", value: "{{ ip_routing_rp_filter_mode }}"}
|
||||||
become: True
|
become: True
|
||||||
|
Loading…
Reference in New Issue
Block a user