net/tayga, register virtual interface (#1826)

This commit is contained in:
Maurice Walker
2020-05-20 10:48:11 +02:00
committed by GitHub
parent 5c004cae08
commit 85329069be
4 changed files with 23 additions and 3 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
PLUGIN_NAME= tayga
PLUGIN_VERSION= 1.0
PLUGIN_COMMENT= Tayga IPv6 64NAT
PLUGIN_VERSION= 1.1
PLUGIN_COMMENT= Tayga NAT64
PLUGIN_DEPENDS= tayga
PLUGIN_MAINTAINER= m.muenz@gmail.com
+4
View File
@@ -7,6 +7,10 @@ networks where dedicated NAT64 hardware would be overkill.
Plugin Changelog
================
1.1
* Register Tayga virtual interface
1.0
* Support for IPv6 prefix and IPv4 pool
@@ -61,3 +61,19 @@ function tayga_xmlrpc_sync()
$result['description'] = gettext('Tayga');
return array($result);
}
function tayga_interfaces()
{
$interfaces = array();
if (!tayga_enabled()) {
return $interfaces;
}
$oic = array('enable' => true);
$oic['if'] = 'nat64';
$oic['descr'] = 'Tayga';
$oic['type'] = 'none';
$oic['virtual'] = true;
$oic['networks'] = array();
$interfaces['tayga'] = $oic;
return $interfaces;
}
@@ -23,7 +23,7 @@
<Required>Y</Required>
</v6destination>
<v6prefix type="NetworkField">
<default>2001:db8:1:ffff::/96</default>
<default>64:ff9b::/96</default>
<Required>Y</Required>
</v6prefix>
<v4pool type="NetworkField">