http-proxy-ipv6-pool icon indicating copy to clipboard operation
http-proxy-ipv6-pool copied to clipboard

No response from proxy

Open ggtylerr opened this issue 1 year ago • 4 comments

The software can listen and receive requests, but never responds:

$ pm2 logs 2
/home/test/.pm2/logs/64-out.log last 15 lines:
2|64       | ifconfig.co:443 via [####:####:####:####:####:####:####:####]:53169
2|64       | ipv6.ip.sb via ####:####:####:####:####:####:####:####
2|64       | ifconfig.co:443 via [####:####:####:####:####:####:####:####]:27327
2|64       | ipv6.ip.sb via ####:####:####:####:####:####:####:####
2|64       | ipv6.ip.sb via ####:####:####:####:####:####:####:####
2|64       | ifconfig.co:443 via [####:####:####:####:####:####:####:####]:52845
2|64       | ifconfig.co:443 via [####:####:####:####:####:####:####:####]:42326
2|64       | example.com via ####:####:####:####:####:####:####:####
2|64       | example.com via ####:####:####:####:####:####:####:####
2|64       | ipv6.ip.sb via ####:####:####:####:####:####:####:####

$ curl -6 ipv6.ip.sb
####:####:####:####::
$ curl -v -x http://127.0.0.1:51080 http://ipv6.ip.sb
*   Trying 127.0.0.1:51080...
* Connected to 127.0.0.1 (127.0.0.1) port 51080
> GET http://ipv6.ip.sb/ HTTP/1.1
> Host: ipv6.ip.sb
> User-Agent: curl/8.5.0
> Accept: */*
> Proxy-Connection: Keep-Alive
> 
* Empty reply from server
* Closing connection
curl: (52) Empty reply from server
$ curl -v --proxy http://127.0.0.1:51080 http://ipv6.ip.sb
*   Trying 127.0.0.1:51080...
* Connected to 127.0.0.1 (127.0.0.1) port 51080
> GET http://ipv6.ip.sb/ HTTP/1.1
> Host: ipv6.ip.sb
> User-Agent: curl/8.5.0
> Accept: */*
> Proxy-Connection: Keep-Alive
> 

I've followed everything in the README and IPv6 is clearly working on the server.

ggtylerr avatar Apr 13 '25 23:04 ggtylerr

Did you start the app with the correct flags?

./httpproxy -b 127.0.0.1:51080 -i 2a12:bec0:165:106::/64,2a00:bec0:165:106::/64 -s eth0 -g 2001:4860:4860::8888

extremelyonline avatar Apr 15 '25 15:04 extremelyonline

??? There's no -s or -g flag? That's not mentioned anywhere in the code or --help. My startup command is:

./http-proxy-ipv6-pool -i ####.####.####.####::/64

$ ./http-proxy-ipv6-pool -s eth0

thread 'main' panicked at src/main.rs:29:13:
Unrecognized option: 's'
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

ggtylerr avatar Apr 15 '25 16:04 ggtylerr

Try the -b and -i flag. They are not documented but works for me.

./httpproxy -b 0.0.0.0:51080 -i 2a12:bec0:165:106::/64

extremelyonline avatar Apr 16 '25 01:04 extremelyonline

I'm already using the -i flag. I'm not using -b but it's clear from logs that the proxy is able to receive requests, so binding works.

ggtylerr avatar Apr 17 '25 18:04 ggtylerr