Commit ad8cbcb6 authored by nanahira's avatar nanahira

move iptables-restore gateways

parent a664c365
......@@ -35,10 +35,6 @@ handle_gateway() {
{% for gateway in br.gateways %}
handle_gateway {{gateway.id}} {{gateway.address}}
{% if gateway.id == 0 %}
iptables-restore --noflush {{ansible_user_dir}}/iptables-gateways
{% endif %}
{% endfor %}
{% endif %}
......
......@@ -19,7 +19,8 @@ initialize_ipset() {
{% for subnet in localnets %}
ip rule add pref 80 to {{subnet}} lookup main && \
{% endfor %}
ip rule add pref 80 to 172.16.0.0/12 lookup main
ip rule add pref 80 to 172.16.0.0/12 lookup main && \
iptables-restore --noflush {{ansible_user_dir}}/iptables-gateways
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