|
From: <abe...@us...> - 2017-05-30 16:28:36
|
Revision: 8355
http://sourceforge.net/p/astlinux/code/8355
Author: abelbeck
Date: 2017-05-30 16:28:34 +0000 (Tue, 30 May 2017)
Log Message:
-----------
arnofs, net-prefix-translation plugin, make sure the NET_PREFIX_TRANSLATION_GLOBAL_IPV6 file is created as an indication the plugin is active, and documentation comment tweaks
Modified Paths:
--------------
branches/1.0/package/arnofw/arnofw.serial
branches/1.0/package/arnofw/net-prefix-translation/20net-prefix-translation.plugin.sh
branches/1.0/package/arnofw/net-prefix-translation/net-prefix-translation.conf
Modified: branches/1.0/package/arnofw/arnofw.serial
===================================================================
--- branches/1.0/package/arnofw/arnofw.serial 2017-05-29 23:44:38 UTC (rev 8354)
+++ branches/1.0/package/arnofw/arnofw.serial 2017-05-30 16:28:34 UTC (rev 8355)
@@ -1 +1 @@
-0002~0033~0000~0000~0000~
+0002~0034~0000~0000~0000~
Modified: branches/1.0/package/arnofw/net-prefix-translation/20net-prefix-translation.plugin.sh
===================================================================
--- branches/1.0/package/arnofw/net-prefix-translation/20net-prefix-translation.plugin.sh 2017-05-29 23:44:38 UTC (rev 8354)
+++ branches/1.0/package/arnofw/net-prefix-translation/20net-prefix-translation.plugin.sh 2017-05-30 16:28:34 UTC (rev 8355)
@@ -114,6 +114,10 @@
global_prefix="$(net_prefix_translation_global_prefix)"
+ if [ ! -f "$NET_PREFIX_TRANSLATION_GLOBAL_IPV6" ]; then
+ : > "$NET_PREFIX_TRANSLATION_GLOBAL_IPV6"
+ fi
+
if [ -z "$global_prefix" ]; then
echo "${INDENT}Network Prefix Translation Global Prefix: Not Found"
return 1
@@ -207,6 +211,7 @@
done
echo "$global_prefix" > "$NET_PREFIX_TRANSLATION_GLOBAL_IPV6"
+
echo " Network Prefix Translation Global Prefix (updated): $global_prefix"
else
echo " Network Prefix Translation Global Prefix needs updating to: $global_prefix"
Modified: branches/1.0/package/arnofw/net-prefix-translation/net-prefix-translation.conf
===================================================================
--- branches/1.0/package/arnofw/net-prefix-translation/net-prefix-translation.conf 2017-05-29 23:44:38 UTC (rev 8354)
+++ branches/1.0/package/arnofw/net-prefix-translation/net-prefix-translation.conf 2017-05-30 16:28:34 UTC (rev 8355)
@@ -16,6 +16,8 @@
# The simplest case is where the GUA prefix is static, or seldom changes,
# specify the global prefix with NET_PREFIX_TRANSLATION_GLOBAL_PREFIX.
#
+# Supported prefix lengths: /64, /60, /56, /52 and /48
+#
# Example:
# NET_PREFIX_TRANSLATION_GLOBAL_PREFIX="2001:db8:abcd:1230::/60"
# (IPv6 Only)
@@ -36,11 +38,15 @@
# You must define NET_PREFIX_TRANSLATION_LOCAL_PREFIX by generating a ULA,
# using a script or web site, whatever you are most comfortable with.
#
+# Note: ULA's are /48's but you typically want a symmetric mapping so inbound
+# firewall rules work. Only special situations may desire non-symmetric mapping.
+# In general use the same _LOCAL_PREFIX length as the _GLOBAL_PREFIX length.
+#
# Example: (generate your own, random, ULA)
# NET_PREFIX_TRANSLATION_LOCAL_PREFIX="fd04:928b:f87e::/48"
# (IPv6 Only)
# ------------------------------------------------------------------------------
-NET_PREFIX_TRANSLATION_LOCAL_PREFIX="fd04:928b:f87e::/48"
+NET_PREFIX_TRANSLATION_LOCAL_PREFIX="fd04:928b:f87e::/60"
# When this plugin's status is called, if the global IPv6 prefix has changed,
# noted by the IPv6 prefix associated with NET_PREFIX_TRANSLATION_IF, the
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|