meh / rust-tun

TUN device creation and handling.
340 stars 133 forks source link

feat: implemented the capability to add static routes #59

Open evanjaramillo opened 1 year ago

evanjaramillo commented 1 year ago

Hello All!

This PR implements the capability to add static routes easily as part of the configuration object. There is a new example that demonstrates redirecting the default gateway over the tunnel. Currently this feature is only implemented for the Linux platform because I do not own any other machines to test with :(

This is my first coding venture in Rust, so please let me know if I need to modify anything :)

Thank You!