2017-03-18 108 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