net/tayga: bugfixes for TUN interface and Tayga IPv6 addresses (#1738)

This commit is contained in:
Maurice
2020-03-13 08:12:16 +01:00
committed by GitHub
parent f2baaedd11
commit b4cb311bdb
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ tayga_start()
${command} ${command_args}
sleep 1
ifconfig nat64 inet ${tayga_v4destination}/32 ${tayga_v4address}
ifconfig nat64 inet6 ${tayga_v6estination}/128
ifconfig nat64 inet6 ${tayga_v6destination}/128
route -6 add ${tayga_v6prefix} -interface nat64
route -4 add ${tayga_v4pool} -interface nat64
}
@@ -6,6 +6,7 @@ tayga_v4destination={{ OPNsense.tayga.general.v4destination }}
tayga_v4pool={{ OPNsense.tayga.general.v4pool }}
tayga_v6prefix={{ OPNsense.tayga.general.v6prefix }}
tayga_v6address={{ OPNsense.tayga.general.v6address }}
tayga_v6destination={{ OPNsense.tayga.general.v6destination }}
{% else %}
tayga_enable="NO"
{% endif %}
@@ -4,7 +4,9 @@ tun-device nat64
data-dir /var/db/tayga
ipv4-addr {{ OPNsense.tayga.general.v4address }}
{% if helpers.exists('OPNsense.tayga.general.v6address') and OPNsense.tayga.general.v6address != '' %}
ipv6-addr {{ OPNsense.tayga.general.v6address }}
{% endif %}
prefix {{ OPNsense.tayga.general.v6prefix }}
dynamic-pool {{ OPNsense.tayga.general.v4pool }}