github / gh-net

A network bridge between a Codespace and a local machine.
https://github.com/github/gh-net
286 stars 22 forks source link

traffic might be routed to non-default network interface #31

Open legomushroom opened 2 years ago

legomushroom commented 2 years ago

When we resolve a DNS name, the resolved IP address might be routed to a non-default network interface inside a Codespace and hence cannot be routed to the local machine. For example, this happens if a Codespace has a defined route or a network interface that handles a subnet that the resolved IP address is part of.

Example:

The same issue would happen if, instead of having the eth10, a 10.0.1.0/24 route is defined inside the Codespace.

This is, of course, an expected issue, but we can improve user experience by: