From 7fe813949644b115b0127279517dc7c0ee2d63b9 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 23 Sep 2020 22:00:29 +0100 Subject: experimental new feature: proxy_dns_daemon since many users complain about issues with modern, ultracomplex clusterfuck software such as chromium, nodejs, etc, i've reconsidered one of my original ideas how to implement remote dns lookup support. instead of having a background thread serving requests via a pipe, the user manually starts a background daemon process before running proxychains, and the two processes then communicate via UDP. this requires much less hacks (like hooking of close() to prevent pipes from getting closed) and doesn't need to call any async-signal unsafe code like malloc(). this means it should be much more compatible than the previous method, however it's not as practical and slightly slower. it's recommended that the proxychains4-daemon runs on localhost, and if you use proxychains-ng a lot you might want to set ip up as a service that starts on boot. a single proxychains4-daemon should theoretically be able to serve many parallel proxychains4 instances, but this has not yet been tested so far. it's also possible to run the daemon on other computers, even over internet, but currently there is no error-checking/ timeout code at all; that means the UDP connection needs to be very stable. the library code used for the daemon sources are from my projects libulz[0] and htab[1], and the server code is loosely based on microsocks[2]. their licenses are all compatible with the GPL. if not otherwise mentioned, they're released for this purpose under the standard proxychains-ng license (see COPYING). [0]: https://github.com/rofl0r/libulz [1]: https://github.com/rofl0r/htab [2]: https://github.com/rofl0r/microsocks --- src/remotedns.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/remotedns.h') diff --git a/src/remotedns.h b/src/remotedns.h index f4be974..588e09a 100644 --- a/src/remotedns.h +++ b/src/remotedns.h @@ -4,6 +4,8 @@ #include #include "ip_type.h" +#define MSG_LEN_MAX 256 + enum at_msgtype { ATM_GETIP = 0, ATM_GETNAME, -- cgit v1.2.3