1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
6 <refentrytitle>IPSEC_TNCFG</refentrytitle>
7 <manvolnum>8</manvolnum>
8 <refmiscinfo class='date'>21 Jun 2000</refmiscinfo>
10 <refnamediv id='name'>
11 <refname>ipsec tncfg</refname>
12 <refpurpose>manipulate KLIPS virtual interfaces</refpurpose>
14 <!-- body begins here -->
15 <refsynopsisdiv id='synopsis'>
17 <command>ipsec</command>
18 <arg choice='plain'>tncfg</arg>
20 <arg choice='plain'>ipsec tncfg</arg>
21 <arg choice='plain'>--create </arg>
22 <arg choice='plain'><replaceable>virtual</replaceable></arg>
24 <arg choice='plain'>ipsec tncfg</arg>
25 <arg choice='plain'>--delete </arg>
26 <arg choice='plain'><replaceable>virtual</replaceable></arg>
28 <arg choice='plain'>ipsec tncfg</arg>
29 <arg choice='plain'>--attach </arg>
30 <arg choice='plain'>--virtual </arg>
31 <arg choice='plain'><replaceable>virtual</replaceable></arg>
32 <arg choice='plain'>--physical </arg>
33 <arg choice='plain'><replaceable>physical</replaceable></arg>
35 <arg choice='plain'>ipsec tncfg</arg>
36 <arg choice='plain'>--detach </arg>
37 <arg choice='plain'>--virtual </arg>
38 <arg choice='plain'><replaceable>virtual</replaceable></arg>
40 <arg choice='plain'>ipsec tncfg</arg>
41 <arg choice='plain'>--clear </arg>
43 <arg choice='plain'>ipsec tncfg</arg>
44 <arg choice='plain'>--version </arg>
46 <arg choice='plain'>ipsec tncfg</arg>
47 <arg choice='plain'>--help </arg>
51 <refsect1 id='obsolete'><title>OBSOLETE</title>
52 <para>Note that tncfg is only supported on the classic KLIPS stack. It is
53 not supported on any other stack and will be completely removed in future
54 versions. A replacement command still needs to be designed</para>
57 <refsect1 id='description'><title>DESCRIPTION</title>
58 <para>The historical use of <emphasis remap='I'>tncfg</emphasis> is to
59 attach/detach IPsec virtual interfaces (e.g. ipsec0) to/from physical interfaces
60 (e.g. eth0) through which packets will be forwarded once processed by KLIPS.</para>
62 <para>The modern use of tncfg is to create and delete virtual interfaces known
63 as mastXXX. mast stands for Mooring and XXX.</para>
65 <para>The form with no additional arguments lists the contents of
66 /proc/net/ipsec_tncfg. The format of /proc/net/ipsec_tncfg is discussed
67 in ipsec_tncfg(5).</para>
70 <option>--attach</option>
72 <emphasis remap='I'>virtual</emphasis>
74 <emphasis remap='I'>physical</emphasis>
78 <option>--detach</option>
80 <emphasis remap='I'>virtual</emphasis>
81 interface from whichever physical interface it is attached to.
85 <option>--clear</option>
87 <emphasis remap='I'>virtual</emphasis>
88 interfaces from whichever physical interfaces they were attached to.</para>
90 <para>Virtual interfaces typically have names like
91 <emphasis remap='B'>ipsec0</emphasis> or <emphasis remap='B'>mast0</emphasis>
92 while physical interfaces typically have names like
93 <emphasis remap='B'>eth0</emphasis>
95 <emphasis remap='B'>ppp0</emphasis>.</para>
98 <refsect1 id='examples'><title>EXAMPLES</title>
99 <variablelist remap='TP'>
101 <term><emphasis remap='B'>ipsec tncfg --create mast12</emphasis></term>
103 <para>creates the mast12 device.</para>
108 <variablelist remap='TP'>
110 <term><emphasis remap='B'>ipsec tncfg --create ipsec4</emphasis></term>
112 <para>creates an ipsec4 device, but does not attach it.</para>
117 <variablelist remap='TP'>
119 <term><emphasis remap='B'>ipsec tncfg --attach --virtual ipsec0 --physical eth0</emphasis></term>
122 <emphasis remap='B'>ipsec0</emphasis>
123 virtual device to the
124 <emphasis remap='B'>eth0</emphasis>
125 physical device.</para>
132 <refsect1 id='files'><title>FILES</title>
133 <para>/proc/net/ipsec_tncfg, /usr/local/bin/ipsec</para>
136 <refsect1 id='see_also'><title>SEE ALSO</title>
137 <para>ipsec(8), ipsec_manual(8), ipsec_eroute(8), ipsec_spi(8),
138 ipsec_spigrp(8), ipsec_klipsdebug(8), ipsec_tncfg(5)</para>
141 <refsect1 id='history'><title>HISTORY</title>
142 <para>Written for the Linux FreeS/WAN project
143 <<ulink url='http://www.freeswan.org/'>http://www.freeswan.org/</ulink>>
144 by Richard Guy Briggs.</para>