park-bench / netcheck

Finds the best network with access to the Internet.
GNU General Public License v3.0
0 stars 0 forks source link

NetCheck does not explicitly change the default gateway #18

Open emfrost opened 6 years ago

emfrost commented 6 years ago

NetCheck is completely unaware of the OS's current default gateway. Currently, we rely on NetworkManager to manage it, but NetworkManager appears to assign the default gateway to the most recently connected wired network and only reassign it when that device disconnects. NetCheck does not explicitly disconnect a wired connection that does not have Internet access, so a failed but not dropped wired connection will block Internet access from any subsequent wireless connections.

emfrost commented 5 years ago

We can use pyroute2 to check and manipulate routes.

emfrost commented 5 years ago

Netcheck is now aware of default gateways, but does not manipulate them.