Commit 47f66fd4 authored by nanahira's avatar nanahira

fix masq

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