net/mwan3: add dynamic ipsets to mwan3_connected ipsets
authorFlorian Eckert <redacted>
Fri, 10 Aug 2018 12:31:59 +0000 (14:31 +0200)
committerFlorian Eckert <redacted>
Tue, 23 Oct 2018 12:57:33 +0000 (14:57 +0200)
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 <redacted>
net/mwan3/files/lib/mwan3/mwan3.sh

index 712abe07ca087f5b5cf1a4ecae924cf6a67d7243..89ef0684178f2005b4ab6410e60ea4763843ae8a 100644 (file)
@@ -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()
git clone https://git.99rst.org/PROJECT