Skip to content

Commit

Permalink
Merge pull request #25 from manuelbuil/comply-ipv6-notation
Browse files Browse the repository at this point in the history
Comply with the ipv6 notation
  • Loading branch information
manuelbuil authored Sep 30, 2021
2 parents 83ad06c + 739ce9c commit b9fdf0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entry
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ do
if [ `cat /proc/sys/net/ipv6/conf/all/forwarding` != 1 ]; then
exit 1
fi
ip6tables -t nat -I PREROUTING ! -s ${dest_ip}/128 -p ${DEST_PROTO} --dport ${SRC_PORT} -j DNAT --to ${dest_ip}:${DEST_PORT}
ip6tables -t nat -I PREROUTING ! -s ${dest_ip}/128 -p ${DEST_PROTO} --dport ${SRC_PORT} -j DNAT --to [${dest_ip}]:${DEST_PORT}
ip6tables -t nat -I POSTROUTING -d ${dest_ip}/128 -p ${DEST_PROTO} -j MASQUERADE
else
if [ `cat /proc/sys/net/ipv4/ip_forward` != 1 ]; then
Expand Down

0 comments on commit b9fdf0f

Please sign in to comment.