Commit 52a047ba authored by Vitaly Ostrosablin's avatar Vitaly Ostrosablin Committed by Pavel Emelyanov

test: fix conntracks test

In some old distros -m state doesn't work correctly and test fails
because test output diverges from expected results. Here we replace
obsoleted -m state with -m conntrack.

travis-ci: success for series starting with [v2,1/2] test: replace cat in Makefiles with awk
Signed-off-by: 's avatarVitaly Ostrosablin <vostrosablin@virtuozzo.com>
Reviewed-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Reviewed-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 911317ea
...@@ -29,7 +29,7 @@ do_start() ...@@ -29,7 +29,7 @@ do_start()
do_or_fail "can't install a state match" \ do_or_fail "can't install a state match" \
iptables -A INPUT \ iptables -A INPUT \
-m state --state RELATED,ESTABLISHED -j ACCEPT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
do_or_fail "can't list the loaded iptables" \ do_or_fail "can't list the loaded iptables" \
iptables -L \> "$statefile" iptables -L \> "$statefile"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment