Better HN
topnewbestaskshowjobs
Log inSign up

SajjadPourali

13 karma · joined Aug 10, 2023 (3y ago) · 9 submissions

Submissions

comment 3y ago · link · parent

https://narrowlink.com/docs/comparisons/tailscale

2.

Narrowlink 0.2.0 – Peer-2-Peer Using QUIC and TUN Interface – Selfhosted Tunnel(narrowlink.com ↗)

10 points · by SajjadPourali · 3y ago · 3 comments

comment 3y ago · link · parent

Narrowlink uses the HTTP/S (WebSocket) protocol as transport; it encapsulates and decapsulates TCP and UDP connections on top of it. This means both UDP/TCP tunneling methods are available out of the box. For example, the following screenshot shows a UDP tunnel for DNS purposes and its encapsulated traffic as TLS (HTTPS+WebSocket=WSS). https://i.ibb.co/wcHB8g2/udp.png

I also invite you to continue the discussion on the github https://github.com/narrowlink/narrowlink/discussions

You are most welcome

comment 3y ago · link · parent

You can integrated it with sing-box to do. https://narrowlink.com/docs/extended-tutorial/vpn-integratio...

comment 3y ago · link · parent

Hey, I am the creator of Narrowlink. I certainly find your comment valid, and using WireGuard over HTTPS most of the time provides better network performance. However, in very specific cases, Narrowlink demonstrates superior performance.

1- When your devices' routes are not optimal, and utilizing a CDN can enhance the connection due to smart routing. For instance, I have a server in Poland (while I live in Canada) where the direct connection is slower than connecting via Narrowlink behind the CDN (The gateway behind the CDN).

2- And in rare cases, Tailscale cannot establish a peer-to-peer connection, opting to use DERP servers and their own servers (no longer strictly P2P as seen here: https://tailscale.com/kb/1232/derp-servers/). In such cases, Narrowlink may provide faster connectivity.

3- When you start your Tailscale client, it needs to perform NAT discovery. If a symmetric NAT exists, it takes time to connect due to network flooding for UDP hole punching, while Narrowlink can respond on demand (see the section "The benefits of birthdays" on https://tailscale.com/blog/how-nat-traversal-works/).

It's also important to note, alongside the protocol, the software implementation is crucial. Narrowlink is written purely in Rust, while Tailscale has been created by orchestrating existing tools and uses the Go and C++ programming languages. I suggest you try Narrowlink and experience its computational performance.

I believe Tailscale is an amazing VPN solution, but its protocol, infrastructure, and complexities might not be the best fit for self-hosted platforms. In contrast, Narrowlink is a Proxy solution (currently not a VPN) that is very simple to set up.

Please note that narrowlink only encapsulate the TCP payload's not its headers.

I recently released Narrowlink (just two days ago), and it is in the early stages of its journey. I have various plans for this project, including a web interface, integration of the QUIC protocol, and more. I just need the support of the community and more time to enhance it.

comment 3y ago · link · parent

Thanks for raising this point - I appreciate you noting that the Ngrok comparison is not documented yet. Both Tailscale and Ngrok have pros and cons compared to Narrowlink, depending on the specific use case and requirements.

Narrowlink aims to provide more secure and flexible options around remote access, as explained in the current documentation. Since the project was just recently launched, I am still working on improving the docs to highlight the differences.

Both Narrowlink and Ngrok can publish websites on the internet and perform TLS provisioning (e.g., https://narrow.host has published by using narrowlink). However, Narrowlink provides self-hosting and more advanced security features like SNI proxy and CDN compatibility. More importantly, Ngrok exposes non-HTTP services directly to the internet, which can raise security issues, while Narrowlink uses an alternative approach.

I'd hugely welcome any feedback or PRs to help strengthen the documentation and comparisons! As an open source project, Narrowlink relies on the community's skills and insights to thrive. We're just getting started - experienced users like yourself are so important for guiding the project in the right direction. Please feel free to share any other feedback that comes to mind.

Yours

7.

Narrowlink – Better self-hosted tailscale/ngrok alternative(narrowlink.com ↗)

4 points · by SajjadPourali · 3y ago · 2 comments