4 See also this page @ref{Новости, on russian}.
11 @command{nncp-daemon}, @command{nncp-call} and @command{nncp-caller}
12 commands wait for all background checksummers completion after
13 connection is finished.
18 @section Release 6.5.0
22 Fixed segfault in @command{nncp-daemon} when SP handshake did not succeed.
25 Fixed possible bad return code ignoring in automatic tosser.
28 Fixed race during file descriptors closing when online protocol call is
29 finished, that could lead to write error of received packet fragment.
32 Kill all packet transmission progress bars in @command{nncp-daemon},
33 @command{nncp-call} and @command{nncp-caller} when call is finished.
38 @section Release 6.4.0
42 Fixed possible race in online protocol, that lead to panic.
47 @section Release 6.3.0
51 Fixed possible panic while showing progress during online protocol.
56 @section Release 6.2.1
60 Three places in logs contained excess @code{%s}.
65 @section Release 6.2.0
69 Returned @command{nncp-caller}'s @option{-autotoss*} options workability.
72 Yet another logging refactoring and simplification.
73 Should be no visible differences to the end user.
78 @section Release 6.1.0
82 Optimization: most commands do not keep opened file descriptors now.
83 Previously you can exceed maximal number of opened files if you have got
84 many packets in the spool directory.
87 Optimization: do not close file descriptor of the file we download
88 online. Previously each chunk lead to expensive open/close calls.
91 Online downloaded files are saved with @file{.nock} (non-checksummed)
92 suffix, waiting either for @command{nncp-check}, or online daemons to
93 perform integrity check.
96 Optimization: files, that are not resumed, are checksummed immediately
97 during the online download, skipping @file{.nock}-intermediate step.
100 Ability to store encrypted packet's header in @file{.hdr} file, close to
101 the packet itself. That can greatly increase performance of packets
102 listing on filesystems with big block's size.
107 @section Release 6.0.0
111 Log uses human readable and easy machine parseable
112 @url{https://www.gnu.org/software/recutils/, recfile} format for the
113 records, instead of structured RFC 3339 lines. Old logs are not readable
114 by @command{nncp-log} anymore.
117 @option{-autotoss*} option workability with @command{nncp-daemon}'s
118 @option{-inetd} mode.
121 Call's @option{when-tx-exists} allows to make a call only when outbound
122 packets exists. Combined with seconds-aware cron expression that can be
123 used as some kind of auto dialler.
126 @command{nncp-cronexpr} command allows you to check validity and
127 expectations of specified cron expression.
132 @section Release 5.6.0
136 @option{-autotoss*} option runs tosser not after the call, but every
137 second while it is active.
140 @option{autotoss}, @option{autotoss-doseen},
141 @option{autotoss-nofile}, @option{autotoss-nofreq},
142 @option{autotoss-noexec}, @option{autotoss-notrns} options available in
143 @option{calls} configuration section. You can configure per-call
144 automatic tosser options.
147 Use vendoring, instead of @env{GOPATH} overriding during tarball
148 installation, because current minimal Go's version is 1.12 and it
154 @section Release 5.5.1
158 Respect for @env{BINDIR}, @env{INFODIR} and @env{DOCDIR} environment
159 variables in @file{config} during installation.
164 @section Release 5.5.0
168 Bugfixes in @command{nncp-call(er)}/@command{nncp-daemon},
169 @command{nncp-bundle} and @command{nncp-stat}.
172 @command{nncp-rm} has @option{-dryrun} and @option{-older} options now.
175 @command{nncp-exec} has @option{-use-tmp} and @option{-nocompress}
176 options now. Uncompressed packets are not compatible with previous NNCP
180 @command{nncp-call}, @command{nncp-caller} and @command{nncp-daemon} commands
181 have @option{-autotoss*} options for running tosser after call is ended.
184 Updated dependencies. Minimal required Go version is 1.12.
189 @section Release 5.4.1
193 Fixed @code{SENDMAIL} variable usage during the build.
198 @section Release 5.4.0
202 Updated dependencies.
205 Build system is moved from Makefiles to @url{http://cr.yp.to/redo.html, redo}.
206 This should not influence package maintainers, because minimal @command{redo}
207 implementation is included in tarball.
212 @section Release 5.3.3
216 More various error checks.
219 Updated dependencies.
224 @section Release 5.3.2
228 Fixed incorrect logic of @option{onlinedeadline} timeout, where
229 connection won't take into account incoming packets events and will
230 forcefully disconnect.
235 @section Release 5.3.1
239 Fixed @option{onlinedeadline} workability with call addresses that use
240 external commands (@verb{#"|somecmd"#}).
243 @command{nncp-stat} has @option{-pkt} option displaying information
244 about each packet in the spool.
249 @section Release 5.3.0
253 Progress messages contain prefix, describing the running action.
256 Fixed not occurring handshake messages padding.
259 Finish all SP protocol related goroutines, less memory leak.
262 SP protocol generates less socket write calls, thus generating less TCP
266 Check @option{onlinedeadline} and @option{maxonlinetime} options every
267 second, independently from socket reads (up to 10 seconds).
270 Once per minute, if no other traffic exists, PING packets are sent in
271 SP-connection. That allows faster determining of connection unworkability.
274 @command{nncp-toss} uses lock-file to prevent simultaneous tossing.
279 @section Release 5.2.1
283 Fixed SP protocol error handling, sometimes causing program panic.
288 @section Release 5.2.0
292 Most commands by default show oneline operations progress.
293 @option{-progress}, @option{-noprogress} command line options,
294 @option{noprogress} configuration file option appeared.
297 Fixed incorrect @command{nncp-check} command return code, that returned
298 bad code when everything is good.
301 Free disk space check during @command{nncp-bundle -rx} call.
306 @section Release 5.1.2
310 @strong{Critical} vulnerability: remote peers authentication could lead
311 to incorrect identification of remote side, allowing foreign encrypted
315 Bugfix: private and public Noise keys were swapped in newly created
316 configuration files, that lead to inability to authenticate online peers.
319 Explicit directories fsync-ing for guaranteed files renaming.
324 @section Release 5.1.1
328 Fixed workability of @command{nncp-file} with @option{-chunked 0} option.
333 @section Release 5.1.0
337 @command{nncp-file} can send directories, automatically creating pax
341 Free disk space is checked during outbound packets creation.
344 @option{freq}, @option{freqminsize}, @option{freqchunked} configuration
345 file options replaced with the structure:
346 @option{freq: @{path: ..., minsize: ..., chunked: ...@}}.
349 Added @option{freq.maxsize} configuration file option, forbidding of
350 freq sending larger than specified size.
353 Ability to notify about successfully executed commands (exec) with
354 @option{notify.exec} configuration file option.
359 @section Release 5.0.0
363 @strong{Incompatible} configuration file format change: YAML is
364 replaced with Hjson, due to its simplicity, without noticeable lack
365 of either functionality or convenience.
368 @strong{Incompatible} plain packet format changes. Older versions are
369 not supported. @code{zlib} compression is replaced with
370 @code{Zstandard}, due to its speed and efficiency, despite library
371 version is not mature enough.
374 Ability to call remote nodes via pipe call of external command, not only
378 @command{nncp-cfgnew} generates configuration file with many
379 comments. @option{-nocomments} option can be used for an old
383 Duplicate filenames have @file{.CTR} suffix, instead of @file{CTR}, to
384 avoid possible collisions with @file{.nncp.chunkCTR}.
387 Ability to override process umask through configuration file option.
390 Files and directories are created with 666/777 permissions by default,
391 allowing control with @command{umask}.
394 Updated dependencies.
397 Full usage of go modules for dependencies management
398 (@code{go.cypherpunks.ru/nncp/v5} namespace is used).
401 Forbid any later GNU GPL version autousage
402 (project's licence now is GNU GPLv3-only).
409 @item Workability on GNU/Linux systems and Go 1.10 is fixed.
417 @strong{Incompatible} encrypted and eblob packet format change: AEAD
418 encryption mode with 128 KiB blocks is used now, because previously
419 @command{nncp-toss} did not verify encrypted packet's MAC before feeding
420 decrypted data to external command. Older versions are not supported.
423 Available free space checking before copying in @command{nncp-xfer},
424 @command{nncp-daemon}, @command{nncp-call(er)}.
427 @command{nncp-call} has ability only to list packets on remote node,
428 without their transmission.
431 @command{nncp-call} has ability to transfer only specified packets.
434 Workability of @option{xxrate} preference in @option{calls}
435 configuration file section.
438 Dependant libraries are updated.
444 Begin using of @code{go.mod} subsystem.
451 @item @command{nncp-daemon} can be run as @command{inetd}-service.
459 @command{nncp-daemon}, @command{nncp-call}, @command{nncp-caller} check
460 if @file{.seen} exists and treat it like file was already downloaded.
461 Possibly it was transferred out-of-bound and remote side needs to be
465 If higher priority packet is spooled, then @command{nncp-daemon} will
466 queue its sending first, interrupting lower priority transmissions.
469 Simple packet rate limiter added to online-related tools
470 (@command{nncp-daemon}, @command{nncp-call}, @command{nncp-caller}).
473 Ability to specify niceness with symbolic notation:
474 @verb{|NORMAL|}, @verb{|BULK+10|}, @verb{|PRIORITY-5|}, etc.
477 Changed default niceness levels:
478 for @command{nncp-exec} from 64 to 96,
479 for @command{nncp-freq} from 64 to 160,
480 for @command{nncp-file} from 196 to 224.
488 @strong{Incompatible} @emph{bundle} archive format changes and
489 @command{nncp-bundle} workability with Go 1.10+. Bundles must be
490 valid tar archives, but Go 1.9 made them invalid because of long paths
491 inside. NNCP accidentally was dependant on that bug. Explicit adding of
492 @file{NNCP/} directory in archive restores workability with valid tar
500 Ability to disable relaying at all using @verb{|-via -|} command line option.
508 @strong{Incompatible} plain packet format changes. Older versions are
512 Ability to queue remote command execution, by configuring @option{exec}
513 option in configuration file and using @command{nncp-exec} command:
516 @command{nncp-mail} command is replaced with more flexible
517 @command{nncp-exec}. Instead of @verb{|nncp-mail NODE RECIPIENT|}
518 you must use @verb{|nncp-exec NODE sendmail RECIPIENT|}.
520 @option{sendmail} configuration file option is replaced with
521 @option{exec}. @verb{|sendmail: [...]|} must be replaced with
522 @verb{|exec: sendmail: [...]|}.
526 Ability to override @option{via} configuration option for destination
527 node via @option{-via} command line option for following commands:
528 @command{nncp-file}, @command{nncp-freq}, @command{nncp-exec}.
531 Chunked files, having size less than specified chunk size, will be sent
532 as an ordinary single file.
535 Exec commands are invoked with additional @env{NNCP_NICE} and
536 @env{NNCP_SELF} environment variables.
539 Files, that are sent as a reply to freq, have niceness level taken from
540 the freq packet. You can set desired niceness during @command{nncp-freq}
541 invocation using @option{-replynice} option.
544 @command{nncp-toss} command can ignore specified packet types during
545 processing: @option{-nofile}, @option{-nofreq}, @option{-noexec},
549 @command{nncp-file} command uses
550 @option{FreqMinSize}/@option{FreqChunked} configuration file options
551 for @option{-minsize}/@option{-chunked} by default. You can turn this
552 off by specifying zero value.
561 @strong{Incompatible} encrypted/eblob packet format changes. Older
562 versions are not supported.
565 Twofish encryption algorithm is replaced with ChaCha20. It is much more
566 faster. One cryptographic primitive less.
569 HKDF-BLAKE2b-256 KDF algorithm is replaced with BLAKE2Xb XOF. Yet
570 another cryptographic primitive less (assuming that BLAKE2X is nearly
571 identical to BLAKE2).
580 @strong{Incompatible} encrypted packet format changes. Older versions
584 @command{nncp-bundle} command can either create stream of encrypted
585 packets, or digest it. It is useful when dealing with
586 @code{stdin}/@code{stdout} based transmission methods (like writing to
587 CD-ROM without intermediate prepared ISO image and working with tape
591 @command{nncp-toss} is able to create @file{.seen} files preventing
592 duplicate packets receiving.
595 Single background checksum verifier worker is allowed in
596 @command{nncp-call}. This is helpful when thousands of small inbound
597 packets could create many goroutines.
600 Ability to override path to spool directory and logfile through either
601 command line argument, or environment variable.
604 @command{nncp-rm} is able to delete outbound/inbound, @file{.seen},
605 @file{.part}, @file{.lock} and temporary files.
610 @section Release 0.12
612 @item Sendmail command is called with @env{NNCP_SENDER} environment variable.
616 @section Release 0.11
618 @item @command{nncp-stat}'s command output is sorted by node name.
622 @section Release 0.10
625 @command{nncp-freq}'s @file{DST} argument is optional now. Last
626 @file{SRC} path's element will be used by default.
633 Fix @option{-rx}/@option{-tx} arguments processing in
634 @command{nncp-call} command. They were ignored.
641 Little bugfix in @command{nncp-file} command, where @option{-minsize}
642 option for unchunked transfer was not in KiBs, but in bytes.
650 Ability to feed @command{nncp-file} from @code{stdin}, that uses an
651 encrypted temporary file for that.
654 Chunked files transmission appeared with corresponding
655 @command{nncp-reass} command and @option{freqchunked} configuration file
656 entry. Useful for transferring big files over small storage devices.
659 @option{freqminsize} configuration file option, analogue to
660 @option{-minsize} one.
663 @command{nncp-xfer}'s @option{-force} option is renamed to
664 @option{-mkdir} for clarity.
667 @option{-minsize} option is specified in KiBs, not bytes, for
671 @command{nncp-newcfg} command is renamed to @command{nncp-cfgnew},
672 and @command{nncp-mincfg} to @command{nncp-cfgmin} -- now they have
673 common prefix and are grouped together for convenience.
676 @command{nncp-cfgenc} command appeared, allowing configuration file
677 encryption/decryption, for keeping it safe without any either OpenPGP or
681 Cryptographic libraries (dependencies) are updated.
688 @item Small @command{nncp-rm} command appeared.
689 @item Cryptographic libraries (dependencies) are updated.
696 Trivial small fix in default niceness level of @command{nncp-file}
697 and @command{nncp-freq} commands.
705 Small fix in @command{nncp-call}, @command{nncp-caller},
706 @command{nncp-daemon}: they can segmentation fail sometimes (no data is
710 @command{nncp-newnode} renamed to @command{nncp-newcfg} -- it is shorter
711 and more convenient to use.
714 @command{nncp-mincfg} command appeared: helper allowing to create
715 minimalistic stripped down configuration file without private keys, that
716 is useful during @command{nncp-xfer} usage.
723 @item Fixed compatibility with Go 1.6.
731 @strong{Incompatible} packet's format change (magic number is changed
732 too): size field is encrypted and is not send in plaintext anymore.
735 @option{-minsize} option gives ability to automatically pad outgoing
736 packets to specified minimal size.
739 @command{nncp-daemon} and @command{nncp-call}/@command{nncp-caller}
740 always check new @emph{tx} packets appearance in the background while
741 connected. Remote side is immediately notified.
744 @option{-onlinedeadline} option gives ability to configure timeout of
745 inactivity of online connection, when it could be disconnected. It could
746 be used to keep connection alive for a long time.
749 @option{-maxonlinetime} option gives ability to set maximal allowable
750 online connection aliveness time.
753 @command{nncp-caller} command appeared: cron-ed TCP daemon caller.
756 @command{nncp-pkt} command can decompress the data.