lbryio / lbryio/lbry-sdk

Detect if internet connection is through a carrier grade NAT (starlink)

Open
#3,652 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: DHT
Dominant language
Python
Stars
7.2k
Forks
493
PR merge metrics
No merged PRs in 30d

Description

Users who have starlink internet (as well as many mobile networks) are not able to have reliable connectivity because these services use a CGNAT and constantly have their external ip address changing. The sdk can detect this by checking the interface address against the `CARRIER_GRADE_NAT_SUBNET` ip range. This can be used to disable blob announcement where it won't be effective and to alert the user that they can't be connected to from the outside.

Detection of the CGNAT might be trickier on starlink connections with a wifi network (the default they ship with, vs ethernet with passthrough) as the interface address will appear to be a normal private lan address. I'm not sure if the wifi router will reply to aioupnp - if it does it probably gives the CGNAT address (this can be tested).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the interface-address handling, the CARRIER_GRADE_NAT_SUBNET check, and any aioupnp integration. Verify how Starlink Wi-Fi and ethernet passthrough expose addresses, then make CGNAT detection available for disabling blob announcement and alerting users that inbound connectivity is unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.