[GH-ISSUE #385] Better filter for real network interfaces #134

Closed
opened 2026-02-26 04:34:09 +03:00 by kerem · 1 comment
Owner

Originally created by @mageddo on GitHub (Mar 20, 2023).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/385

What is expected

Java haven't an identifier to separate real network interfaces from the virtual ones, because of this DPS can't securely choose the real network interfaces to use that as the IP to set as default DNS which would be the best options.

I've done some researches and maybe I can use 'isSiteLocalAddress' method to identify that,

A unicast address uniquely identifies a single interface by its address. An interface can have multiple unicast addresses and must have at least one link-local address. A link-local address is an address used on a link between two nodes. [1]

This method won't work for ipv6 as it uses an implementation based on a deprecated rfc, will need to implement my own isSiteLocalAddress for ipv6

What is Happening

Changes (Optional)

Originally created by @mageddo on GitHub (Mar 20, 2023). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/385 ### What is expected Java haven't an identifier to separate real network interfaces from the virtual ones, because of this DPS can't securely choose the real network interfaces to use that as the IP to set as default DNS which would be the best options. I've done some researches and maybe I can use 'isSiteLocalAddress' method to identify that, > A unicast address uniquely identifies a single interface by its address. An interface can have multiple unicast addresses and must have at least one link-local address. A link-local address is an address used on a link between two nodes. [[1][1]] This method won't work for ipv6 as it uses an implementation based on a deprecated rfc, will need to implement my own isSiteLocalAddress for ipv6 ### What is Happening ### Changes (Optional) [1]: https://www.sciencedirect.com/topics/computer-science/unicast-address#:~:text=15.3.&text=A%20unicast%20address%20uniquely%20identifies,a%20link%20between%20two%20nodes.
kerem closed this issue 2026-02-26 04:34:09 +03:00
Author
Owner

@mageddo commented on GitHub (Jul 8, 2024):

As people are not reporting problems with the current implementation I'm closing this

<!-- gh-comment-id:2214685192 --> @mageddo commented on GitHub (Jul 8, 2024): As people are not reporting problems with the current implementation I'm closing this
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#134
No description provided.