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

Only route specific traffic via tunnel #1

Open
besselfunct opened this issue Oct 7, 2024 · 1 comment
Open

Only route specific traffic via tunnel #1

besselfunct opened this issue Oct 7, 2024 · 1 comment

Comments

@besselfunct
Copy link

Hi,

I came across this project, and it looks really great. If I'm reading the configure_network.rs file correctly, it looks like this is creating a new virtual network interface called tun0 and then routing all(?) traffic through that? Is there a way to specify on the client side that I only want to route traffic for a given port (say 0.0.0.0:SomePort) through the icmp tunnel?

Thanks!

@fabi321
Copy link
Owner

fabi321 commented Oct 7, 2024

Yes, you do read that right, it does route all traffic through the new tun0 interface.

If you only want to route specific ports, you'll have to manually configure routes. If you want to, I could add a cli option to turn the automatic setup off, and you'd need to manually configure rules using ipconfig or whatever else you prefer.
You can also manually add the gateway back in right now, and configure the tun0 interface only for specific traffic.

I've never heard of routing by port, but routing by IP-Address should be doable.

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

2 participants