News for hackers. Stuff that matters.
Re:Show HN: Tunnelling TCP through a file by bawolff on Monday June 03, 2024 @02:43PM (#40565947)
What's the benefit of this over netcat + mkfifo?
Re:Show HN: Tunnelling TCP through a file by lambdaxyzw on Monday June 03, 2024 @03:19PM (#40566458)
netcat+mkfifo does the actual transfer with TCP - so there's no tunneling involved. This solution tunnels tcp through file abstraction, so it works significantly differently.

As for the uses, see the three author listed. For example, by using a file share as transport you may evade firewall.

Re:Show HN: Tunnelling TCP through a file by zamadatix on Monday June 03, 2024 @06:31PM (#40568395)

  mkfifo /mnt/shared/connection
  nc localhost 12345 > /mnt/shared/connection < /mnt/shared/connection
Seems the same?
Re:Show HN: Tunnelling TCP through a file by fiddyschmitt on Monday June 03, 2024 @09:07PM (#40569630)
Hi Bawolff! Yes that's a great combo. I guess File Tunnel provides a couple of things that makes the tunnel maintenance a bit easier.

1. It gracefully supports each side of the tunnel turning on and off.

2. It accepts any number of clients, and forwards them through the tunnel.

3. It recycles the shared file.

Re:Show HN: Tunnelling TCP through a file by Thorrez on Tuesday June 04, 2024 @05:52AM (#40572538)
That only works on Linux, but it looks like this program works on Windows too.