-
Notifications
You must be signed in to change notification settings - Fork 743
Closed
Description
When trying to configure reverse proxy, the following problem occurs

Used configuration:
User nobody
Group nobody
Port 8888
Listen 10.15.0.14
Bind 192.168.0.101
Timeout 6000
DefaultErrorFile "@pkgdatadir@/default.html"
StatFile "@pkgdatadir@/stats.html"
LogLevel Info
MaxClients 100
Allow 10.15.0.14
ViaProxyName "tinyproxy"
ReversePath "/google/" "https://www.google.com/"
ReversePath "/ya/" "https://geocode-maps.yandex.ru/"
ReverseOnly Yes
ReverseMagic Yes
Testing was done on one machine (10.15.0.14)
Log:
NOTICE Feb 02 22:53:59.767 [2395924]: Initializing tinyproxy ...
NOTICE Feb 02 22:53:59.767 [2395924]: Reloading config file
INFO Feb 02 22:53:59.767 [2395924]: Added address [10.15.0.14] to listen addresses.
INFO Feb 02 22:53:59.767 [2395924]: Added bind address [192.168.0.101] for outgoing connections.
INFO Feb 02 22:53:59.767 [2395924]: Setting "Via" header to 'tinyproxy'
INFO Feb 02 22:53:59.767 [2395924]: Added reverse proxy rule: /google/ -> https://www.google.com/
INFO Feb 02 22:53:59.767 [2395924]: Added reverse proxy rule: /ya/ -> https://geocode-maps.yandex.ru/
NOTICE Feb 02 22:53:59.767 [2395924]: Reloading config file finished
INFO Feb 02 22:53:59.767 [2395924]: listen_sock called with addr = '10.15.0.14'
INFO Feb 02 22:53:59.767 [2395924]: trying to listen on host[10.15.0.14], family[2], socktype[1], proto[6]
INFO Feb 02 22:53:59.767 [2395924]: listening on fd [3]
INFO Feb 02 22:53:59.767 [2395924]: Not running as root, so not changing UID/GID.
INFO Feb 02 22:53:59.767 [2395924]: Setting the various signals.
INFO Feb 02 22:53:59.767 [2395924]: Starting main loop. Accepting connections.
CONNECT Feb 02 22:54:01.308 [2395924]: Connect (file descriptor 5): 10.15.0.14
CONNECT Feb 02 22:54:01.308 [2395924]: Connect (file descriptor 4): 10.15.0.14
CONNECT Feb 02 22:54:01.308 [2395924]: Request (file descriptor 4):
CONNECT Feb 02 22:54:01.308 [2395924]: Request (file descriptor 5):
CONNECT Feb 02 22:54:21.322 [2395924]: Connect (file descriptor 6): 10.15.0.14
CONNECT Feb 02 22:54:21.326 [2395924]: Request (file descriptor 6): GET /google/ HTTP/1.1
CONNECT Feb 02 22:54:21.326 [2395924]: Rewriting URL: /google/ -> https://www.google.com/
INFO Feb 02 22:54:21.326 [2395924]: process_request: trans Host GET http://10.15.0.14:8888https://www.google.com/ for 6
ERROR Feb 02 22:54:21.326 [2395924]: transparent: destination IP 10.15.0.14 is local on socket fd 6
CONNECT Feb 02 22:54:21.422 [2395924]: Connect (file descriptor 6): 10.15.0.14
CONNECT Feb 02 22:54:21.422 [2395924]: Request (file descriptor 6): GET /favicon.ico HTTP/1.1
ERROR Feb 02 22:54:21.422 [2395924]: Bad request, no mapping for '/favicon.ico' found
WARNING Feb 02 22:54:31.308 [2395924]: Could not retrieve all the headers from the client
ERROR Feb 02 22:54:31.308 [2395924]: Error reading readable client_fd 4
WARNING Feb 02 22:54:31.308 [2395924]: Could not retrieve request entity
WARNING Feb 02 22:54:31.308 [2395924]: Could not retrieve all the headers from the client
ERROR Feb 02 22:54:31.308 [2395924]: Error reading readable client_fd 5
WARNING Feb 02 22:54:31.308 [2395924]: Could not retrieve request entity
CONNECT Feb 02 22:56:42.372 [2395924]: Connect (file descriptor 4): 10.15.0.14
CONNECT Feb 02 22:56:42.372 [2395924]: Connect (file descriptor 5): 10.15.0.14
CONNECT Feb 02 22:56:42.372 [2395924]: Connect (file descriptor 6): 10.15.0.14
CONNECT Feb 02 22:56:42.373 [2395924]: Request (file descriptor 4):
CONNECT Feb 02 22:56:42.373 [2395924]: Request (file descriptor 5):
WARNING Feb 02 22:57:12.373 [2395924]: Could not retrieve all the headers from the client
ERROR Feb 02 22:57:12.373 [2395924]: Error reading readable client_fd 4
WARNING Feb 02 22:57:12.373 [2395924]: Could not retrieve request entity
WARNING Feb 02 22:57:12.373 [2395924]: Could not retrieve all the headers from the client
ERROR Feb 02 22:57:12.373 [2395924]: Error reading readable client_fd 5
WARNING Feb 02 22:57:12.373 [2395924]: Could not retrieve request entity
ERROR Feb 02 22:58:09.186 [2395924]: read_request_line: Client (file descriptor: 6) closed socket before read.
ERROR Feb 02 22:58:09.186 [2395924]: Error reading readable client_fd 6
WARNING Feb 02 22:58:09.186 [2395924]: Could not retrieve request entity
CONNECT Feb 02 22:58:28.923 [2395924]: Connect (file descriptor 4): 10.15.0.14
CONNECT Feb 02 22:58:28.923 [2395924]: Connect (file descriptor 5): 10.15.0.14
CONNECT Feb 02 22:58:28.924 [2395924]: Connect (file descriptor 6): 10.15.0.14
CONNECT Feb 02 22:58:28.924 [2395924]: Request (file descriptor 4):
CONNECT Feb 02 22:58:28.924 [2395924]: Request (file descriptor 5):
WARNING Feb 02 22:58:58.924 [2395924]: Could not retrieve all the headers from the client
ERROR Feb 02 22:58:58.924 [2395924]: Error reading readable client_fd 4
WARNING Feb 02 22:58:58.924 [2395924]: Could not retrieve request entity
WARNING Feb 02 22:58:58.924 [2395924]: Could not retrieve all the headers from the client
ERROR Feb 02 22:58:58.925 [2395924]: Error reading readable client_fd 5
WARNING Feb 02 22:58:58.925 [2395924]: Could not retrieve request entity
ERROR Feb 02 22:59:59.662 [2395924]: read_request_line: Client (file descriptor: 6) closed socket before read.
ERROR Feb 02 22:59:59.662 [2395924]: Error reading readable client_fd 6
WARNING Feb 02 22:59:59.662 [2395924]: Could not retrieve request entity
CONNECT Feb 02 23:06:00.251 [2395924]: Connect (file descriptor 4): 10.15.0.14
CONNECT Feb 02 23:06:00.251 [2395924]: Request (file descriptor 4): GET /google/ HTTP/1.1
CONNECT Feb 02 23:06:00.251 [2395924]: Rewriting URL: /google/ -> https://www.google.com/
INFO Feb 02 23:06:00.251 [2395924]: process_request: trans Host GET http://10.15.0.14:8888https://www.google.com/ for 4
ERROR Feb 02 23:06:00.251 [2395924]: transparent: destination IP 10.15.0.14 is local on socket fd 4
berlix
Metadata
Metadata
Assignees
Labels
No labels