]> git.ipfire.org Git - network.git/commitdiff
man: Add documentation for IP tunnel hook
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 Sep 2018 14:06:38 +0000 (16:06 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 Sep 2018 14:06:38 +0000 (16:06 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
man/network-zone-6to4-tunnel.xml [deleted file]
man/network-zone-ip-tunnel.xml [new file with mode: 0644]

index 69a1170e94a8459a0d52d1f9e10d338a7b0f154a..809c824f8a861adb8aebfc58e19442fd6f5a9db3 100644 (file)
@@ -443,9 +443,9 @@ MANPAGES = \
        man/network-vpn.8 \
        man/network-vpn-security-policies.8 \
        man/network-zone.8 \
-       man/network-zone-6to4-tunnel.8 \
        man/network-zone-bridge.8 \
        man/network-zone-config-pppoe-server.8 \
+       man/network-zone-ip-tunnel.8 \
        man/network-zone-modem.8 \
        man/network-zone-pppoe.8 \
        man/network-zone-wireless.8
diff --git a/man/network-zone-6to4-tunnel.xml b/man/network-zone-6to4-tunnel.xml
deleted file mode 100644 (file)
index 8126e82..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE refentry PUBLIC "-//OASIS/DTD DocBook XML V4.2//EN"
-       "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
-
-<refentry id="network-zone-6to4-tunnel">
-       <refentryinfo>
-               <title>network-zone-6to4-tunnel</title>
-               <productname>network</productname>
-
-               <authorgroup>
-                       <author>
-                               <contrib>Developer</contrib>
-                               <firstname>Michael</firstname>
-                               <surname>Tremer</surname>
-                               <email>michael.tremer@ipfire.org</email>
-                       </author>
-               </authorgroup>
-       </refentryinfo>
-
-       <refmeta>
-               <refentrytitle>network-zone-6to4-tunnel</refentrytitle>
-               <manvolnum>8</manvolnum>
-       </refmeta>
-
-       <refnamediv>
-               <refname>network-zone-6to4-tunnel</refname>
-               <refpurpose>Network Configuration Control Program</refpurpose>
-       </refnamediv>
-
-       <refsynopsisdiv>
-               <cmdsynopsis>
-                       <command>network zone new <replaceable>ZONE</replaceable> 6to4-tunnel ...</command>
-               </cmdsynopsis>
-
-               <cmdsynopsis>
-                       <command>network zone <replaceable>ZONE</replaceable> edit ...</command>
-               </cmdsynopsis>
-       </refsynopsisdiv>
-
-       <refsect1>
-               <title>Description</title>
-
-               <para>
-                       The 6to4-tunnel hook is used to create IPv6 tunnels over IPv4 networks
-                       where the provider does not provide native IPv6.
-               </para>
-               <para>
-                       Hurricane Electric offers a free tunnelbroker service on
-                       http://www.tunnelbroker.net, that can be used with this hook.
-               </para>
-       </refsect1>
-
-       <refsect1>
-               <title>Options</title>
-
-               <para>
-                       The following options are understood:
-               </para>
-
-               <variablelist>
-                       <varlistentry>
-                               <term>
-                                       <option>--server-address=<replaceable>ADDRESS</replaceable></option>
-                               </term>
-
-                               <listitem>
-                                       <para>
-                                               The address of the tunnel endpoint server.
-                                       </para>
-                                       <para>
-                                               This is the IPv4 address of the server, to where
-                                               the tunnel is created.
-                                       </para>
-                               </listitem>
-                       </varlistentry>
-
-                       <varlistentry>
-                               <term>
-                                       <option>--local-ipv4-address=<replaceable>ADDRESS</replaceable></option>
-                               </term>
-
-                               <listitem>
-                                       <para>
-                                               The local IPv4 address that is used to connect to
-                                               the server.
-                                       </para>
-                                       <para>
-                                               Attention! In case your local tunnel endpoint is behind
-                                               a NAT, you need to configure the internet IP address instead
-                                               of the public IP address.
-                                       </para>
-                               </listitem>
-                       </varlistentry>
-
-                       <varlistentry>
-                               <term>
-                                       <option>--local-ipv6-address=<replaceable>ADDRESS</replaceable></option>
-                               </term>
-
-                               <listitem>
-                                       <para>
-                                               The local IPv6 address of your tunnel.
-                                       </para>
-                               </listitem>
-                       </varlistentry>
-               </variablelist>
-
-               <para>
-                       Optional arguments, that can be used to automatically update the
-                       tunnel endpoint IPv4 address with tunnelbroker.net:
-               </para>
-
-               <variablelist>
-                       <varlistentry>
-                               <term>
-                                       <option>--auto-update-endpoint=[<emphasis>false</emphasis>|true]</option>
-                               </term>
-
-                               <listitem>
-                                       <para>
-                                               Determines whether the tunnel endpoint IPv4 address should
-                                               be automatically updated or not.
-                                       </para>
-                               </listitem>
-                       </varlistentry>
-
-                       <varlistentry>
-                               <term>
-                                       <option>--username=<replaceable>USERNAME</replaceable></option>
-                               </term>
-
-                               <listitem>
-                                       <para>
-                                               The username of your tunnelbroker.net account.
-                                       </para>
-                               </listitem>
-                       </varlistentry>
-
-                       <varlistentry>
-                               <term>
-                                       <option>--password=<replaceable>PASSWORD</replaceable></option>
-                               </term>
-
-                               <listitem>
-                                       <para>
-                                               The password of your tunnelbroker.net account.
-                                       </para>
-                               </listitem>
-                       </varlistentry>
-
-                       <varlistentry>
-                               <term>
-                                       <option>--tunnel-id=<replaceable>N</replaceable></option>
-                               </term>
-
-                               <listitem>
-                                       <para>
-                                               The ID of this tunnel, given to you by tunnelbroker.net.
-                                       </para>
-                               </listitem>
-                       </varlistentry>
-               </variablelist>
-       </refsect1>
-
-       <refsect1>
-               <title>See Also</title>
-
-               <para>
-                       <citerefentry>
-                               <refentrytitle>network</refentrytitle>
-                               <manvolnum>8</manvolnum>
-                       </citerefentry>,
-                       <citerefentry>
-                               <refentrytitle>network-zone</refentrytitle>
-                               <manvolnum>8</manvolnum>
-                       </citerefentry>
-               </para>
-       </refsect1>
-</refentry>
diff --git a/man/network-zone-ip-tunnel.xml b/man/network-zone-ip-tunnel.xml
new file mode 100644 (file)
index 0000000..cd3fa63
--- /dev/null
@@ -0,0 +1,116 @@
+<?xml version="1.0"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS/DTD DocBook XML V4.2//EN"
+       "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<refentry id="network-zone-ip-tunnel">
+       <refentryinfo>
+               <title>network-zone-ip-tunnel</title>
+               <productname>network</productname>
+
+               <authorgroup>
+                       <author>
+                               <contrib>Developer</contrib>
+                               <firstname>Michael</firstname>
+                               <surname>Tremer</surname>
+                               <email>michael.tremer@ipfire.org</email>
+                       </author>
+               </authorgroup>
+       </refentryinfo>
+
+       <refmeta>
+               <refentrytitle>network-zone-ip-tunnel</refentrytitle>
+               <manvolnum>8</manvolnum>
+       </refmeta>
+
+       <refnamediv>
+               <refname>network-zone-ip-tunnel</refname>
+               <refpurpose>Network Configuration Control Program</refpurpose>
+       </refnamediv>
+
+       <refsynopsisdiv>
+               <cmdsynopsis>
+                       <command>network zone new <replaceable>ZONE</replaceable> ip-tunnel ...</command>
+               </cmdsynopsis>
+
+               <cmdsynopsis>
+                       <command>network zone <replaceable>ZONE</replaceable> edit ...</command>
+               </cmdsynopsis>
+       </refsynopsisdiv>
+
+       <refsect1>
+               <title>Description</title>
+
+               <para>
+                       The ip-tunnel hook is used to create IP tunnels that use protocols
+                       like GRE to encapsulate IP packets.
+               </para>
+       </refsect1>
+
+       <refsect1>
+               <title>Options</title>
+
+               <para>
+                       The following options are understood:
+               </para>
+
+               <variablelist>
+                       <varlistentry>
+                               <term>
+                                       <option>--mode=<replaceable>MODE</replaceable></option>
+                               </term>
+
+                               <listitem>
+                                       <para>
+                                               Sets the protocol that is being used to encapsulate
+                                               IP packets.
+                                               Currently only <replaceable>gre</replaceable> is supported.
+                                       </para>
+                               </listitem>
+                       </varlistentry>
+
+                       <varlistentry>
+                               <term>
+                                       <option>--peer=<replaceable>PEER</replaceable></option>
+                               </term>
+
+                               <listitem>
+                                       <para>
+                                               The address of the peer that terminates the remote
+                                               end of this tunnel.
+                                       </para>
+                               </listitem>
+                       </varlistentry>
+
+                       <varlistentry>
+                               <term>
+                                       <option>--local-address=<replaceable>LOCAL-ADDRESS</replaceable></option>
+                               </term>
+
+                               <listitem>
+                                       <para>
+                                               The local IP address the tunnel originates from.
+                                       </para>
+
+                                       <para>
+                                               This is optional and if unset a useful default will be used.
+                                       </para>
+                               </listitem>
+                       </varlistentry>
+               </variablelist>
+       </refsect1>
+
+       <refsect1>
+               <title>See Also</title>
+
+               <para>
+                       <citerefentry>
+                               <refentrytitle>network</refentrytitle>
+                               <manvolnum>8</manvolnum>
+                       </citerefentry>,
+                       <citerefentry>
+                               <refentrytitle>network-zone</refentrytitle>
+                               <manvolnum>8</manvolnum>
+                       </citerefentry>
+               </para>
+       </refsect1>
+</refentry>