rofl0r / proxychains-ng

proxychains ng (new generation) - a preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies. continuation of the unmaintained proxychains project. the sf.net page is currently not updated, use releases from github release page instead.
http://sourceforge.net/projects/proxychains-ng/files
GNU General Public License v2.0
9.79k stars 1.08k forks source link

Question: proxychains mount- and ping-commands and UDP-Protocols through socks5/http-Proxy #336

Open RichardBeisser opened 4 years ago

RichardBeisser commented 4 years ago

Hello,

is it possible to use proxychains with mount-command or ping-command? Can I use proxychains for UDP-Protocolls like ntp for sync time, or RTP for Voip?

If yes, how?

Thanks.

Usecase: I want to sync date/time on my rPI. I also want to mount some webdav-Drives. For connecting to internet i am using a android-smartphone an tethering. Because the phone uses a VPN, Tethering-Traffic dont go through VPN (general problem of android). So i have to use a socksproxy-Server-App to bring the tethering-traffic though the VPN.

rofl0r commented 4 years ago

udp: no icmp (ping): no mount webdav? depends on whether it uses TCP behind the scenes, if so it should be possible.

RichardBeisser commented 4 years ago

you said that proxychains do not support udp but socks5 supports UDP: https://en.wikipedia.org/wiki/SOCKS#SOCKS5 Could you explain why it do not work?

when I mount a webdav-Drive using mount, tcp will be used. Do you know how I get working it with proxychains?

rofl0r commented 4 years ago

but socks5 supports UDP

theoretically yes, but i've so far not seen any socks5 server software that supports it (and the 2 i authored myself don't either). most people go for the low-hanging fruit

RichardBeisser commented 4 years ago

here is an example of a socks5 server which supports. https://socks-server-settings.de.aptoide.com/app Does proxychains support UDP at the moment, or do you have to change something in the software?

rofl0r commented 4 years ago

Does proxychains support UDP at the moment

no

do you have to change something in the software?

yes, we'd need to hook the libc functions that send UDP datagrams, handle the socks5 udp protocol and add special-case code to reject socks4 and http proxies for this scenario.

RichardBeisser commented 4 years ago

yes, we'd need to hook the libc functions that send UDP datagrams, handle the socks5 udp protocol and add special-case code to reject socks4 and http proxies for this scenario.

have you plans to do this? I am asking because of see usecase above.

rofl0r commented 4 years ago

have you plans to do this?

no, i've never needed this functionality. i may consider to merge it though if someone comes up with a well-written PR.

NyaMisty commented 2 years ago

good test tool: gost