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.
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.