{"id":20456670,"url":"https://github.com/jgoerzen/docker-nncp","last_synced_at":"2025-10-12T08:09:14.888Z","repository":{"id":66276375,"uuid":"398959273","full_name":"jgoerzen/docker-nncp","owner":"jgoerzen","description":"[read-only mirror] NNCP support for Docker","archived":false,"fork":false,"pushed_at":"2025-10-04T13:26:05.000Z","size":61,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T15:21:45.230Z","etag":null,"topics":["docker","docker-image","nncp"],"latest_commit_sha":null,"homepage":"https://salsa.debian.org/jgoerzen/docker-nncp","language":"Dockerfile","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgoerzen.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-08-23T03:13:05.000Z","updated_at":"2025-10-04T13:26:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1a809a5-a171-4ee7-9444-5be7c93e0d4f","html_url":"https://github.com/jgoerzen/docker-nncp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jgoerzen/docker-nncp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgoerzen%2Fdocker-nncp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgoerzen%2Fdocker-nncp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgoerzen%2Fdocker-nncp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgoerzen%2Fdocker-nncp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgoerzen","download_url":"https://codeload.github.com/jgoerzen/docker-nncp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgoerzen%2Fdocker-nncp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010802,"owners_count":26084807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-image","nncp"],"created_at":"2024-11-15T11:23:33.629Z","updated_at":"2025-10-12T08:09:14.842Z","avatar_url":"https://github.com/jgoerzen.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: NNCP for Docker\n\n*NOTE: Github is no longer the source for this package; see its [[https://salsa.debian.org/jgoerzen/docker-nncp][new home on Salsa]].*\n\nThis container provides [[https://www.complete.org/nncp/][NNCP]] for Docker.  NNCP is \"intended to help build up small size (dozens of nodes) ad-hoc friend-to-friend (F2F) statically routed darknet delay-tolerant networks for fire-and-forget secure reliable files, file requests, Internet mail and commands transmission. All packets are integrity checked, end-to-end encrypted, explicitly authenticated by known participants public keys. Onion encryption is applied to relayed packets. Each node acts both as a client and server, can use push and poll behaviour model. Also there is multicasting areas support.\n\nOut-of-box offline sneakernet/floppynet, dead drops, sequential and append-only CD-ROM/tape storages, air-gapped computers support. But online TCP daemon with full-duplex resumable data transmission exists. \"\n\nIt is based on my [[https://salsa.debian.org/jgoerzen/docker-debian-base][debian-base-security]] image for Debian trixie.\n\n* Introduction\n\nYou can use the =jgoerzen/nncp= image.  By default, it will:\n\n- Run nncp-daemon, listening on port 5400.  (=systemctl disable nncp-daemon= to disable)\n- Run nncp-caller (systemctl disable can disable caller and toss also)\n- Run nncp-toss, cycle 60, without -seen (edit =/etc/systemd/system/nncp-toss.service= to tweak)\n- Provide reasonable cleanup (=/etc/cron.daily=) and log rotation (=/etc/logrotate.d=) for NNCP files, which you can of course override.\n\n* Files\n\nThe NNCP spool directory is =/var/spool/nncp= and is listed as a volume.  It should be owned by the NNCP user (the startup script will fix this if it's not the case).\n\nThe NNCP configuration file is expected to reside in =/usr/local/etc/nncp.hjson=.  If you need one, you can run =nncp-cfgen= from within a container.  It should have restrictive permissions; for instance, mode 0400 and owned by the NNCP user.  You can either add it to an image, or mount something over =/usr/local/etc=.  The commands are in =/usr/local/bin/=.\n\n* Invocation\n\nPlease see the [[https://salsa.debian.org/jgoerzen/docker-debian-base#container-invocation][docker-debian-base container invocation]] information.  Generally, for a modern system, you'll use something like this:\n\n#+begin_example\ndocker run -td --stop-signal=SIGRTMIN+3 \\\n  --tmpfs /run:size=100M --tmpfs /run/lock:size=100M \\\n  -v /sys/fs/cgroup:/sys/fs/cgroup:rw --cgroupns=host \\\n  --name=nncp jgoerzen/nncp\n#+end_example\n\nInformation about the daemons can be found with, eg, =journalctl -u nncp-daemon=.  It is recommended to su to the nncp user before running any nncp commands.\n\nThanks to using debian-base-security, the container will automatically apply Debian security updates at container start and daily while running.  These security updates do not, however, pertain to NNCP itself.\n\n* Use\n\nThis is a use-NNCP-as-you-like toolkit.  Some might want to run daemons; others not.\n\nIf you would like to use daemons, you can enable them in your Dockerfile:\n\n#+begin_example\nRUN systemctl enable nncp-caller\nRUN systemctl enable nncp-daemon\nRUN systemctl enable nncp-toss\n#+end_example\n\nYou can configure how they are started by modifying or overwriting the =/etc/systemd/system/nncp-*.service= files.\n\n* Copyright\n\nThese files are Copyright (c) 2021-2022 John Goerzen.\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgoerzen%2Fdocker-nncp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgoerzen%2Fdocker-nncp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgoerzen%2Fdocker-nncp/lists"}