summaryrefslogtreecommitdiffstats
path: root/roles/gateway
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-07 12:28:16 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-07 12:28:16 +0200
commit3880136d2d13973825be77934468fed51d01624b (patch)
treecb3e993d1cc8765c3de6a3fe3bb7324c3db0b346 /roles/gateway
parentf07a7b485fcfec6e2ba9cfef19ecc7b0b0b5d58d (diff)
Enable ipv6 on the rpi
Diffstat (limited to 'roles/gateway')
-rw-r--r--roles/gateway/templates/gateway-apply-rules.sh.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/gateway/templates/gateway-apply-rules.sh.j2 b/roles/gateway/templates/gateway-apply-rules.sh.j2
index 2e6bfb70..715f6b34 100644
--- a/roles/gateway/templates/gateway-apply-rules.sh.j2
+++ b/roles/gateway/templates/gateway-apply-rules.sh.j2
@@ -57,7 +57,7 @@ apply_direct_rules() {
iptables -A FORWARD -s "$GATEWAY_SUBNET_V4" -o "$GATEWAY_INTERFACE" -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
if [ -n "$GATEWAY_SUBNET_V6" ]; then
- ip6tables -t nat -A POSTROUTING -s "$GATEWAY_SUBNET_V6" -o "$GATEWAY_INTERFACE" -j MASQUERADE
+ # No MASQUERADE for IPv6: LAN devices have public SLAAC addresses, native routing applies
ip6tables -A OUTPUT -o "$GATEWAY_INTERFACE" -j ACCEPT
ip6tables -A FORWARD -s "$GATEWAY_SUBNET_V6" -o "$GATEWAY_INTERFACE" -j ACCEPT
ip6tables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT