Closed ku4in closed 4 months ago
Compilation failed.
The requested changes have been made. Please review again.
The indents have been aligned and unnecessary empty lines have been removed. Please review again.
Typos have been corrected. Please review again.
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.
Thanks for the review! I hope the suggested changes are found useful and added to the project.
Merged, thanks.
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 useip route
andip rule
commands to route traffic to DNS server as you wish.