2017-03-18 86 views
1

未经授权的连接我已经在CentOS的7机安装tinyproxy和tinyproxy.conf 更改了端口为8080 Wherenever我打的请求我在tinyproxy.log得到以下日志: -Tinyproxy不转发请求。充分利用<IP>

CONNECT Mar 15 08:14:42 [22148]: Connect (file descriptor 6): <IP> [<IP>] 
NOTICE Mar 15 08:14:42 [22148]: Unauthorized connection from "<IP>" [<IP>]. 
INFO  Mar 15 08:14:42 [22148]: Read request entity of 1200 bytes 

我请求正在到达代理服务器,并且代理服务器未将其转发到目标。

回答

0

在Tinyproxy配置文件(/etc/tinyproxy/tinyproxy.conf)中,您可以使用Allow指令显式指定将连接到代理的主机。您还可以注释掉或删除全部Allow <host>行以允许来自所有主机的连接。从配置文件中看到下面的描述(这里我已经注释掉了Allow 127.0.0.1,因为没有其他条目,所有连接都将被允许):

# Allow: Customization of authorization controls. If there are any 
# access control keywords then the default action is to DENY. Otherwise, 
# the default action is ALLOW. 
# 
# The order of the controls are important. All incoming connections are 
# tested against the controls based on order. 
# 
#Allow 127.0.0.1