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

Added new comand line option -B <address> for binding specified address when connect to DNS server via TCP #15

Merged
merged 5 commits into from
Jul 10, 2024

Conversation

ku4in
Copy link
Contributor

@ku4in ku4in commented Jun 18, 2024

Added a new command line option -B

. This will allow you to configure traffic routing from dns2tsp through the desired network interface. Or even several copies of dns2tsp (listening on different UDP ports or bound to different network interfaces via the -L option) can be launched simultaneously with binding to different interfaces (by their IP addresses), which will allow routing traffic to the same DNS server (e.g. 8.8.8.8) through different network interfaces using the so-called policy-based routing. For these purposes, simply run several copies of the dns2tsp with different and -B options, where is the address of the desired network interface. And then use ip route and ip rule commands to route traffic to DNS server as you wish.

Added a new command line option -B <address>. This will allow you to
configure traffic routing from dns2tsp through the desired network
interface.
@zfl9
Copy link
Owner

zfl9 commented Jun 27, 2024

Compilation failed.

@ku4in ku4in requested a review from zfl9 June 27, 2024 10:18
@ku4in
Copy link
Contributor Author

ku4in commented Jun 27, 2024

The requested changes have been made. Please review again.

@ku4in ku4in requested a review from zfl9 June 27, 2024 11:21
@ku4in
Copy link
Contributor Author

ku4in commented Jun 27, 2024

The indents have been aligned and unnecessary empty lines have been removed. Please review again.

@ku4in ku4in requested a review from zfl9 June 27, 2024 12:22
@ku4in
Copy link
Contributor Author

ku4in commented Jun 27, 2024

Typos have been corrected. Please review again.

@zfl9
Copy link
Owner

zfl9 commented Jun 27, 2024

Ok, I need to test locally to see if it compiles, and other REVIEW comments.

Sorry for the week-long gap in processing this PR, as I've been busy with work lately.

@ku4in
Copy link
Contributor Author

ku4in commented Jun 27, 2024

Thanks for the review! I hope the suggested changes are found useful and added to the project.

@zfl9 zfl9 changed the base branch from master to dev July 10, 2024 09:26
@zfl9 zfl9 merged commit 19eb638 into zfl9:dev Jul 10, 2024
@zfl9
Copy link
Owner

zfl9 commented Jul 10, 2024

Merged, thanks.

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

Successfully merging this pull request may close these issues.

2 participants