Skip to content

Commit

Permalink
add ipv6 nat
Browse files Browse the repository at this point in the history
  • Loading branch information
PandaRyshan committed May 10, 2024
1 parent a521776 commit de4d5e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ fi
# if you want to specific translate ip, uncomment the following line, -j MASQUERADE is dynamic way
# iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -j SNAT --to-source $(hostname -I)
iptables -t nat -A POSTROUTING -s 172.20.0.0/24 -j MASQUERADE
ip6tables -t nat -A POSTROUTING -s 2001:db8:2::/64 -j MASQUERADE
iptables -I FORWARD -s 172.20.0.0/24 -j ACCEPT
iptables -I FORWARD -d 172.20.0.0/24 -j ACCEPT
ip6tables -I FORWARD -s 2001:db8:2::/64 -j ACCEPT
Expand Down

0 comments on commit de4d5e4

Please sign in to comment.