Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why PowerTunnel uses tcp6 #146

Open
SalimF opened this issue Mar 29, 2023 · 4 comments
Open

Why PowerTunnel uses tcp6 #146

SalimF opened this issue Mar 29, 2023 · 4 comments
Labels
bug Something isn't working question Further information is requested

Comments

@SalimF
Copy link

SalimF commented Mar 29, 2023

Hi I set up PowerTunnel to use my private SOCKS5 proxy and I start it, I change my browser proxy to use
127.0.0.1:8085 but I always get this error message
ERR_TUNNEL_CONNECTION_FAILED

anyway when I check the port using netstat -tunalp I got this output

tcp6 0 0 127.0.0.1:8085 :::* LISTEN 4731/java

=Edit=

The issue not related to localhost server connection, but looks like PowerTunnel unable to make connect to upstream SOCKS5 proxy I'm using, my guess is due to authentication issue, the same SOCKS5 proxy works with authentication when i test it with

curl --socks5 199.99.99.99:90099 --proxy-user USER:PASSWORD https://lumtest.com/myip.json

@krlvm krlvm added the question Further information is requested label Mar 30, 2023
@krlvm
Copy link
Owner

krlvm commented Mar 30, 2023

Seems like it is being used by LittleProxy, which powers the application

@SalimF
Copy link
Author

SalimF commented Mar 30, 2023

Alright, I don't know what is happened, but when I use HTTP proxy on PowerTunnel the localhost proxy works.
image

but when I use my other SOCKS5 proxy, I lost the connection on my browser .. I got this error ERR_TIMED_OUT
When I change my browser proxy to us HTTP, I got this error ERR_TUNNEL_CONNECTION_FAILED

image

BTW the external SOCKS proxy works with authentication when it test it with curl
curl --socks5 199.99.99.99:90099 --proxy-user USER:PASSWORD https://lumtest.com/myip.json

but when connect to localhost server I got this error

curl --proxy   127.0.0.1:8085  https://lumtest.com/myip.json
curl: (56) CONNECT tunnel failed, response 502

@krlvm
Copy link
Owner

krlvm commented Mar 30, 2023

Weird indeed, I get a lot of reports that SOCKS upstream proxies don't work sometimes, but I can't reproduce the problem and I still can't get any light on this.

Do you know which SOCKS server software is being used?
Can you check if there are any errors in PowerTunnel logs?

@SalimF
Copy link
Author

SalimF commented Mar 30, 2023

Do you know which SOCKS server software is being used?

for the external server, No, its paid service .

=Edit=

When I use my other external SOCKS5 (uses 3proxy) that had no authentication, the tunnel works

 curl --proxy   127.0.0.1:8085  https://lumtest.com/myip.json
{"ip":"199.99.99.99","country":"US","asn":{"asnum":,"org_name":"................."},"geo":{"city":".........","region":"00","region_name":"........","postal_code":"0000","latitude":00.0000,"longitude":00.0000,"tz":"America/","lum_city":"...................","lum_region":"00"}

This is the log..

WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
> 11:06:36.459 [Thread-0] INFO  i.g.k.p.PowerTunnel - Registered plugin 'DNS' [dns] v1.0.2 (3) by krlvm
11:06:36.470 [Thread-0] INFO  i.g.k.p.PowerTunnel - Registered plugin 'LibertyTunnel' [libertytunnel] v1.0.7 (8) by krlvm
11:06:36.502 [Thread-0] INFO  i.g.k.p.p.l.LibertyTunnel - Loading local blacklist...
11:06:36.508 [Thread-0] INFO  i.g.k.p.p.l.LibertyTunnel - Loaded 0 blocked websites
11:06:36.525 [Thread-0] INFO  i.g.k.p.LittleProxyServer - Starting LittleProxy Server...
11:06:36.708 [Thread-0] INFO  o.l.p.i.DefaultHttpProxyServer - Starting proxy at address: /127.0.0.1:8085
11:06:36.772 [Thread-0] INFO  o.l.p.i.DefaultHttpProxyServer - Proxy listening with TCP transport
11:06:36.929 [Thread-0] INFO  o.l.p.i.DefaultHttpProxyServer - Proxy started at address: /127.0.0.1:8085
11:06:36.931 [Thread-0] INFO  i.g.k.p.LittleProxyServer - LittleProxy Server is listening at 127.0.0.1:8085
11:06:36.931 [Thread-0] INFO  i.g.k.p.d.a.DesktopApp - Serving at 127.0.0.1:8085
11:06:47.058 [LittleProxy-0-ProxyToServerWorker-0] INFO  o.l.p.i.ProxyToServerConnection - (AWAITING_CONNECT_OK) [id: 0x4152dec1, L:/192.168.1.50:42210 ! R:/199.99.99.99:90099]: Connection to upstream server via chained proxy failed
11:06:47.075 [LittleProxy-0-ClientToProxyWorker-0] INFO  o.l.p.i.ClientToProxyConnection - (NEGOTIATING_CONNECT) [id: 0xcbc49906, L:/127.0.0.1:8085 - R:/127.0.0.1:45358]: An IOException occurred on ClientToProxyConnection: Connection reset

@krlvm krlvm added the bug Something isn't working label Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants