tinyproxy / tinyproxy

tinyproxy - a light-weight HTTP/HTTPS proxy daemon for POSIX operating systems
GNU General Public License v2.0
4.67k stars 645 forks source link

Bad Request error #508

Closed hack3rcon closed 9 months ago

hack3rcon commented 9 months ago

Hello, I installed the TinyProxy 1.11.1 on Debian 12. My Linux box has two NICs as below:

enp0s3: 10.0.2.15  (NAT)
enp0s8: 192.168.1.2 (Local)

I changed the TinyProxy configuration file as below:

Allow 10.0.2.15
Allow 192.168.1.0/24
Listen 192.168.1.2

ConnectPort 80
ConnectPort 443

ReversePath "/" "http://192.168.1.2:8888/"
ReverseOnly Yes
ReverseMagic Yes

Then, restarted the TinyProxy service. On the client machine, I set the browser proxy to 192.168.1.2:8888, but when I want to visit any website, it showed me:

Bad Request
No mapping found for requested url

Which part of the configuration is wrong?

Thank you.

hack3rcon commented 9 months ago

Hello, I just removed the following lines and problem solved:

ReversePath "/" "http://192.168.1.2:8888/"
ReverseOnly Yes
ReverseMagic Yes

Thank you.