大网数据广告活动
服务器运维问答

How to block mysterious remote requests?

· 52CE 我爱测

My CentOS server is experiencing huge (millions a day) requests looking like this: Srv PID Acc M CPU SS Req Conn Child Slot Client Protocol VHost Request 62-1 - 0/0/335 . 0.00 1947 204049 0.0 0.00 0.85 104.248.57.218 http/1.1 www…

问题原文

原帖链接 · Nils Munch · CC BY-SA 4.0

My CentOS server is experiencing huge (millions a day) requests looking like this:

Srv PID Acc M   CPU SS  Req Conn    Child   Slot    Client  Protocol    VHost   Request
62-1    -   0/0/335 .   0.00    1947    204049  0.0 0.00    0.85    104.248.57.218  http/1.1    www.myrealdomain.co.uk:80   GET http://218.22.14.198/index HTTP/1.1

The request looks like my server is spending time serving or getting other pages content. I tried blocking the IPs, which only makes the source scramble up new IPs (both for the client and the request IP) and with no success.

I even have Cloudflare on high safety including their web app firewall, yet these requests still come in droves.

Can anyone explain why these are requested, and more importantly, how to prevent it altogether.

The server is running around 50 sites all basic configuration of WordPress, and it is a dedicated server.

社区高分解答

原帖链接 · faker · CC BY-SA 4.0

It is hard to say what exactly is going on here. However you state:

The request looks like my server is spending time serving or getting other pages content.

This together with the "GET http://218.22.14.198/index" sounds like you have misconfigured your system and are accidentally running a open proxy which is getting abused.
Basically other systems are now using your system as a proxy, usually to hide their IP address and not exactly doing things you want to be associated with.
You should as soon as possible investigate if this is the case.
A firewall rule here is just a bandaid and not the real solution.

If this is the case - and with the information provided it is impossible to tell - you need to reconfigure your system to stop being a open proxy. It depends on your specific webserver configuration how to do that.

More information for example for Apache httpd:
https://wiki.apache.org/httpd/ProxyAbuse

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-12-23)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。