The various components of Linux FreeS/WAN are of course documented in
standard Unix manual pages, accessible via the man(1) command.
Links here take you to an HTML version of the man pages.
- IPsec configuration and connections
- secrets for IKE authentication, either pre-shared keys or RSA
These files are also discussed in the
Many users will never give most of the FreeS/WAN commands directly.
Configure the files listed above correctly and everything should be
The exceptions are commands for mainpulating the
RSA keys used in Pluto authentication:
- generate keys
- generate keys in a convenient format
- extract RSA keys from
ipsec.secrets(5) (or optionally, another file) and format them for
insertion in ipsec.conf(5) or
in DNS records
- These keys are for authentication only. They are
not secure for encryption.
- The utility uses random(4) as a source of
random numbers. This may block for some time if there is not enough
activity on the machine to provide the required entropy. You may want
to give it some bogus activity such as random mouse movements or some
command such as du /usr > /dev/null &.
The following commands are fairly likely to be used, if only for
testing and status checks:
- invoke IPsec utilities
- control IPsec subsystem
- control automatically-keyed IPsec connections
- take manually-keyed IPsec connections up and down
- generate random bits in ASCII form
- show minimal debugging information
- spew out collected IPsec debugging information
The lower-level utilities listed below are normally invoked via
scripts listed above, but they can also be used directly when required.
- manipulate IPsec extended routing tables
- set Klips (kernel IPsec support) debug features and level
- IPsec IKE keying daemon
- manage IPsec Security Associations
- group/ungroup IPsec Security Associations
- associate IPsec virtual interface with real interface
- control interface for IPsec keying daemon
- convert Internet addresses to and from ASCII
- convert subnet/mask ASCII form to and from addresses
- convert ASCII to Internet address, subnet, or range
- convert Internet address range to ASCII
- convert binary data from and to ASCII formats
- convert IPsec Security Association IDs to and from ASCII
- convert unsigned-long numbers to and from ASCII
- is this Internet subnet mask a valid one?
- convert Internet subnet mask to bit count
- convert bit count to Internet subnet mask
- read additional ``command-line'' options from file
- given Internet address and subnet mask, return subnet number
- given Internet address and subnet mask, return host part
- given Internet address and subnet mask, return broadcast address