From 6caf9144d7bfa54609034d1934d7ec723287e70a Mon Sep 17 00:00:00 2001 From: Sergey Bubnov Date: Tue, 4 Jun 2019 14:18:34 +0400 Subject: [PATCH] disable rp_filter on all interfaces --- roles/common/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 63867ed..3a2bc8c 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -8,6 +8,13 @@ delay: 3 timeout: 60 +- name: disable rp_filter on all interfaces + shell: | + for DEV in /proc/sys/net/ipv4/conf/*/rp_filter + do + echo 0 > $DEV + done + - name: disable apt-cache in tmpfs block: - lineinfile: