No response from proxy
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.
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
??? 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
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
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.