Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use library with default gateway #55

Open
amyipdev opened this issue Jan 27, 2023 · 0 comments
Open

Use library with default gateway #55

amyipdev opened this issue Jan 27, 2023 · 0 comments

Comments

@amyipdev
Copy link

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.

feifeigood pushed a commit to feifeigood/rust-tun that referenced this issue Jun 12, 2024
* update example

* set tun name

* set tun name

* set tun name

* set tun name

* set tun name

* set tun name

* set tun name

* set tun name

* set tun name

* set tun name

* set tun name

* set tun name

* set tun name

* set tun name

* set tun name

* set tun name

* add set_tun_name for freebsd

* add set_tun_name for freebsd

* unify the access of internal api

* update freebsd

* update example

* cargo fmt

* cargo fmt

* fix packet-information

* cargo fmt

* update

* Update split.rs

* Update split.rs

* Update split.rs

* Update split.rs

---------

Co-authored-by: ssrlive <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant