proxychains-ng icon indicating copy to clipboard operation
proxychains-ng copied to clipboard

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

Open RichardBeisser opened this issue 5 years ago • 8 comments

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.

RichardBeisser avatar Jul 20 '20 16:07 RichardBeisser

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

rofl0r avatar Jul 24 '20 14:07 rofl0r

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?

RichardBeisser avatar Jul 26 '20 01:07 RichardBeisser

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

rofl0r avatar Jul 27 '20 18:07 rofl0r

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?

RichardBeisser avatar Aug 01 '20 08:08 RichardBeisser

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.

rofl0r avatar Aug 01 '20 10:08 rofl0r

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.

RichardBeisser avatar Aug 01 '20 11:08 RichardBeisser

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.

rofl0r avatar Aug 01 '20 15:08 rofl0r

good test tool: gost

NyaMisty avatar Apr 30 '22 01:04 NyaMisty