From 181174b64b69545517bf702add35253c2b54957e Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 10 Aug 2018 14:31:59 +0200 Subject: [PATCH] net/mwan3: add dynamic ipsets to mwan3_connected ipsets During runntime of mwan3 we could add dynamicly networks to this ipset which would then treated as connected networks by mwan3. This is also usefull for ipsec. Signed-off-by: Florian Eckert --- net/mwan3/files/lib/mwan3/mwan3.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net/mwan3/files/lib/mwan3/mwan3.sh b/net/mwan3/files/lib/mwan3/mwan3.sh index 712abe07c..89ef06841 100644 --- a/net/mwan3/files/lib/mwan3/mwan3.sh +++ b/net/mwan3/files/lib/mwan3/mwan3.sh @@ -261,6 +261,12 @@ mwan3_set_connected_iptables() $IPS -! create mwan3_connected list:set $IPS -! add mwan3_connected mwan3_connected_v4 $IPS -! add mwan3_connected mwan3_connected_v6 + + $IPS -! create mwan3_dynamic_v4 hash:net + $IPS -! add mwan3_connected mwan3_dynamic_v4 + + $IPS -! create mwan3_dynamic_v6 hash:net family inet6 + $IPS -! add mwan3_connected mwan3_dynamic_v6 } mwan3_set_general_rules()