Commit 82a8cce8 authored by nanahira's avatar nanahira

add mycard ipset to localnet

parent e5852838
......@@ -39,6 +39,10 @@
become: true
shell: 'ipset add mycard {{item}} || true'
with_items: '{{routeLists.mycard}}'
- name: localnet ipset
become: true
shell: 'ipset add localnet {{item}} || true'
with_items: '{{routeLists.mycard}}'
- name: table pref 81 lookup main
become: true
shell: 'ip -4 rule add pref 81 to {{item}} lookup main || true'
......
......@@ -10,6 +10,7 @@ ipset restore -f {{ansible_user_dir}}/nextgen-network/ipsets/{{list}}.ipset || t
# ip rule
{% for subnet in routeLists.mycard %}
ipset add localnet {{subnet}} || true
ip rule add pref 81 to {{subnet}} lookup main || true
{% endfor %}
......
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