Commit fc7072de authored by nanahira's avatar nanahira

Merge branch 'master' of git.mycard.moe:mycard/nextgen-router

parents 5614e835 cb9a3c04
......@@ -57,7 +57,7 @@ handle_gateway {{gateway.id}} {{gateway.address}} {% if gateway.mac is defined a
{% if br.masq is defined and br.masq %}
# Masquerade
iptables -t nat -A POSTROUTING -o "$BRIDGE_NAME" -m set --match-set localnet src -j MASQUERADE
iptables -t nat -A POSTROUTING -o "$BRIDGE_NAME" -m set --match-set localnet src -m set ! --match-set localnet dst -j MASQUERADE
{% endif %}
{% if br.dhcpv6Client is defined and br.dhcpv6Client %}
......
......@@ -46,6 +46,7 @@ handle_gateway {{gateway.id}} {{gateway.address}} {% if gateway.mac is defined a
# Masquerade
iptables -t nat -D POSTROUTING -o "$BRIDGE_NAME" -j MASQUERADE
iptables -t nat -D POSTROUTING -o "$BRIDGE_NAME" -m set --match-set localnet src -j MASQUERADE
iptables -t nat -D POSTROUTING -o "$BRIDGE_NAME" -m set --match-set localnet src -m set ! --match-set localnet dst -j MASQUERADE
{% endif %}
{% if br.down is defined and br.down %}
......
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