frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A netcat for the NAT era – connect peers via passphrase only

https://www.gonc.cc/
3•gonc•1mo ago
Hi HN,

I’ve always found traditional nc frustrating when dealing with modern networks. It assumes one side has a reachable IP and a listening port—conditions rarely met when both peers are behind NATs, CGNATs, or firewalls. I built a Go-based netcat-style tool that enables ad-hoc P2P connections using only a shared high-entropy passphrase. No inbound ports, no known IPs, and no manual coordination required. Both peers just run the same command, e.g. nc -p2p <passphrase>

Practical example:

like a FRP alternative, no public server doing reverse-proxy, no exposed ports. For example, if you frequently need to reach 10.0.0.1:22 inside your company network, run this on any host inside the company LAN:

gonc -p2p <passphrase> -linkagent

Later, from home you can initiate a tunnel with the same passphrase:

gonc -p2p passphrase -link 3080;3080

After that, both sides can proxy to any IP:port on the peer LAN using the local SOCKS5 listener.

The "Magic" behind it:

Instead of a central relay or a complex VPN, it uses a three-stage handshake:

1. Rendezvous: The passphrase deterministically derives a unique MQTT topic and a self-signed TLS certificate/key pair.

2. Discovery: Both peers connect to a public MQTT broker (acting as a "bulletin board") to exchange STUN-discovered candidate addresses. The broker never sees the passphrase or the raw traffic.

3. Connectivity: It tries direct TCP first, then falls back to UDP hole punching. If the NAT is particularly "difficult," it uses a "birthday paradox" strategy (spraying 600+ ports) to force a collision.

4. Security: Once connected, the MQTT channel is dropped. All data flows P2P over mTLS. Since the TLS certs are derived from the secret, impersonation is impossible without the passphrase.

Key Features:

- No "Client" or "Server": Both sides run the exact same command.

- Zero Infrastructure: Uses public MQTT/STUN servers; no need to host your own signaling server.

- Familiar Interface: Supports stdin/stdout piping and -e for executing programs (like a p2p reverse shell or service portal).

- SOCKS5 Built-in: Can act as a persistent tunnel/agent to access internal LANs (FRP/NGROK alternative without the central proxy).

Why not just use Tailscale/Wireguard?

    Tailscale is great for a permanent mesh, but sometimes you just want to pipe a 500MB tarball or a quick shell to a friend's laptop right now without managing nodes, ACLs, or login providers. This is meant to be a "throwaway" secure pipe.
Looking forward to your thoughts!

Monzo wrongly denied refunds to fraud and scam victims

https://www.theguardian.com/money/2026/feb/07/monzo-natwest-hsbc-refunds-fraud-scam-fos-ombudsman
1•tablets•4m ago•0 comments

They were drawn to Korea with dreams of K-pop stardom – but then let down

https://www.bbc.com/news/articles/cvgnq9rwyqno
2•breve•6m ago•0 comments

Show HN: AI-Powered Merchant Intelligence

https://nodee.co
1•jjkirsch•9m ago•0 comments

Bash parallel tasks and error handling

https://github.com/themattrix/bash-concurrent
1•pastage•9m ago•0 comments

Let's compile Quake like it's 1997

https://fabiensanglard.net/compile_like_1997/index.html
1•billiob•10m ago•0 comments

Reverse Engineering Medium.com's Editor: How Copy, Paste, and Images Work

https://app.writtte.com/read/gP0H6W5
1•birdculture•15m ago•0 comments

Go 1.22, SQLite, and Next.js: The "Boring" Back End

https://mohammedeabdelaziz.github.io/articles/go-next-pt-2
1•mohammede•21m ago•0 comments

Laibach the Whistleblowers [video]

https://www.youtube.com/watch?v=c6Mx2mxpaCY
1•KnuthIsGod•22m ago•1 comments

Slop News - HN front page right now hallucinated as 100% AI SLOP

https://slop-news.pages.dev/slop-news
1•keepamovin•27m ago•1 comments

Economists vs. Technologists on AI

https://ideasindevelopment.substack.com/p/economists-vs-technologists-on-ai
1•econlmics•29m ago•0 comments

Life at the Edge

https://asadk.com/p/edge
2•tosh•35m ago•0 comments

RISC-V Vector Primer

https://github.com/simplex-micro/riscv-vector-primer/blob/main/index.md
3•oxxoxoxooo•38m ago•1 comments

Show HN: Invoxo – Invoicing with automatic EU VAT for cross-border services

2•InvoxoEU•39m ago•0 comments

A Tale of Two Standards, POSIX and Win32 (2005)

https://www.samba.org/samba/news/articles/low_point/tale_two_stds_os2.html
2•goranmoomin•43m ago•0 comments

Ask HN: Is the Downfall of SaaS Started?

3•throwaw12•44m ago•0 comments

Flirt: The Native Backend

https://blog.buenzli.dev/flirt-native-backend/
2•senekor•45m ago•0 comments

OpenAI's Latest Platform Targets Enterprise Customers

https://aibusiness.com/agentic-ai/openai-s-latest-platform-targets-enterprise-customers
1•myk-e•48m ago•0 comments

Goldman Sachs taps Anthropic's Claude to automate accounting, compliance roles

https://www.cnbc.com/2026/02/06/anthropic-goldman-sachs-ai-model-accounting.html
3•myk-e•50m ago•5 comments

Ai.com bought by Crypto.com founder for $70M in biggest-ever website name deal

https://www.ft.com/content/83488628-8dfd-4060-a7b0-71b1bb012785
1•1vuio0pswjnm7•51m ago•1 comments

Big Tech's AI Push Is Costing More Than the Moon Landing

https://www.wsj.com/tech/ai/ai-spending-tech-companies-compared-02b90046
4•1vuio0pswjnm7•53m ago•0 comments

The AI boom is causing shortages everywhere else

https://www.washingtonpost.com/technology/2026/02/07/ai-spending-economy-shortages/
2•1vuio0pswjnm7•55m ago•0 comments

Suno, AI Music, and the Bad Future [video]

https://www.youtube.com/watch?v=U8dcFhF0Dlk
1•askl•57m ago•2 comments

Ask HN: How are researchers using AlphaFold in 2026?

1•jocho12•1h ago•0 comments

Running the "Reflections on Trusting Trust" Compiler

https://spawn-queue.acm.org/doi/10.1145/3786614
1•devooops•1h ago•0 comments

Watermark API – $0.01/image, 10x cheaper than Cloudinary

https://api-production-caa8.up.railway.app/docs
1•lembergs•1h ago•1 comments

Now send your marketing campaigns directly from ChatGPT

https://www.mail-o-mail.com/
1•avallark•1h ago•1 comments

Queueing Theory v2: DORA metrics, queue-of-queues, chi-alpha-beta-sigma notation

https://github.com/joelparkerhenderson/queueing-theory
1•jph•1h ago•0 comments

Show HN: Hibana – choreography-first protocol safety for Rust

https://hibanaworks.dev/
5•o8vm•1h ago•1 comments

Haniri: A live autonomous world where AI agents survive or collapse

https://www.haniri.com
1•donangrey•1h ago•1 comments

GPT-5.3-Codex System Card [pdf]

https://cdn.openai.com/pdf/23eca107-a9b1-4d2c-b156-7deb4fbc697c/GPT-5-3-Codex-System-Card-02.pdf
1•tosh•1h ago•0 comments