Skip to content

Add RFC6598 CG-NAT IPv4 range to "LAN IPs range" #1159

@JJGadgets

Description

@JJGadgets

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the nightly release?

  • This issue is present in the nightly release

Describe the Bug

Tailscale and other VPNs use the RFC6598 range of 100.64.0.0/10 for VPN devices. Currently, this range is not included in the "LAN IPs range" defined by Sunshine, so access to web UI, PIN etc. cannot be allowed for devices on the RFC6598 range.

As I understand it, here is the code that defines the "LAN IPs range": https://github.com/LizardByte/Sunshine/blob/master/src/network.cpp#L16-L20

For reference, this is why Tailscale uses the RFC6598 range: https://tailscale.com/kb/1015/100.x-addresses/

Here is the RFC6598 document describing this range as the "Shared Address Space to accommodate the needs of Carrier-Grade NAT (CGN) devices": https://datatracker.ietf.org/doc/html/rfc6598

Expected Behavior

No response

Additional Context

No response

Host Operating System

other, n/a

Operating System Version

All OSes

Architecture

other, n/a

Sunshine commit or version

0.19.1.d70d084f9fbb4e0150977a89d94937418a3ccf9c

Package

Windows - Scoop (Third Party)

GPU Type

none (software encoding)

GPU Model

N/A

GPU Driver/Mesa Version

N/A

Capture Method (Linux Only)

No response

Config

N/A

Apps

No response

Relevant log output

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions