meh / rust-tun

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

Use library with default gateway #55

Open amyipdev opened 1 year ago

amyipdev commented 1 year ago

I don't exactly get how to do routing such that a VPN style system would work (all traffic comes into TUN and exits via another interface). I generally get how to use the library to make an interface and receive packets, but sending them out when TUN is the default gateway (and making it the default gateway in the first place) is beyond me.