4 See also this page @ref{Новости, on russian}.
11 Fixed incorrect @code{freq.chunked} value calculation. If it missed,
12 then anyway chunked transfer mode was forcefully turned on.
17 @section Release 8.0.0
21 @strong{Incompatible} encrypted packet format change: payload and pad
22 sizes are sent in-bound in the encrypted stream. That gives ability to
23 streamingly create encrypted packets, without knowing sizes in advance,
24 without creating temporary file or buffer data in memory.
27 Proper encrypted packet padding verification is done now. This is not
28 critical issue, but previously neither padding value, nor its size were
29 authenticated, giving ability to iteratively strip trailing bytes and
30 determine payload's size by observing the reaction of the encrypted
34 @command{nncp-exec} loses its @option{-use-tmp} option, because of
35 streaming-compatible encrypted packets format.
38 @command{nncp-file} and @command{nncp-exec} commands have
39 @option{-maxsize} option, limiting maximal resulting encrypted packet's
40 maximal size (returning error if it is exceeded). Could be useful,
41 because no payload size could be known in advance.
46 @section Release 7.7.0
50 Experimental @code{kqueue} and @code{inotify} based notifications
51 support about spool directory changes, for reducing their often reading
55 @file{.seen} and @file{.hdr} files moved to @file{seen/} and @file{hdr/}
56 subdirectories, for faster scanning of spool directories.
57 Current files migration required:
60 $ find $NNCPSPOOL -type f -name "*.hdr" -exec rm @{@} +
62 $ find $NNCPSPOOL -type d -name rx | while read rx ; do
65 find . -type f -name "*.seen" | while read fn ; do
66 mv $fn seen/$@{fn%.seen@}
70 $ find $NNCPSPOOL -type d -name area | while read area ; do
71 find $area -type f -name "*.seen" | while read fn ; do
80 @section Release 7.6.0
84 Logging may be done to specified opened file descriptor
85 (@env{$NNCPLOG=FD:5} for example).
86 That is friendly to use under @command{daemontools}.
89 Added additional checks of public keys existence in configuration file,
90 preventing some commands from failing.
95 @section Release 7.5.1
99 NNCP builds on NetBSD.
104 @section Release 7.5.0
108 @command{nncp-daemon} is compatible with UCSPI-TCP interface, so log
109 will contain remote side's address (when running under appropriate
110 utility). @option{-ucspi} option should be used instead of @option{-inetd}.
113 @command{nncp-call} can be UCSPI-TCP client, using @option{-ucspi} option.
116 Do not exit if some of MCD network interfaces can not be listened --
117 only warn about that.
122 @section Release 7.4.0
126 Fixed simultaneous @command{nncp-daemon} and @command{nncp-caller} MCD work.
131 @section Release 7.3.2
135 @command{hjson-cli} utility builds in vendor-mode now.
140 @section Release 7.3.1
144 Fixed possibly left opened file descriptor in online commands.
147 Severely decreased memory usage of MTH hashing.
152 @section Release 7.3.0
156 Fixed some workability problems on 32-bit systems with big files.
159 Ability to use directory with a bunch of files as a configuration.
160 @command{nncp-cfgdir} command appeared.
165 @section Release 7.2.1
169 Small optimizations in online commands.
174 @section Release 7.2.0
178 @command{nncp-trns} command appeared for manual transition packets creation.
181 If destination node of transitional packet has non empty @option{via}
182 route, then do not ignore, but use it.
185 Do not relay multicast packet to area message's originator, that
186 obviously has seen its own packet.
189 Much less memory usage during MTH hashing when offset is zero: when
190 packet is not resumed, but for example checked with @command{nncp-check}
196 @section Release 7.1.1
200 Fixed failing directories fsync after @file{.seen} file creation.
205 @section Release 7.1.0
209 Multicasting areas feature appeared. Implemented merely by an additional
210 plain packet type with @command{nncp-toss}, @command{nncp-file} and
211 @command{nncp-exec} commands modification.
214 Fixed workability of @command{nncp-file} and @command{nncp-exec}
215 commands, that use temporary file (stdin and @option{-use-tmp}).
218 Fixed disappearing bad return code in @command{nncp-exec} command.
221 Fixed invalid @file{.hdr} generation when transitional packets are used.
224 @option{-all} option appeared in @command{nncp-rm} command, applying to
225 all the nodes at once.
228 @option{-cycle} option appeared in @command{nncp-check} command, looping
229 the check in infinite cycle.
232 @command{nncp-rm} command can take node alias name.
235 @command{nncp-pkt} can parse @file{.hdr} files.
240 @section Release 7.0.0
244 Minimal required Go version 1.13.
247 Merkle Tree-based Hashing with BLAKE3 (MTH) is used instead of BLAKE2b.
248 Because of that, there are backward @strong{incompatible} changes of
249 encrypted files (everything laying in the spool directory) and
250 @file{.meta} files of chunked transfer.
252 Current implementation is far from being optimal: it lacks
253 parallelizable calculations and has higher memory consumption: nearly
254 512 KiB for each 1 GiB of file's data. Future performance and memory
255 size optimizations should not lead to packet's format change. But it is
256 still several times faster than BLAKE2b.
259 Resumed online downloads, because of MTH, require reading only of the
260 preceding part of file, not the whole one as was before.
263 @command{nncp-hash} utility appeared for calculating file's MTH hash.
266 BLAKE2 KDF and XOF functions are replaced with BLAKE3 in encrypted
267 packets. Lowering number of used primitives. Also, its encrypted
268 packet's header is used as an associated data during encryption.
271 MultiCast Discovery uses
272 @verb{|ff02::4e4e:4350|} address instead of @verb{|ff02::1|}.
275 @command{nncp-cfgenc} mistakenly asked passphrase three times during encryption.
278 @command{nncp-stat} reports about partly downloaded packets.
281 Updated dependencies.
286 @section Release 6.6.0
290 @command{nncp-daemon}, @command{nncp-call} and @command{nncp-caller}
291 commands wait for all background checksummers completion after
292 connection is finished.
295 Added possibility of address determining through multicast announcement
296 in local area network, so called MCD (MultiCast Discovery).
301 @section Release 6.5.0
305 Fixed segfault in @command{nncp-daemon} when SP handshake did not succeed.
308 Fixed possible bad return code ignoring in automatic tosser.
311 Fixed race during file descriptors closing when online protocol call is
312 finished, that could lead to write error of received packet fragment.
315 Kill all packet transmission progress bars in @command{nncp-daemon},
316 @command{nncp-call} and @command{nncp-caller} when call is finished.
321 @section Release 6.4.0
325 Fixed possible race in online protocol, that lead to panic.
330 @section Release 6.3.0
334 Fixed possible panic while showing progress during online protocol.
339 @section Release 6.2.1
343 Three places in logs contained excess @code{%s}.
348 @section Release 6.2.0
352 Returned @command{nncp-caller}'s @option{-autotoss*} options workability.
355 Yet another logging refactoring and simplification.
356 Should be no visible differences to the end user.
361 @section Release 6.1.0
365 Optimization: most commands do not keep opened file descriptors now.
366 Previously you can exceed maximal number of opened files if you have got
367 many packets in the spool directory.
370 Optimization: do not close file descriptor of the file we download
371 online. Previously each chunk lead to expensive open/close calls.
374 Online downloaded files are saved with @file{.nock} (non-checksummed)
375 suffix, waiting either for @command{nncp-check}, or online daemons to
376 perform integrity check.
379 Optimization: files, that are not resumed, are checksummed immediately
380 during the online download, skipping @file{.nock}-intermediate step.
383 Ability to store encrypted packet's header in @file{.hdr} file, close to
384 the packet itself. That can greatly increase performance of packets
385 listing on filesystems with big block's size.
390 @section Release 6.0.0
394 Log uses human readable and easy machine parseable
395 @url{https://www.gnu.org/software/recutils/, recfile} format for the
396 records, instead of structured RFC 3339 lines. Old logs are not readable
397 by @command{nncp-log} anymore.
400 @option{-autotoss*} option workability with @command{nncp-daemon}'s
401 @option{-inetd} mode.
404 Call's @option{when-tx-exists} allows to make a call only when outbound
405 packets exists. Combined with seconds-aware cron expression that can be
406 used as some kind of auto dialler.
409 @command{nncp-cronexpr} command allows you to check validity and
410 expectations of specified cron expression.
415 @section Release 5.6.0
419 @option{-autotoss*} option runs tosser not after the call, but every
420 second while it is active.
423 @option{autotoss}, @option{autotoss-doseen},
424 @option{autotoss-nofile}, @option{autotoss-nofreq},
425 @option{autotoss-noexec}, @option{autotoss-notrns} options available in
426 @option{calls} configuration section. You can configure per-call
427 automatic tosser options.
430 Use vendoring, instead of @env{$GOPATH} overriding during tarball
431 installation, because current minimal Go's version is 1.12 and it
437 @section Release 5.5.1
441 Respect for @env{$BINDIR}, @env{$INFODIR} and @env{$DOCDIR} environment
442 variables in @file{config} during installation.
447 @section Release 5.5.0
451 Bugfixes in @command{nncp-call(er)}/@command{nncp-daemon},
452 @command{nncp-bundle} and @command{nncp-stat}.
455 @command{nncp-rm} has @option{-dryrun} and @option{-older} options now.
458 @command{nncp-exec} has @option{-use-tmp} and @option{-nocompress}
459 options now. Uncompressed packets are not compatible with previous NNCP
463 @command{nncp-call}, @command{nncp-caller} and @command{nncp-daemon} commands
464 have @option{-autotoss*} options for running tosser after call is ended.
467 Updated dependencies. Minimal required Go version is 1.12.
472 @section Release 5.4.1
476 Fixed @code{SENDMAIL} variable usage during the build.
481 @section Release 5.4.0
485 Updated dependencies.
488 Build system is moved from Makefiles to @url{http://cr.yp.to/redo.html, redo}.
489 This should not influence package maintainers, because minimal @command{redo}
490 implementation is included in tarball.
495 @section Release 5.3.3
499 More various error checks.
502 Updated dependencies.
507 @section Release 5.3.2
511 Fixed incorrect logic of @option{onlinedeadline} timeout, where
512 connection won't take into account incoming packets events and will
513 forcefully disconnect.
518 @section Release 5.3.1
522 Fixed @option{onlinedeadline} workability with call addresses that use
523 external commands (@verb{#"|somecmd"#}).
526 @command{nncp-stat} has @option{-pkt} option displaying information
527 about each packet in the spool.
532 @section Release 5.3.0
536 Progress messages contain prefix, describing the running action.
539 Fixed not occurring handshake messages padding.
542 Finish all SP protocol related goroutines, less memory leak.
545 SP protocol generates less socket write calls, thus generating less TCP
549 Check @option{onlinedeadline} and @option{maxonlinetime} options every
550 second, independently from socket reads (up to 10 seconds).
553 Once per minute, if no other traffic exists, PING packets are sent in
554 SP-connection. That allows faster determining of connection unworkability.
557 @command{nncp-toss} uses lock-file to prevent simultaneous tossing.
562 @section Release 5.2.1
566 Fixed SP protocol error handling, sometimes causing program panic.
571 @section Release 5.2.0
575 Most commands by default show oneline operations progress.
576 @option{-progress}, @option{-noprogress} command line options,
577 @option{noprogress} configuration file option appeared.
580 Fixed incorrect @command{nncp-check} command return code, that returned
581 bad code when everything is good.
584 Free disk space check during @command{nncp-bundle -rx} call.
589 @section Release 5.1.2
593 @strong{Critical} vulnerability: remote peers authentication could lead
594 to incorrect identification of remote side, allowing foreign encrypted
598 Bugfix: private and public Noise keys were swapped in newly created
599 configuration files, that lead to inability to authenticate online peers.
602 Explicit directories fsync-ing for guaranteed files renaming.
607 @section Release 5.1.1
611 Fixed workability of @command{nncp-file} with @option{-chunked 0} option.
616 @section Release 5.1.0
620 @command{nncp-file} can send directories, automatically creating pax
624 Free disk space is checked during outbound packets creation.
627 @option{freq}, @option{freqminsize}, @option{freqchunked} configuration
628 file options replaced with the structure:
629 @option{freq: @{path: @dots{}, minsize: @dots{}, chunked: @dots{}@}}.
632 Added @option{freq.maxsize} configuration file option, forbidding of
633 freq sending larger than specified size.
636 Ability to notify about successfully executed commands (exec) with
637 @option{notify.exec} configuration file option.
642 @section Release 5.0.0
646 @strong{Incompatible} configuration file format change: YAML is
647 replaced with Hjson, due to its simplicity, without noticeable lack
648 of either functionality or convenience.
651 @strong{Incompatible} plain packet format changes. Older versions are
652 not supported. @code{zlib} compression is replaced with
653 @code{Zstandard}, due to its speed and efficiency, despite library
654 version is not mature enough.
657 Ability to call remote nodes via pipe call of external command, not only
661 @command{nncp-cfgnew} generates configuration file with many
662 comments. @option{-nocomments} option can be used for an old
666 Duplicate filenames have @file{.CTR} suffix, instead of @file{CTR}, to
667 avoid possible collisions with @file{.nncp.chunkCTR}.
670 Ability to override process umask through configuration file option.
673 Files and directories are created with 666/777 permissions by default,
674 allowing control with @command{umask}.
677 Updated dependencies.
680 Full usage of go modules for dependencies management
681 (@code{go.cypherpunks.ru/nncp/v5} namespace is used).
684 Forbid any later GNU GPL version autousage
685 (project's licence now is GNU GPLv3-only).
692 @item Workability on GNU/Linux systems and Go 1.10 is fixed.
700 @strong{Incompatible} encrypted and eblob packet format change: AEAD
701 encryption mode with 128 KiB blocks is used now, because previously
702 @command{nncp-toss} did not verify encrypted packet's MAC before feeding
703 decrypted data to external command. Older versions are not supported.
706 Available free space checking before copying in @command{nncp-xfer},
707 @command{nncp-daemon}, @command{nncp-call(er)}.
710 @command{nncp-call} has ability only to list packets on remote node,
711 without their transmission.
714 @command{nncp-call} has ability to transfer only specified packets.
717 Workability of @option{xxrate} preference in @option{calls}
718 configuration file section.
721 Dependant libraries are updated.
727 Begin using of @code{go.mod} subsystem.
734 @item @command{nncp-daemon} can be run as @command{inetd}-service.
742 @command{nncp-daemon}, @command{nncp-call}, @command{nncp-caller} check
743 if @file{.seen} exists and treat it like file was already downloaded.
744 Possibly it was transferred out-of-bound and remote side needs to be
748 If higher priority packet is spooled, then @command{nncp-daemon} will
749 queue its sending first, interrupting lower priority transmissions.
752 Simple packet rate limiter added to online-related tools
753 (@command{nncp-daemon}, @command{nncp-call}, @command{nncp-caller}).
756 Ability to specify niceness with symbolic notation:
757 @verb{|NORMAL|}, @verb{|BULK+10|}, @verb{|PRIORITY-5|}, etc.
760 Changed default niceness levels:
761 for @command{nncp-exec} from 64 to 96,
762 for @command{nncp-freq} from 64 to 160,
763 for @command{nncp-file} from 196 to 224.
771 @strong{Incompatible} @emph{bundle} archive format changes and
772 @command{nncp-bundle} workability with Go 1.10+. Bundles must be
773 valid tar archives, but Go 1.9 made them invalid because of long paths
774 inside. NNCP accidentally was dependant on that bug. Explicit adding of
775 @file{NNCP/} directory in archive restores workability with valid tar
783 Ability to disable relaying at all using @verb{|-via -|} command line option.
791 @strong{Incompatible} plain packet format changes. Older versions are
795 Ability to queue remote command execution, by configuring @option{exec}
796 option in configuration file and using @command{nncp-exec} command:
799 @command{nncp-mail} command is replaced with more flexible
800 @command{nncp-exec}. Instead of @verb{|nncp-mail NODE RECIPIENT|}
801 you must use @verb{|nncp-exec NODE sendmail RECIPIENT|}.
803 @option{sendmail} configuration file option is replaced with
804 @option{exec}. @verb{|sendmail: [...]|} must be replaced with
805 @verb{|exec: sendmail: [...]|}.
809 Ability to override @option{via} configuration option for destination
810 node via @option{-via} command line option for following commands:
811 @command{nncp-file}, @command{nncp-freq}, @command{nncp-exec}.
814 Chunked files, having size less than specified chunk size, will be sent
815 as an ordinary single file.
818 Exec commands are invoked with additional @env{$NNCP_NICE} and
819 @env{$NNCP_SELF} environment variables.
822 Files, that are sent as a reply to freq, have niceness level taken from
823 the freq packet. You can set desired niceness during @command{nncp-freq}
824 invocation using @option{-replynice} option.
827 @command{nncp-toss} command can ignore specified packet types during
828 processing: @option{-nofile}, @option{-nofreq}, @option{-noexec},
832 @command{nncp-file} command uses
833 @option{FreqMinSize}/@option{FreqChunked} configuration file options
834 for @option{-minsize}/@option{-chunked} by default. You can turn this
835 off by specifying zero value.
844 @strong{Incompatible} encrypted/eblob packet format changes. Older
845 versions are not supported.
848 Twofish encryption algorithm is replaced with ChaCha20. It is much more
849 faster. One cryptographic primitive less.
852 HKDF-BLAKE2b-256 KDF algorithm is replaced with BLAKE2Xb XOF. Yet
853 another cryptographic primitive less (assuming that BLAKE2X is nearly
854 identical to BLAKE2).
863 @strong{Incompatible} encrypted packet format changes. Older versions
867 @command{nncp-bundle} command can either create stream of encrypted
868 packets, or digest it. It is useful when dealing with
869 @code{stdin}/@code{stdout} based transmission methods (like writing to
870 CD-ROM without intermediate prepared ISO image and working with tape
874 @command{nncp-toss} is able to create @file{.seen} files preventing
875 duplicate packets receiving.
878 Single background checksum verifier worker is allowed in
879 @command{nncp-call}. This is helpful when thousands of small inbound
880 packets could create many goroutines.
883 Ability to override path to spool directory and logfile through either
884 command line argument, or environment variable.
887 @command{nncp-rm} is able to delete outbound/inbound, @file{.seen},
888 @file{.part}, @file{.lock} and temporary files.
893 @section Release 0.12
895 @item Sendmail command is called with @env{$NNCP_SENDER} environment variable.
899 @section Release 0.11
901 @item @command{nncp-stat}'s command output is sorted by node name.
905 @section Release 0.10
908 @command{nncp-freq}'s @file{DST} argument is optional now. Last
909 @file{SRC} path's element will be used by default.
916 Fix @option{-rx}/@option{-tx} arguments processing in
917 @command{nncp-call} command. They were ignored.
924 Little bugfix in @command{nncp-file} command, where @option{-minsize}
925 option for unchunked transfer was not in KiBs, but in bytes.
933 Ability to feed @command{nncp-file} from @code{stdin}, that uses an
934 encrypted temporary file for that.
937 Chunked files transmission appeared with corresponding
938 @command{nncp-reass} command and @option{freqchunked} configuration file
939 entry. Useful for transferring big files over small storage devices.
942 @option{freqminsize} configuration file option, analogue to
943 @option{-minsize} one.
946 @command{nncp-xfer}'s @option{-force} option is renamed to
947 @option{-mkdir} for clarity.
950 @option{-minsize} option is specified in KiBs, not bytes, for
954 @command{nncp-newcfg} command is renamed to @command{nncp-cfgnew},
955 and @command{nncp-mincfg} to @command{nncp-cfgmin} -- now they have
956 common prefix and are grouped together for convenience.
959 @command{nncp-cfgenc} command appeared, allowing configuration file
960 encryption/decryption, for keeping it safe without any either OpenPGP or
964 Cryptographic libraries (dependencies) are updated.
971 @item Small @command{nncp-rm} command appeared.
972 @item Cryptographic libraries (dependencies) are updated.
979 Trivial small fix in default niceness level of @command{nncp-file}
980 and @command{nncp-freq} commands.
988 Small fix in @command{nncp-call}, @command{nncp-caller},
989 @command{nncp-daemon}: they can segmentation fail sometimes (no data is
993 @command{nncp-newnode} renamed to @command{nncp-newcfg} -- it is shorter
994 and more convenient to use.
997 @command{nncp-mincfg} command appeared: helper allowing to create
998 minimalistic stripped down configuration file without private keys, that
999 is useful during @command{nncp-xfer} usage.
1004 @section Release 0.3
1006 @item Fixed compatibility with Go 1.6.
1010 @section Release 0.2
1014 @strong{Incompatible} packet's format change (magic number is changed
1015 too): size field is encrypted and is not send in plaintext anymore.
1018 @option{-minsize} option gives ability to automatically pad outgoing
1019 packets to specified minimal size.
1022 @command{nncp-daemon} and @command{nncp-call}/@command{nncp-caller}
1023 always check new @emph{tx} packets appearance in the background while
1024 connected. Remote side is immediately notified.
1027 @option{-onlinedeadline} option gives ability to configure timeout of
1028 inactivity of online connection, when it could be disconnected. It could
1029 be used to keep connection alive for a long time.
1032 @option{-maxonlinetime} option gives ability to set maximal allowable
1033 online connection aliveness time.
1036 @command{nncp-caller} command appeared: cron-ed TCP daemon caller.
1039 @command{nncp-pkt} command can decompress the data.