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

split tunneling? #100

Closed
opnslm opened this issue Feb 25, 2024 · 3 comments
Closed

split tunneling? #100

opnslm opened this issue Feb 25, 2024 · 3 comments

Comments

@opnslm
Copy link

opnslm commented Feb 25, 2024

So i need to tunnel dsvpn over tls. I set up stunnel(it is a tls tunneler to who dont know) everything works fine i can comminucate with the vps. But if i run dsvpn under stunnel it tries to tunnel all the traffic and interrupts the stunnel traffic. Is there a split tunneling method(i am on linuz btw) maybe like while the vpn is setting up the tun interface change some routing settings or not tunneling an ip address at all. thank you!

@jedisct1
Copy link
Owner

There's an undocumented option to prevent dsvpn from setting routes. Add -DNO_DEFAULT_ROUTES to the OPTFLAGS environment variable.

It will then create the tun interface for you but you'll have to set up all th routes yourself.

What are the exact commands you need to type for your use case, I don't know. You probably know Linux way better than I do :)

@opnslm
Copy link
Author

opnslm commented Feb 25, 2024

How can i use the environment variable method do i put it in makefile. I don't know c that much. Where can i find the routes that is being added while the tun interface set. Thanks for the compliment;)

@opnslm
Copy link
Author

opnslm commented Feb 25, 2024

okay i found the way to disable route it is in 98 issue(#98) and the routes for tun interface i think is on line 485 in os.c am i correct

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