Commit b8d4cac0 authored by nanahira's avatar nanahira

create ipset in case

parent 6505003b
......@@ -10,6 +10,7 @@ ipset restore -f {{ansible_user_dir}}/nextgen-network/ipsets/{{list}}.ipset || t
{% endfor %}
# ip rule
ipset create localnet hash:net maxelem 1000000 || true
{% for subnet in routeLists.mycard %}
ipset add localnet {{subnet}} || true
ip rule add pref 81 to {{subnet}} lookup main || true
......
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