📄 manual.8
字号:
.TH IPSEC_MANUAL 8 "17 July 2001".\" RCSID $Id: manual.8,v 1.54 2005/01/11 17:52:49 ken Exp $.SH NAMEipsec manual \- take manually-keyed IPsec connections up and down.SH SYNOPSIS.B ipsec.B manual[.B \-\-show] [.B \-\-showonly] [.B \-\-other].br\ \ \ [.B \-\-iam.RB address "@" interface] [.B \-\-configconfigfile].br\ \ \ operation connection.sp 0.5.B ipsec.B manual[.I options].B \-\-unionoperation part ....SH DESCRIPTION.I Manualmanipulates manually-keyed FreeS/WAN IPsec connections,setting them up and shutting them down,based on the information in the IPsec configuration file.In the normal usage,.I connectionis the name of a connection specification in the configuration file;.I operationis.BR \-\-up ,.BR \-\-down ,.BR \-\-route ,or.BR \-\-unroute ..I Manualgenerates setup (\c.BR \-\-routeor.BR \-\-up )orteardown (\c.BR \-\-downor.BR \-\-unroute )commands for the connection and feeds them to a shell for execution..PPThe.B \-\-upoperation brings the specified connection up, including establishing asuitable route for it if necessary..PPThe.B \-\-routeoperation just establishes the route for a connection.Unless and until an.B \-\-upoperation is done, packets routed by that route will simply be discarded..PPThe.B \-\-downoperation tears the specified connection down,.I exceptthat it leaves the route in place.Unless and until an.B \-\-unrouteoperation is done, packets routed by that route will simply be discarded.This permits establishing another connection to the same destinationwithout any ``window'' in which packets can pass without encryption..PPThe.B \-\-unrouteoperation (and only the.B \-\-unrouteoperation) deletes any route established for a connection..PPIn the.B \-\-unionusage, each.I partis the name of a partial connection specification in the configuration file,and the union of all the partial specifications is theconnection specification used.The effect is as if the contents of the partial specifications wereconcatenated together;restrictions on duplicate parameters, etc., do apply to the result.(The same effect can now be had, more gracefully, using the.B alsoparameter in connection descriptions;see.IR ipsec.conf (5)for details.).PPThe.B \-\-showoption turns on the.B \-xoption of the shell used to execute the commands,so each command is shown as it is executed..PPThe.B \-\-showonlyoption causes.I manualto show the commands it would run, on standard output,and not run them..PPThe.B \-\-otheroption causes.I manualto pretend it is the other end of the connection.This is probably not useful except in combination with.BR \-\-showonly ..PPThe.B \-\-iamoption causes.I manualto believe it is running on the host with the specified IP.IR address ,and that it should use the specified.I interface(normally it determines all this automatically,based on what IPsec interfaces are up and how they are configured)..PPThe.B \-\-configoption specifies a non-standard location for the FreeS/WAN IPsecconfiguration file (default.IR /etc/ipsec.conf )..PPSee.IR ipsec.conf (5)for details of the configuration file.Apart from the basic parameters which specify the endpoints and routingof a connection (\fBleft\fRand.BR right ,plus possibly.BR leftsubnet ,.BR leftnexthop ,.BR leftfirewall ,their.B rightequivalents,and perhaps.BR type ),a non-\fBpassthrough\fR.I manualconnection needs an.B spior.B spibaseparameter and some parameters specifying encryption, authentication, orboth, most simply.BR esp ,.BR espenckey ,and.BR espauthkey .Moderately-secure keys can be obtained from.IR ipsec_ranbits (8).For production use of manually-keyed connections,it is strongly recommended that the keys be kept in a separate file(with permissions.BR rw\-\-\-\-\-\-\- )using the.B includeand.B alsofacilities of the configuration file (see.IR ipsec.conf (5))..PPIf an.B spiparameter is given,.I manualuses that value as the SPI number for all the SAs(which are in separate number spaces anyway).If an.B spibaseparameter is given instead,.I manualassigns SPI values by altering the bottom digitof that value;SAs going from left to right get even digits starting at 0,SAs going from right to left get odd digits starting at 1.Either way, it is suggested that manually-keyed connections usethree-digit SPIs with the first digit non-zero,i.e. in the range.B 0x100through.BR 0xfff ;FreeS/WAN reserves those for manual keying and will notattempt to use them for automatic keying (unless requested to,presumably by a non-FreeS/WAN other end)..SH FILES.ta \w'/var/run/pluto/ipsec.nexthop'u+4n/etc/ipsec.conf default IPsec configuration file.br/var/run/pluto/ipsec.info \fB%defaultroute\fR information.SH SEE ALSOipsec(8), ipsec.conf(5), ipsec_spi(8), ipsec_eroute(8), ipsec_spigrp(8),route(8).SH HISTORYWritten for the FreeS/WAN project<http://www.freeswan.org/>by Henry Spencer..SH BUGSIt's not nearly as generous about the syntax of subnets,addresses, etc. as the usual FreeS/WAN user interfaces.Four-component dotted-decimal must be used for all addresses.It.I issmart enough to translate bit-count netmasks to dotted-decimal form..PPIf the connection specification for a connection is changed between an.B \-\-upand the ensuing.BR \-\-down ,chaos may ensue..PPThe.B \-\-upoperation is not smart enough to notice whether the connection is already up..PP.I Manualis not smart enough to reject insecure combinations of algorithms,e.g. encryption with no authentication at all..PPAny non-IPsec route to the other end which is replaced by the.B \-\-upor.B \-\-routeoperation will not be re-established by.BR \-\-unroute .Whether this is a feature or a bug depends on your viewpoint..PPThe optional parameters whichoverride the automatic.BR spibase -basedSPI assignment are a messy area of the code and bugs are likely..PP``Road warrior'' handling,and other special forms of setup whichrequire negotiation between the two security gateways,inherently cannot be done with.IR manual ..PP.I Manualgenerally lags behind.I autoin support of various features,even when implementation \fIwould\fR be possible.For example, currently it does not do IPComp content compression.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -