chiark / gitweb /
Fix typos in messages.
[tripe] / doc / tripe-admin.5.in
... / ...
CommitLineData
1.\" -*-nroff-*-
2.\"
3.ie t \{\
4. if \n(.g \{\
5. fam P
6. \}
7.\}
8.
9.de SP
10.TP
11..
12.TH tripe-admin 5 "18 February 2001" "Straylight/Edgeware" "TrIPE: Trivial IP Encryption"
13.SH NAME
14tripe-admin \- administrator commands for TrIPE
15.SH DESCRIPTION
16This manual page describes the administration interface provided by the
17.BR tripe (8)
18daemon.
19.PP
20The
21.BR tripectl (8)
22program can be used either interactively or in scripts to communicate
23with the server using this interface. Alternatively, simple custom
24clients can be written in scripting languages such as Perl, Python or
25Tcl, or more advanced clients such as GUI monitors can be written in C
26with little difficulty.
27.PP
28By default, the server listens for admin connections on the Unix-domain
29socket
30.BR /var/lib/tripe/tripesock .
31Administration commands use a textual protocol. Each client command or
32server response consists of a line of ASCII text terminated by a single
33linefeed character. No command may be longer than 255 characters.
34.SS "General structure"
35Each command or response line consists of a sequence of
36whitespace-separated words. The number and nature of whitespace
37characters separating two words in a client command is not significant;
38the server always uses a single space character. The first word in a
39line is a
40.I keyword
41identifying the type of command or response contained. Keywords in
42client commands are not case-sensitive; the server always uses uppercase
43for its keywords.
44.SS "Simple commands"
45For simple client command, the server responds with zero or more
46.B INFO
47lines, followed by either an
48.B OK
49line or a
50.B FAIL
51line. Each
52.B INFO
53provides information requested in the command. An
54.B OK
55response contains no further data. A
56.B FAIL
57code is followed by a machine-readable explanation of why the command
58failed.
59.PP
60Simple command processing is strictly synchronous: the server reads a
61command, processes it, and responds, before reading the next command.
62All commands can be run as simple commands. Long-running commands
63(e.g.,
64.B ADD
65and
66.BR PING )
67block the client until they finish, but the rest of the server continues
68running.
69.SS "Asynchronous messages"
70There are three types of asynchronous messages which
71aren't associated with any particular command.
72.PP
73The
74.B WARN
75message contains a machine-readable message warning of an error
76encountered while processing a command, unexpected or unusual behaviour
77by a peer, or a possible attack by an adversary. Under normal
78conditions, the server shouldn't emit any warnings.
79.PP
80The
81.B TRACE
82message contains a human-readable tracing message containing diagnostic
83information. Trace messages are controlled using the
84.B \-T
85command-line option to the server, or the
86.B TRACE
87administration command (see below). Support for tracing can be disabled
88when the package is being configured, and may not be available in your
89version.
90.PP
91Finally, the
92.B NOTE
93message is a machine-readable notification about some routine but
94interesting event such as creation or destruction of peers.
95.PP
96The presence of asynchronous messages can be controlled using the
97.B WATCH
98command.
99.SS "Background commands"
100Some commands (e.g.,
101.B ADD
102and
103.BR PING )
104take a long time to complete. To prevent these long-running commands
105from tying up a server connection, they can be run in the background.
106Not all commands can be run like this: the ones that can provide a
107.B \-background
108option, which must be supplied with a
109.IR tag .
110.PP
111A command may fail before it starts running in the background. In this
112case, the server emits a
113.B FAIL
114response, as usual. To indicate that a command has started running in
115the background, the server emits a response of the form
116.BI "BGDETACH " tag \fR,
117where
118.I tag
119is the value passed to the
120.B \-background
121option. From this point on, the server is ready to process more
122commands and reply to them.
123.PP
124Responses to background commands are indicated by a line beginning with
125one of the tokens
126.BR BGOK ,
127.BR BGFAIL ,
128or
129.BR BGINFO ,
130followed by the command tag. These correspond to the
131.BR OK ,
132.BR FAIL ,
133and
134.B INFO
135responses for simple commands:
136.B BGINFO
137indicates information from a background command which has not completed
138yet; and
139.B BGOK
140and
141.B BGFAIL
142indicates that a background command succeeded or failed, respectively.
143.PP
144A background command will never issue an
145.B OK
146or
147.B BGINFO
148response: it will always detach and then issue any
149.B BGINFO
150lines followed by
151.B BGOK
152response.
153.SS "Network addresses"
154A network address is a sequence of words. The first is a token
155identifying the network address family. The length of an address and
156the meanings of the subsequent words depend on the address family.
157Address family tokens are not case-sensitive on input; on output, they
158are always in upper-case.
159.PP
160At present, only one address family is understood.
161.TP
162.BI "INET " address " " port
163An Internet socket, naming an IPv4 address and UDP port. On output, the
164address is always in numeric dotted-quad form, and the port is given as
165a plain number. On input, DNS hostnames and symbolic port names are
166permitted. Name resolution does not block the main server, but will
167block the requesting client, unless the command is run in the background.
168.PP
169If, on input, no recognised address family token is found, the following
170words are assumed to represent an
171.B INET
172address. Addresses output by the server always have an address family
173token.
174.SS "Key-value output"
175Some commands (e.g.,
176.B STATS
177and
178.BR SERVINFO )
179produce output in the form of
180.IB key = value
181pairs, one per word. Neither the
182.I key
183nor the
184.I value
185contain spaces.
186.SS "Trace lists"
187Commands which enable or disable kinds of output (e.g.,
188.B TRACE
189and
190.BR WATCH )
191work in similar ways. They take a single optional argument, which
192consists of a string of letters selecting message types, optionally
193interspersed with
194.RB ` + '
195to enable, or
196.RB ` \- '
197to disable, the subsequently listed types.
198.PP
199If the argument is omitted, the available message types are displayed,
200one to an
201.B INFO
202line, in a fixed-column format. Column zero contains the key letter for
203selecting that message type; column one contains either a space or a
204.RB ` + '
205sign, if the message type is disabled or enabled respectively; and a
206textual description of the message type begins at column 3 and continues
207to the end of the line.
208.PP
209Lowercase key letters control individual message types. Uppercase key
210letters control collections of message types.
211.SH "COMMAND REFERENCE"
212.\"* 10 Commands
213The commands provided are:
214.SP
215.BI "ADD " peer " \fR[" options "\fR] " address "\fR..."
216Adds a new peer. The peer is given the name
217.IR peer ;
218the peer's public key is assumed to be in the file
219.B keyring.pub
220(or whatever alternative file was specified in the
221.B \-K
222option on the command line). The
223.I address
224is the network address (see above for the format) at which the peer can
225be contacted. The following options are recognised.
226.RS
227.\"+opts
228.TP
229.BI "\-background " tag
230Run the command in the background, using the given
231.IR tag .
232.TP
233.BI "\-keepalive " time
234Send a no-op packet if we've not sent a packet to the peer in the last
235.I time
236interval. This is useful for persuading port-translating firewalls to
237believe that the `connection' is still active. The
238.I time
239is expressed as a nonnegative integer followed optionally by
240.BR d ,
241.BR h ,
242.BR m ,
243or
244.BR s
245for days, hours, minutes, or seconds respectively; if no suffix is
246given, seconds are assumed.
247.TP
248.BI "\-tunnel " tunnel
249Use the named tunnel driver, rather than the default.
250.\"-opts
251.RE
252.SP
253.BI "ADDR " peer
254Emits an
255.B INFO
256line reporting the IP address and port number stored for
257.IR peer .
258.SP
259.BI "CHECKCHAL " challenge
260Verifies a challenge as being one earlier issued by
261.B GETCHAL
262and not previously either passed to
263.B CHECKCHAL
264or in a greeting message.
265.SP
266.B "DAEMON"
267Causes the server to disassociate itself from its terminal and become a
268background task. This only works once. A warning is issued.
269.SP
270.BI "EPING \fR[" options "\fR] " peer
271Sends an encrypted ping to the peer, and expects an encrypted response.
272This checks that the peer is running (and not being impersonated), and
273that it can encrypt and decrypt packets correctly. Options and
274responses are the same as for the
275.B PING
276command.
277.SP
278.BI "FORCEKX " peer
279Requests the server to begin a new key exchange with
280.I peer
281immediately.
282.SP
283.B "GETCHAL"
284Requests a challenge. The challenge is returned in an
285.B INFO
286line, as a base64-encoded string. See
287.BR CHECKCHAL .
288.SP
289.BI "GREET " peer " " challenge
290Sends a greeting packet containing the
291.I challenge
292(base-64 encoded) to the named
293.IR peer .
294The expectation is that this will cause the peer to recognize us and
295begin a key-exchange.
296.SP
297.B "HELP"
298Causes the server to emit an
299.B INFO
300line for each command it supports. Each line lists the command name,
301followed by the names of the arguments. This may be helpful as a memory
302aid for interactive use, or for program clients probing for features.
303.SP
304.BI "IFNAME " peer
305Emits an
306.B INFO
307line containing the name of the network interface used to collect IP
308packets which are to be encrypted and sent to
309.IR peer .
310Used by configuration scripts so that they can set up routing tables
311appropriately after adding new peers.
312.SP
313.BI "KILL " peer
314Causes the server to forget all about
315.IR peer .
316All keys are destroyed, and no more packets are sent. No notification
317is sent to the peer: if it's important that the peer be notified, you
318must think of a way to do that yourself.
319.SP
320.B "LIST"
321For each currently-known peer, an
322.B INFO
323line is written containing the peer's name, as given to
324.BR ADD .
325.SP
326.BI "NOTIFY " tokens\fR...
327Issues a
328.B USER
329notification to all interested administration clients.
330.SP
331.BI "PEERINFO " peer
332Returns information about a peer, in key-value form. The following keys
333are returned.
334.RS
335.TP
336.B tunnel
337The tunnel driver used for this peer.
338.TP
339.B keepalive
340The keepalive interval, in seconds, or zero if no keepalives are to be
341sent.
342.RE
343.SP
344.BI "PING \fR[" options "\fR] " peer
345Send a transport-level ping to the peer. The ping and its response are
346not encrypted or authenticated. This command, possibly in conjunction
347with tracing, is useful for ensuring that UDP packets are actually
348flowing in both directions. See also the
349.B EPING
350command.
351.IP
352An
353.B INFO
354line is printed describing the outcome:
355.RS
356.TP
357.BI "ping-ok " millis
358A response was received
359.I millis
360after the ping was sent.
361.TP
362.BI "ping-timeout"
363No response was received within the time allowed.
364.TP
365.BI "ping-peer-died"
366The peer was killed (probably by another admin connection) before a
367response was received.
368.RE
369.IP
370Options recognized for this command are:
371.RS
372.\"+opts
373.TP
374.BI "\-background " tag
375Run the command in the background, using the given
376.IR tag .
377.TP
378.BI "\-timeout " time
379Wait for
380.I time
381seconds before giving up on a response. The default is 5 seconds. The
382.I time
383is expressed as a nonnegative integer followed optionally by
384.BR d ,
385.BR h ,
386.BR m ,
387or
388.BR s
389for days, hours, minutes, or seconds respectively; if no suffix is
390given, seconds are assumed.
391.\"-opts
392.RE
393.SP
394.B "PORT"
395Emits an
396.B INFO
397line containing just the number of the UDP port used by the
398.B tripe
399server. If you've allowed your server to allocate a port dynamically,
400this is how to find out which one it chose.
401.SP
402.B "RELOAD"
403Instructs the server to recheck its keyring files. The server checks
404these periodically anyway but it may be necessary to force a recheck,
405for example after adding a new peer key.
406.SP
407.B "QUIT"
408Instructs the server to exit immediately. A warning is sent.
409.SP
410.B "SERVINFO"
411Returns information about the server, in the form of key-value pairs.
412The following keys are used.
413.RS
414.TP
415.B implementation
416A keyword naming the implementation of the
417.BR tripe (8)
418server. The current implementation is called
419.BR edgeware-tripe .
420.TP
421.B version
422The server's version number, as reported by
423.BR VERSION .
424.TP
425.B daemon
426Either
427.B t
428or
429.BR nil ,
430if the server has or hasn't (respectively) become a daemon.
431.RE
432.SP
433.BI "SETIFNAME " peer " " new-name
434Informs the server that the
435.IR peer 's
436tunnel-interface name has been changed to
437.IR new-name .
438This is useful if firewalling decisions are made based on interface
439names: a setup script for a particular peer can change the name, and
440then update the server's records so that they're accurate.
441.SP
442.BI "STATS " peer
443Emits a number of
444.B INFO
445lines, each containing one or more statistics in the form
446.IB name = value \fR.
447The statistics-gathering is experimental and subject to change.
448.SP
449.BR "TRACE " [\fIoptions\fP]
450Selects trace outputs: see
451.B "Trace lists"
452above. Message types provided are:
453.RS
454.PP
455Currently, the following tracing options are supported:
456.TP
457.B t
458Tunnel events: reception of packets to be encrypted, and injection of
459successfully-decrypted packets.
460.TP
461.B r
462Peer management events: creation and destruction of peer attachments,
463and arrival of messages.
464.TP
465.B a
466Administration interface: acceptance of new connections, and handling of
467the backgroud name-resolution required by the
468.B ADD
469command.
470.TP
471.B s
472Handling of symmetric keysets: creation and expiry of keysets, and
473encryption and decryption of messages.
474.TP
475.B x
476Key exchange: reception, parsing and emission of key exchange messages.
477.TP
478.B m
479Key management: loading keys and checking for file modifications.
480.TP
481.B l
482Display information about challenge issuing and verification.
483.TP
484.B p
485Display contents of packets sent and received by the tunnel and/or peer
486modules.
487.TP
488.B c
489Display inputs, outputs and intermediate results of cryptographic
490operations. This includes plaintext and key material. Use with
491caution.
492.TP
493.B A
494All of the above.
495.PP
496Note that the
497.B p
498(packet contents)
499and
500.B c
501(crypto details)
502outputs provide extra detail for other outputs. Specifying
503.B p
504without
505.BR r
506or
507.B t
508isn't useful; neither is specifying
509.B c
510without one of
511.BR s ,
512.BR l ,
513.B x
514or
515.BR m .
516.RE
517.SP
518.B "TUNNELS"
519For each available tunnel driver, an
520.B INFO
521line is printed giving its name.
522.SP
523.B "VERSION"
524Causes the server to emit an
525.B INFO
526line stating its software version, as two words: the server name, and
527its version string. The server name
528.B tripe
529is reserved to the Straylight/Edgeware implementation.
530.SP
531.BR "WATCH " [\fIoptions\fP]
532Enables or disables asynchronous messages
533.IR "for the current connection only" .
534See
535.B "Trace lists"
536above. The default watch state for the connection the server opens
537automatically on stdin/stdout is to show warnings and trace messages;
538other connections show no asynchronous messages. (This is done in order
539to guarantee that a program reading the server's stdout does not miss
540any warnings.)
541.RS
542.PP
543Message types provided are:
544.TP
545.B t
546.B TRACE
547messages.
548.TP
549.B n
550.B NOTE
551messages.
552.TP
553.B w
554.B WARN
555messages.
556.TP
557.B A
558All of the above.
559.RE
560.SP
561.BI "WARN " tokens\fR...
562Issues a
563.B USER
564warning to all interested administration clients.
565.SH "ERROR MESSAGES"
566.\"* 20 Error messages (FAIL codes)
567The following
568.B FAIL
569(or
570.BR BGFAIL )
571messages are sent to clients as a result of errors during command
572processing.
573.SP
574.BI "already-daemon"
575(For
576.BR DAEMON .)
577The
578.B tripe
579server is already running as a daemon.
580.SP
581.BI "bad-addr-syntax " message
582(For commands accepting socket addresses.) The address couldn't be
583understood.
584.SP
585.BI "bad-syntax " cmd " " message
586(For any command.) The command couldn't be understood: e.g., the number
587of arguments was wrong.
588.SP
589.BI "bad-time-spec " word
590The
591.I word
592is not a valid time interval specification. Acceptable time
593specifications are nonnegative integers followed optionally by
594.BR d ,
595.BR h ,
596.BR m ,
597or
598.BR s ,
599for days, hours, minutes, or seconds, respectively.
600.SP
601.BI "bad-trace-option " char
602(For
603.BR TRACE .)
604An unknown trace option was requested.
605.SP
606.BI "bad-watch-option " char
607(For
608.BR WATCH .)
609An unknown watch option was requested.
610.SP
611.BI "daemon-error " ecode " " message
612(For
613.BR DAEMON .)
614An error occurred during the attempt to become a daemon, as reported by
615.IR message .
616.SP
617.BI "invalid-port " number
618(For
619.BR ADD .)
620The given port number is out of range.
621.SP
622.BI "peer-create-fail " peer
623(For
624.BR ADD .)
625Adding
626.I peer
627failed for some reason. A warning should have been emitted explaining
628why.
629.SP
630.BI "peer-exists " peer
631(For
632.BR ADD .)
633There is already a peer named
634.IR peer .
635.SP
636.B "ping-send-failed"
637The attempt to send a ping packet failed, probably due to lack of
638encryption keys.
639.SP
640.BI "resolve-error " hostname
641(For
642.BR ADD .)
643The DNS name
644.I hostname
645could not be resolved.
646.SP
647.BI "resolver-timeout " hostname
648(For
649.BR ADD .)
650The DNS name
651.I hostname
652took too long to resolve.
653.SP
654.BI "unknown-command " token
655The command
656.B token
657was not recognised.
658.SP
659.BI "unknown-peer " name
660(For
661.BR ADDR ,
662.BR IFNAME ,
663.BR KILL ,
664.BR SETIFNAME ,
665and
666.BR STATS .)
667There is no peer called
668.IR name .
669.SP
670.BI "unknown-service " service
671(For
672.BR ADD .)
673The service name
674.I service
675couldn't be found in
676.BR /etc/services .
677.SH "NOTIFICATIONS"
678.\"* 30 Notification broadcasts (NOTE codes)
679The following notifications are sent to clients who request them.
680.SP
681.BI "ADD " peer " " ifname " " address \fR...
682A new peer has been added. The peer's name is
683.IR peer ,
684its tunnel is network interface
685.IR ifname ,
686and its network address is
687.IR address .
688.SP
689.BI "DAEMON"
690The server has forked off into the sunset and become a daemon.
691.SP
692.BI "GREET " challenge " " address \fR...
693A valid greeting was received, with the given challenge (exactly as it
694was returned by
695.B GETCHAL
696earlier).
697.SP
698.BI "KILL " peer
699The peer
700.I peer
701has been killed.
702.SP
703.BI "KXDONE " peer
704Key exchange with
705.I peer
706finished successfully.
707.SP
708.BI "KXSTART " peer
709Key exchange with
710.I peer
711has begun or restarted. If key exchange keeps failing, this message
712will be repeated periodically.
713.SP
714.BI "NEWIFNAME " peer " " old-name " " new-name
715The given
716.IR peer 's
717tunnel interface name has been changed from
718.I old-name
719to
720.IR new-name ,
721as a result of a
722.B SETIFNAME
723command.
724.SP
725.BI "USER " tokens\fR...
726An administration client issued a notification using the
727.B NOTIFY
728command.
729.SH "WARNINGS"
730.\"* 40 Warning broadcasts (WARN codes)
731.\"+sep
732There are many possible warnings. They are categorized according to
733their first tokens.
734.PP
735Many of these warnings report system errors. These are reported as a
736pair of tokens, described below as
737.I ecode
738and
739.IR message .
740The
741.I ecode
742is a string of the form
743.BI E number
744giving the
745.BR errno (3)
746value of the error; the
747.I message
748is the `human-readable' form of the message, as reported by
749.BR strerror (3).
750.SS "ABORT warnings"
751These all indicate that the
752.B tripe
753server has become unable to continue. If enabled, the server will dump
754core in its configuration directory.
755.SP
756.BI "ABORT repeated-select-errors"
757The main event loop is repeatedly failing. If the server doesn't quit,
758it will probably waste all available CPU doing nothing.
759.SS "ADMIN warnings"
760These indicate a problem with the administration socket interface.
761.SP
762.BI "ADMIN accept-error " ecode " " message
763There was an error while attempting to accept a connection from a new
764client.
765.SP
766.BI "ADMIN client-write-error " ecode " " message
767There was an error sending data to a client. The connection to the
768client has been closed.
769.SS "CHAL warnings"
770These indicate errors in challenges, either in the
771.B CHECKCHAL
772command or in greeting packets.
773.SP
774.B "CHAL impossible-challenge"
775The server hasn't issued any challenges yet. Quite how anyone else
776thought he could make one up is hard to imagine.
777.SP
778.B "CHAL incorrect-tag"
779Challenge received contained the wrong authentication data. It might be
780very stale, or a forgery.
781.SP
782.B "CHAL invalid-challenge"
783Challenge received was the wrong length. We might have changed MAC
784algorithms since the challenge was issued, or it might just be rubbish.
785.SP
786.B "CHAL replay duplicated-sequence"
787Challenge received was a definite replay of an old challenge. Someone's
788up to something!
789.SP
790.B "CHAL replay old-sequence"
791Challenge received was old, but maybe not actually a replay. Try again.
792.SS "KEYMGMT warnings"
793These indicate a problem with the keyring files, or the keys stored in
794them.
795.SP
796.BI "KEYMGMT bad-private-key " message
797The private key could not be read, or failed a consistency check. If
798there was a problem with the file, usually there will have been
799.B key-file-error
800warnings before this.
801.SP
802.BI "KEYMGMT bad-public-keyring " message
803The public keyring couldn't be read. Usually, there will have been
804.B key-file-error
805warnings before this.
806.SP
807.BI "KEYMGMT key-file-error " file ":" line " " message
808Reports a specific error with the named keyring file. This probably
809indicates a bug in
810.BR key (1).
811.SP
812.BI "KEYMGMT public-key " tag " " tokens\fR...
813These messages all indicate a problem with the public key named
814.IR tag .
815.SP
816.BI "KEYMGMT public-key " tag " algorithm-mismatch"
817The algorithms specified on the public key don't match the ones for our
818private key. All the peers in a network have to use the same
819algorithms.
820.SP
821.BI "KEYMGMT public-key " tag " bad " message
822The public key couldn't be read, or is invalid.
823.SP
824.BI "KEYMGMT public-key " tag " bad-public-group-element"
825The public key is invalid. This may indicate a malicious attempt to
826introduce a bogus key.
827.SP
828.BI "KEYMGMT public-key " tag " bad-algorithm-selection"
829The algorithms listed on the public key couldn't be understood. The
830algorithm selection attributes are probably malformed and need fixing.
831.SP
832.BI "KEYMGMT public-key " tag " incorrect-group"
833The public key doesn't use the same group as our private key. All the
834peers in a network have to use the same group.
835.SP
836.BI "KEYMGMT public-key " tag " not-found"
837The public key for peer
838.I tag
839wasn't in the public keyring.
840.SP
841.BI "KEYMGMT public-key " tag " unknown-type"
842The type of the public key isn't understood. Maybe you need to upgrade
843your copy of
844.BR tripe .
845(Even if you do, you'll have to regenerate your keys.)
846.SS "KX warnings"
847These indicate problems during key-exchange. Many indicate either a bug
848in the server (either yours or the remote one), or some kind of attack
849in progress. All name a
850.I peer
851as the second token: this is the peer the packet is apparently from,
852though it may have been sent by an attacker instead.
853.PP
854In the descriptions below,
855.I msgtoken
856is one of the tokens
857.BR pre-challenge ,
858.BR cookie ,
859.BR challenge ,
860.BR reply ,
861.BR switch-rq ,
862or
863.BR switch-ok .
864.SP
865.BI "KX " peer " bad-expected-reply-log"
866The challenges
867.B tripe
868uses in its protocol contain a check value which proves that the
869challenge is honest. This message indicates that the check value
870supplied is wrong: someone is attempting to use bogus challenges to
871persuade your
872.B tripe
873server to leak private key information. No chance!
874.SP
875.BI "KX " peer " decrypt-failed reply\fR|\fBswitch-ok"
876A symmetrically-encrypted portion of a key-exchange message failed to
877decrypt.
878.SP
879.BI "KX " peer " invalid " msgtoken
880A key-exchange message was malformed. This almost certainly indicates a
881bug somewhere.
882.SP
883.BI "KX " peer " incorrect cookie\fR|\fBswitch-rq\fR|\fBswitch-ok"
884A message didn't contain the right magic data. This may be a replay of
885some old exchange, or random packets being sent in an attempt to waste
886CPU.
887.SP
888.BI "KX " peer " public-key-expired"
889The peer's public key has expired. It's maintainer should have given
890you a replacement before now.
891.SP
892.BI "KX " peer " sending-cookie"
893We've received too many bogus pre-challenge messages. Someone is trying
894to flood us with key-exchange messages and make us waste CPU on doing
895hard asymmetric crypto sums.
896.SP
897.BI "KX " peer " unexpected " msgtoken
898The message received wasn't appropriate for this stage of the key
899exchange process. This may mean that one of our previous packets got
900lost. For
901.BR pre-challenge ,
902it may simply mean that the peer has recently restarted.
903.SP
904.BI "KX " peer " unknown-challenge"
905The peer is asking for an answer to a challenge which we don't know
906about. This may mean that we've been inundated with challenges from
907some malicious source
908.I who can read our messages
909and discarded the valid one.
910.SP
911.BI "KX " peer " unknown-message 0x" nn
912An unknown key-exchange message arrived.
913.SS "PEER warnings"
914These are largely concerned with management of peers and the low-level
915details of the network protocol. The second word is usually the name of
916a peer, or
917.RB ` \- '
918if none is relevant.
919.SP
920.BI "PEER " peer " bad-packet no-type"
921An empty packet arrived. This is very strange.
922.SP
923.BI "PEER " peer " bad-packet unknown-category 0x" nn
924The message category
925.I nn
926(in hex) isn't understood. Probably a strange random packet from
927somewhere; could be an unlikely bug.
928.SP
929.BI "PEER " peer " bad-packet unknown-type 0x" nn
930The message type
931.I nn
932(in hex) isn't understood. Probably a strange random packet from
933somewhere; could be an unlikely bug.
934.SP
935.BI "PEER " peer " corrupt-encrypted-ping"
936The peer sent a ping response which matches an outstanding ping, but its
937payload is wrong. There's definitely a bug somewhere.
938.SP
939.BI "PEER " peer " corrupt-transport-ping"
940The peer (apparently) sent a ping response which matches an outstanding
941ping, but its payload is wrong. Either there's a bug, or the bad guys
942are playing tricks on you.
943.SP
944.BI "PEER " peer " decrypt-failed"
945An encrypted IP packet failed to decrypt. It may have been mangled in
946transit, or may be a very old packet from an expired previous session
947key. There is usually a considerable overlap in the validity periods of
948successive session keys, so this shouldn't occur unless the key exchange
949takes ages or fails.
950.SP
951.BI "PEER " peer " malformed-encrypted-ping"
952The peer sent a ping response which is hopelessly invalid. There's
953definitely a bug somewhere.
954.SP
955.BI "PEER " peer " malformed-transport-ping"
956The peer (apparently) sent a ping response which is hopelessly invalid.
957Either there's a bug, or the bad guys are playing tricks on you.
958.SP
959.BI "PEER " peer " packet-build-failed"
960There wasn't enough space in our buffer to put the packet we wanted to
961send. Shouldn't happen.
962.SP
963.BI "PEER \- socket-read-error " ecode " " message
964An error occurred trying to read an incoming packet.
965.SP
966.BI "PEER " peer " socket-write-error " ecode " " message
967An error occurred attempting to send a network packet. We lost that
968one.
969.SP
970.BI "PEER " peer " unexpected-encrypted-ping 0x" id
971The peer sent an encrypted ping response whose id doesn't match any
972outstanding ping. Maybe it was delayed for longer than the server was
973willing to wait, or maybe the peer has gone mad.
974.SP
975.BI "PEER \- unexpected-source " address\fR...
976A packet arrived from
977.I address
978(a network address \(en see above), but no peer is known at that
979address. This may indicate a misconfiguration, or simply be a result of
980one end of a connection being set up before the other.
981.SP
982.BI "PEER " peer " unexpected-transport-ping 0x" id
983The peer (apparently) sent a transport ping response whose id doesn't
984match any outstanding ping. Maybe it was delayed for longer than the
985server was willing to wait, or maybe the peer has gone mad; or maybe
986there are bad people trying to confuse you.
987.SS "SERVER warnings"
988These indicate problems concerning the server process as a whole.
989.SP
990.BI "SERVER ignore signal " name
991A signal arrived, but the server ignored it. Currently this happens for
992.B SIGHUP
993because that's a popular way of telling daemons to re-read their
994configuration files. Since
995.B tripe
996re-reads its keyrings automatically and has no other configuration
997files, it's not relevant, but it seemed better to ignore the signal than
998let the server die.
999.SP
1000.BI "SERVER quit signal " \fR[\fInn\fR|\fIname\fR]
1001A signal arrived and
1002.B tripe
1003is going to quit.
1004.SP
1005.BI "SERVER quit admin-request"
1006A client of the administration interface issued a
1007.B QUIT
1008command.
1009.SP
1010.BI "SERVER select-error " ecode " " message
1011An error occurred in the server's main event loop. This is bad: if it
1012happens too many times, the server will abort.
1013.SS "SYMM warnings"
1014These are concerned with the symmetric encryption and decryption
1015process.
1016.SP
1017.BI "SYMM replay old-sequence"
1018A packet was received with an old sequence number. It may just have
1019been delayed or duplicated, or it may have been an attempt at a replay
1020attack.
1021.SP
1022.BI "SYMM replay duplicated-sequence"
1023A packet was received with a sequence number we've definitely seen
1024before. It may be an accidental duplication because the 'net is like
1025that, or a deliberate attempt at a replay.
1026.SS "TUN warnings"
1027These concern the workings of the system-specific tunnel driver. The
1028second word is the name of the tunnel interface in question, or
1029.RB ` \- '
1030if none.
1031.SP
1032.BI "TUN \- bsd no-tunnel-devices"
1033The driver couldn't find an available tunnel device. Maybe if you
1034create some more
1035.BI /dev/tun nn
1036files, it will work.
1037.SP
1038.BI "TUN - " tun-name " open-error " device " " ecode " " message
1039An attempt to open the tunnel device file
1040.I device
1041failed.
1042.SP
1043.BI "TUN \- linux config-error " ecode " " message
1044Configuring the Linux TUN/TAP interface failed.
1045.SP
1046.BI "TUN " ifname " " tun-name " read-error " ecode " " message
1047Reading from the tunnel device failed.
1048.SP
1049.BI "TUN " ifname " slip bad-escape"
1050The SLIP driver encountered a escaped byte it wasn't expecting to see.
1051The erroneous packet will be ignored.
1052.SP
1053.BI "TUN " ifname " slip eof"
1054The SLIP driver encountered end-of-file on its input descriptor.
1055Pending data is discarded, and no attempt is made to read any more data
1056from that interface ever.
1057.SP
1058.BI "TUN " ifname " slip escape-end"
1059The SLIP driver encountered an escaped `end' marker. This probably
1060means that someone's been sending it junk. The erroneous packet is
1061discarded, and we hope that we've rediscovered synchronization.
1062.SP
1063.BI "TUN \- slip fork-error " ecode " " message
1064The SLIP driver encountered an error forking a child process while
1065allocating a new dynamic interface.
1066.SP
1067.BI "TUN \- slip no-slip-interfaces"
1068The driver ran out of static SLIP interfaces. Either preallocate more,
1069or use dynamic SLIP interface allocation.
1070.SP
1071.BI "TUN " ifname " slip overflow"
1072The SLIP driver gave up reading a packet because it got too large.
1073.SP
1074.BI "TUN \- slip pipe-error " ecode " " message
1075The SLIP driver encountered an error creating pipes while allocating a
1076new dynamic interface.
1077.SP
1078.BI "TUN \- slip read-ifname-failed " ecode " " message
1079The SLIP driver encountered an error reading the name of a dynamically
1080allocated interface. Maybe the allocation script is broken.
1081.SP
1082.BI "TUN \- unet config-error " ecode " " message
1083Configuring the Linux Unet interface failed. Unet is obsolete and
1084shouldn't be used any more.
1085.SP
1086.BI "TUN \- unet getinfo-error " ecode " " message
1087Reading information about the Unet interface failed. Unet is obsolete
1088and shouldn't be used any more.
1089.SP
1090.BI "TUN \- unet ifname-too-long"
1091The Unet interface's name overflowed, so we couldn't read it properly.
1092Unet is obsolete and shouldn't be used any more.
1093.SS "USER warnings"
1094These are issued by administration clients using the
1095.B WARN
1096command.
1097.SP
1098.BI "USER " tokens\fR...
1099An administration client issued a warning.
1100.\"-sep
1101.SH "SUMMARY"
1102.SS "Command responses"
1103.nf
1104.BI "BGDETACH " tag
1105.BI "BGFAIL " tag " " tokens \fR...
1106.BI "BGINFO " tag " " tokens \fR...
1107.BI "BGOK " tag
1108.BI "FAIL " tokens \fR...
1109.BI "INFO " tokens \fR...
1110.B OK
1111.fi
1112.\"= summary
1113.SH "SEE ALSO"
1114.BR tripectl (1),
1115.BR tripe (8).
1116.PP
1117.IR "The Trivial IP Encryption Protocol" .
1118.SH "AUTHOR"
1119Mark Wooding, <mdw@distorted.org.uk>