lakinduakash / linux-wifi-hotspot

Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.2k stars 296 forks source link

Feature request: use default route as upstream #223

Open huyz-git opened 2 years ago

huyz-git commented 2 years ago

Is your feature request related to a problem? Please describe. Now, linux-wifi-hotspot needs to choose an Internet interface to create AP. After do so, all traffic come from AP will send through that interface.

Consider this situation: one machine has two Ethernet interface, one for public network access and one for special private network access. The machine has already setup policy route to route different traffic through different interface. Now the AP created by linux-wifi-hotspot can only access public network or private network (depend on which interface you choose), but cannot access both.

Describe the solution you'd like Is it possible to add an option to use system's default route as upstream, i.e. send all traffic from AP following system's route table?

Describe alternatives you've considered The AP created by NetworkManager is using system's default route, so theoretically this feature can be implemented, I think.

Additional context