ipsec » History » Version 5
Martin Willi, 29.09.2007 16:31
added whack and stroke details to control commands
1 | 1 | Martin Willi | = ipsec = |
---|---|---|---|
2 | 2 | Martin Willi | |
3 | 2 | Martin Willi | '''ipsec''' is actually an umbrella command comprising a collection of individual sub commands of the form |
4 | 2 | Martin Willi | |
5 | 3 | Martin Willi | '''ipsec ''<command>'' [ ''<argument>'' ] [ ''<options>'' ]''' |
6 | 2 | Martin Willi | |
7 | 2 | Martin Willi | that can be used to control and monitor IPsec connections as well as the IKE daemons. |
8 | 2 | Martin Willi | |
9 | 2 | Martin Willi | == Control Commands == |
10 | 2 | Martin Willi | |
11 | 1 | Martin Willi | '''ipsec start [ ''<starter options>'' ]''' |
12 | 3 | Martin Willi | calls [wiki:IpsecStarter ipsec starter] which in turn parses [wiki:IpsecConf ipsec.conf] and starts |
13 | 3 | Martin Willi | the IKEv1 pluto and IKEv2 charon daemons. |
14 | 2 | Martin Willi | |
15 | 1 | Martin Willi | '''ipsec stop''' |
16 | 3 | Martin Willi | terminates all IPsec connection and stops the IKEv1 pluto and IKEv2 charon daemons by sending |
17 | 3 | Martin Willi | a ''TERM'' signal to [wiki:IpsecStarter ipsec starter]. |
18 | 1 | Martin Willi | |
19 | 1 | Martin Willi | '''ipsec restart [ ''<starter options>'' ]''' |
20 | 3 | Martin Willi | is equivalent to '''ipsec stop''' followed by '''ipsec start [ ''<starter options>'' ]''' after a |
21 | 3 | Martin Willi | guard period of 2 seconds. |
22 | 1 | Martin Willi | |
23 | 1 | Martin Willi | '''ipsec update''' |
24 | 3 | Martin Willi | sends a ''HUP'' signal to [wiki:IpsecStarter ipsec starter] which in turn determines any changes |
25 | 4 | Martin Willi | in [wiki:IpsecConf ipsec.conf] and updates the configuration on the running IKEv1 pluto and IKEv2 |
26 | 3 | Martin Willi | charon daemons, correspondingly. |
27 | 1 | Martin Willi | |
28 | 1 | Martin Willi | '''ipsec reload''' |
29 | 3 | Martin Willi | sends a ''USR1'' signal to [wiki:IpsecStarter ipsec starter] which in turn reloads the |
30 | 3 | Martin Willi | whole configuration on the running IKEv1 pluto and IKEv2 charon daemons based on the actual |
31 | 3 | Martin Willi | [wiki:IpsecConf ipsec.conf]. |
32 | 1 | Martin Willi | |
33 | 1 | Martin Willi | '''ipsec up ''<name>'' ''' |
34 | 4 | Martin Willi | tells the responsible IKE daemon to start up connection ''<name>''. Implemented by calling the |
35 | 5 | Martin Willi | [wiki:IpsecWhack ipsec whack] --name ''<name>'' --initiate and/or [wiki:IpsecStroke ipsec stroke] |
36 | 5 | Martin Willi | up ''<name>'' commands. |
37 | 1 | Martin Willi | |
38 | 1 | Martin Willi | '''ipsec down ''<name>'' ''' |
39 | 1 | Martin Willi | tells the responsible IKE daemon to terminate connection ''<name>''. Implemented by calling the |
40 | 5 | Martin Willi | [wiki:IpsecWhack ipsec whack] --name ''<name>'' --terminate and/or [wiki:IpsecStroke ipsec stroke] |
41 | 5 | Martin Willi | down ''<name>'' commands. |
42 | 1 | Martin Willi | |
43 | 1 | Martin Willi | '''ipsec route ''<name>'' ''' |
44 | 1 | Martin Willi | tells the responsible IKE daemon to insert an IPsec policy in the kernel for connection ''<name>''. |
45 | 1 | Martin Willi | The first payload packet matching the IPsec policy will automatically trigger an IKE connection setup. |
46 | 5 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] --name ''<name>'' --route and/or |
47 | 5 | Martin Willi | [wiki:IpsecStroke ipsec stroke] route ''<name>'' commands. |
48 | 1 | Martin Willi | |
49 | 4 | Martin Willi | '''ipsec unroute ''<name>'' ''' |
50 | 1 | Martin Willi | remove the IPsec policy in the kernel for connection ''<name>''. Implemented by calling the |
51 | 5 | Martin Willi | [wiki:IpsecWhack ipsec whack] --name ''<name>'' --unroute and/or [wiki:IpsecStroke ipsec stroke] |
52 | 5 | Martin Willi | unroute ''<name>'' commands. |
53 | 1 | Martin Willi | |
54 | 1 | Martin Willi | '''ipsec status [ ''<name>'' ] ''' |
55 | 1 | Martin Willi | returns concise status information either on connection ''<name>'' or if the argument is lacking, |
56 | 5 | Martin Willi | on all connections. Implemented by calling the [wiki:IpsecWhack ipsec whack] [ --name ''<name>'' ] |
57 | 5 | Martin Willi | --status and/or [wiki:IpsecStroke ipsec stroke] status [ ''<name>'' ] commands. |
58 | 2 | Martin Willi | |
59 | 1 | Martin Willi | '''ipsec statusall [ ''<name>'' ] ''' |
60 | 3 | Martin Willi | returns detailed status information either on connection ''<name>'' or if the argument is lacking, |
61 | 5 | Martin Willi | on all connections. Implemented by calling the [wiki:IpsecWhack ipsec whack] [ --name ''<name>'' ] |
62 | 5 | Martin Willi | statusall and/or [wiki:IpsecStroke ipsec stroke] statusall [ ''<name>'' ] commands. |
63 | 1 | Martin Willi | |
64 | 2 | Martin Willi | == Info Commands == |
65 | 1 | Martin Willi | |
66 | 1 | Martin Willi | '''ipsec version''' |
67 | 5 | Martin Willi | returns the strongSwan version in the form of ''Linux strongSwan U4.1.7/K2.6.20-16-generic''. |
68 | 1 | Martin Willi | |
69 | 1 | Martin Willi | '''ipsec copyright''' |
70 | 5 | Martin Willi | returns the copyright information. |
71 | 2 | Martin Willi | |
72 | 5 | Martin Willi | '''ipsec --confdir''' |
73 | 2 | Martin Willi | |
74 | 2 | Martin Willi | '''ipsec --directory''' |
75 | 2 | Martin Willi | |
76 | 5 | Martin Willi | '''ipsec --help''' |
77 | 5 | Martin Willi | returns the usage information for the ipsec command. |
78 | 5 | Martin Willi | |
79 | 5 | Martin Willi | '''ipsec --versioncode''' |
80 | 5 | Martin Willi | returns the strongSwan version code in the form of ''U4.1.7/K2.6.20-16-generic''. |
81 | 5 | Martin Willi | |
82 | 1 | Martin Willi | == List Commands == |
83 | 1 | Martin Willi | |
84 | 1 | Martin Willi | '''ipsec listaacerts [ --utc ]''' |
85 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
86 | 2 | Martin Willi | |
87 | 2 | Martin Willi | '''ipsec listacerts [ --utc ]''' |
88 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
89 | 2 | Martin Willi | |
90 | 2 | Martin Willi | '''ipsec listalgs''' |
91 | 4 | Martin Willi | lists all registered IKE and ESP encryption and authentication algorithms as well as the supported |
92 | 4 | Martin Willi | Diffie-Hellman groups. Supported by the IKEv1 pluto daemon only. Implemented by calling the |
93 | 4 | Martin Willi | [wiki:IpsecWhack ipsec whack] command. |
94 | 2 | Martin Willi | |
95 | 2 | Martin Willi | '''ipsec listcacerts [ --utc ]''' |
96 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
97 | 2 | Martin Willi | |
98 | 2 | Martin Willi | '''ipsec listcainfos [ --utc ]''' |
99 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
100 | 2 | Martin Willi | |
101 | 2 | Martin Willi | '''ipsec listcards [ --utc ]''' |
102 | 4 | Martin Willi | lists all certificates found on attached smart cards. Supported by the IKEv1 pluto daemon only. |
103 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] command. |
104 | 2 | Martin Willi | |
105 | 1 | Martin Willi | '''ipsec listcrls [ --utc ]''' |
106 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
107 | 2 | Martin Willi | |
108 | 1 | Martin Willi | '''ipsec listcerts [ --utc ]''' |
109 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
110 | 1 | Martin Willi | |
111 | 2 | Martin Willi | '''ipsec listgroups [ --utc ]''' |
112 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
113 | 1 | Martin Willi | |
114 | 2 | Martin Willi | '''ipsec listocsp [ --utc ]''' |
115 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
116 | 2 | Martin Willi | |
117 | 2 | Martin Willi | '''ipsec listocspcerts [ --utc ]''' |
118 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
119 | 2 | Martin Willi | |
120 | 2 | Martin Willi | '''ipsec listpubkeys [ --utc ]''' |
121 | 4 | Martin Willi | lists the cached RSA public keys. Supported by the IKEv1 pluto daemon only. Implemented by calling the |
122 | 4 | Martin Willi | [wiki:IpsecWhack ipsec whack] command. |
123 | 2 | Martin Willi | |
124 | 1 | Martin Willi | '''ipsec listall [ --utc ]''' |
125 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
126 | 2 | Martin Willi | |
127 | 1 | Martin Willi | == Reread Commands == |
128 | 2 | Martin Willi | |
129 | 1 | Martin Willi | '''ipsec rereadaacerts''' |
130 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
131 | 2 | Martin Willi | |
132 | 1 | Martin Willi | '''ipsec rereadacerts''' |
133 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
134 | 2 | Martin Willi | |
135 | 2 | Martin Willi | '''ipsec rereadcacerts''' |
136 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
137 | 2 | Martin Willi | |
138 | 1 | Martin Willi | '''ipsec rereadcrls''' |
139 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
140 | 2 | Martin Willi | |
141 | 2 | Martin Willi | '''ipsec rereadocspcerts''' |
142 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
143 | 4 | Martin Willi | |
144 | 2 | Martin Willi | '''ipsec rereadsecrets''' |
145 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
146 | 2 | Martin Willi | |
147 | 2 | Martin Willi | '''ipsec secrets''' |
148 | 1 | Martin Willi | is equivalent to '''ipsec rereadsecrets'''. |
149 | 1 | Martin Willi | |
150 | 2 | Martin Willi | '''ipsec rereadall''' |
151 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
152 | 1 | Martin Willi | |
153 | 1 | Martin Willi | == Purge Commands == |
154 | 2 | Martin Willi | |
155 | 2 | Martin Willi | '''ipsec purgeocsp''' |
156 | 4 | Martin Willi | Implemented by calling the [wiki:IpsecWhack ipsec whack] and [wiki:IpsecStroke ipsec stroke] commands. |
157 | 2 | Martin Willi | |
158 | 2 | Martin Willi | == PKCS11 Proxy Commands == |
159 | 2 | Martin Willi | |
160 | 2 | Martin Willi | '''ipsec scencrypt''' |
161 | 4 | Martin Willi | Supported by the IKEv1 pluto daemon only. Implemented by calling the [wiki:IpsecWhack ipsec whack] |
162 | 4 | Martin Willi | command. |
163 | 2 | Martin Willi | |
164 | 1 | Martin Willi | '''ipsec scdecrypt''' |
165 | 4 | Martin Willi | Supported by the IKEv1 pluto daemon only. Implemented by calling the [wiki:IpsecWhack ipsec whack] |
166 | 4 | Martin Willi | command. |