mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/tayga, register virtual interface (#1826)
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user