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

Connections to 192.168.57.101:25000 denied

Open xorwhat opened this issue 9 years ago • 8 comments

I'm trying to run a genymotion emulator through proxychains. Since the emulator uses the 192.168 private address range, I edited the proxychains.conf and uncommented the following line: localnet 192.168.0.0/255.255.0.0 It ignores every connection to the private adress but the ones which connect to port 25000: [proxychains] Random chain ... 127.0.0.1:9050 ... 192.168.57.101:25000 <--denied Failed to connect to VM (TcpStream) for main host connection, IP:Port=192.168.57.101:25000!!! I'm sorry if this isn't an actual issue, but I'm not very experienced with proxychains and didn't find any solution through Google either.

xorwhat avatar Dec 21 '15 17:12 xorwhat

we need more details... please paste your entire config, info about your OS, proxychains version etc...

this [proxychains] Random chain ... 127.0.0.1:9050 ... 192.168.57.101:25000 <--denied

cannot work since tor exit nodes dont know how to connect to 192.168.xxx.xxx however, if localnet is set correctly this shouldnt happen. what happens if you connect to 192.168.xxx.xxx on another port ?

rofl0r avatar Dec 21 '15 20:12 rofl0r

I'm using proxychains-ng 4.10-1 on Arch Linux. My config:

random_chain
chain_len = 1
proxy_dns 
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0 
localnet 192.168.0.0/255.255.0.0
socks4  127.0.0.1 9050

Other ports seem to work. When I comment out the localnet 192.168.0.0/255.255.0.0 entry, it shows me a lot of denied connections:

[proxychains] Random chain  ...  127.0.0.1:9050  ...  cloud.genymotion.com:443  ...  OK
[proxychains] Random chain  ...  127.0.0.1:9050  ...  192.168.57.101:24810 <--denied
[proxychains] Random chain  ...  127.0.0.1:9050  ...  192.168.57.101:24810 <--denied
[proxychains] Random chain  ...  127.0.0.1:9050  ...  192.168.57.101:24800 <--denied
[proxychains] Random chain  ...  127.0.0.1:9050  ...  192.168.57.101:24800 <--denied
[proxychains] Random chain  ...  127.0.0.1:9050  ...  192.168.57.101:22469 <--denied
[proxychains] Random chain  ...  127.0.0.1:9050  ...  192.168.57.101:22469 <--denied
[proxychains] Random chain  ...  127.0.0.1:9050  ...  192.168.57.101:22666 <--denied
[proxychains] Random chain  ...  127.0.0.1:9050  ...  192.168.57.101:22666 <--denied
[proxychains] Random chain  ...  127.0.0.1:9050  ...  192.168.57.101:24810 <--denied
[proxychains] Random chain  ...  127.0.0.1:9050  ...  192.168.57.101:24810 <--denied
[proxychains] Random chain  ...  127.0.0.1:9050  ...  192.168.57.101:24800 <--denied
[...]

And, when I uncomment it again, it just shows me that the connection on port 25000 was denied.

xorwhat avatar Dec 21 '15 21:12 xorwhat

try to comment out the localnet 127 stuff. iirc only one localnet is supported (may be wrong though).

rofl0r avatar Dec 22 '15 18:12 rofl0r

Unfortunately it doesn't change anything. Also, even if I write localnet 0.0.0.0/0.0.0.0 (which should allow all connections, right?) and comment out every other localnet stuff I get the same error.

xorwhat avatar Dec 22 '15 20:12 xorwhat

i tested your scenario: here i can connect fine to port 25000 of a host in localnet. the only difference in my config file is that i didn't omit [ProxyList] before specifying my proxy. appears to be an issue of the software you're using. did you test if connecting to :25000 without proxychains works ?

rofl0r avatar Dec 22 '15 21:12 rofl0r

I'm sorry, I too didn't omit [ProxyList]. And yes, it works if I use the software without proxychains. I just noticed it prints out

OpenGL connected to 192.168.57.101:25000
Port 22468 will be used for OpenGL data connections

, so the issue might have to do something with OpenGL. It seems like proxychains won't let OpenGL connect.

xorwhat avatar Dec 22 '15 22:12 xorwhat

I have the same question

strict_chain proxy_dns remote_dns_subnet 224 tcp_read_time_out 5000 tcp_connect_time_out 8000 socks5 10.0.2.95 1080

@xorwhat have you solve this problem? @rofl0r it's must be have some problem without proxychains.

zhangkevd avatar Feb 04 '16 09:02 zhangkevd

delete proxy_dns in /etc/proxychians.conf Can be used

Kolaris avatar Aug 14 '16 16:08 Kolaris