From 87e7280f5a9f1129dbbf5acff816c4b12155bc34 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Tue, 31 Oct 2017 13:14:05 -0700 Subject: [PATCH] test: Add networking settings for critest Signed-off-by: Mrunal Patel --- contrib/test/integration/system.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/test/integration/system.yml b/contrib/test/integration/system.yml index da1e8a93..d07ae0c8 100644 --- a/contrib/test/integration/system.yml +++ b/contrib/test/integration/system.yml @@ -106,6 +106,12 @@ - name: Flush the iptables command: iptables -F +- name: Enable localnet routing + command: sysctl -w net.ipv4.conf.all.route_localnet=1 + +- name: Add masquerade for localhost + command: iptables -t nat -I POSTROUTING -s 127.0.0.1 ! -d 127.0.0.1 -j MASQUERADE + - name: Update the kernel cmdline to include quota support command: grubby --update-kernel=ALL --args="rootflags=pquota" when: ansible_distribution in ['RedHat', 'CentOS']