Commit a3f64584 authored by nanahira's avatar nanahira

masq

parent 9192075b
...@@ -18,7 +18,7 @@ ip rule add pref 81 to {{subnet}} lookup main || true ...@@ -18,7 +18,7 @@ ip rule add pref 81 to {{subnet}} lookup main || true
# MASQ interfaces # MASQ interfaces
{% for interface in masqInterfaces %} {% for interface in masqInterfaces %}
iptables -t nat -A POSTROUTING -m set --match-set mycard src -o {{interface.name}} -j MASQUERADE iptables -t nat -A POSTROUTING -m set --match-set mycard src -m set ! --match-set mycard dst -o {{interface.name}} -j MASQUERADE
{% endfor %} {% endfor %}
# chain for wg origin # chain for wg origin
......
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