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

HTTP CONNECT requests in Apache web server log

· 52CE 我爱测

I have an Apache webserver which serves the domain www.mypersonaldomain.com and I found these entries (and more like these) in access log. 88.218.227.227 - - [28/May/2021:08:56:29 +0000] "CONNECT minecraft.moin.games.:30003 HTTP/…

问题原文

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

I have an Apache webserver which serves the domain www.mypersonaldomain.com and I found these entries (and more like these) in access log.

88.218.227.227 - - [28/May/2021:08:56:29 +0000] "CONNECT minecraft.moin.games.:30003 HTTP/1.1" 302 213
88.218.227.227 - - [28/May/2021:08:57:03 +0000] "CONNECT minecraft.moin.games.:30003 HTTP/1.1" 302 213
88.218.227.227 - - [28/May/2021:08:58:19 +0000] "CONNECT minecraft.moin.games.:30003 HTTP/1.1" 302 213
34.91.147.149 - - [28/May/2021:10:34:44 +0000] "CONNECT play.destanmc.com:25565 HTTP/1.1" 302 210
34.91.147.149 - - [28/May/2021:10:35:08 +0000] "CONNECT play.destanmc.com:25565 HTTP/1.1" 302 210
34.91.147.149 - - [28/May/2021:10:35:16 +0000] "CONNECT play.destanmc.com:25565 HTTP/1.1" 302 210
34.91.147.149 - - [28/May/2021:10:35:46 +0000] "CONNECT play.destanmc.com:25565 HTTP/1.1" 302 210
194.93.56.130 - - [28/May/2021:16:40:12 +0000] "CONNECT 45.131.0.108:25565 HTTP/1.1" 404 13899
194.93.56.130 - - [28/May/2021:16:40:32 +0000] "CONNECT 45.131.108.30:25565 HTTP/1.1" 404 13920
194.163.135.185 - - [28/May/2021:17:52:52 +0000] "CONNECT play.arkflame.com:25566 HTTP/1.1\n" 400 226
194.163.135.185 - - [28/May/2021:17:52:52 +0000] "CONNECT play.arkflame.com:25566 HTTP/1.1\n" 400 226
212.47.244.68 - - [28/May/2021:20:14:24 +0000] "CONNECT www.mypersonaldomain.com:443 HTTP/1.1" 302 212
212.47.244.68 - - [28/May/2021:20:14:24 +0000] "CONNECT www.mypersonaldomain.com:443 HTTP/1.1" 302 212
212.47.244.68 - - [28/May/2021:20:14:24 +0000] "CONNECT www.mypersonaldomain.com:443 HTTP/1.1" 302 212
212.47.244.68 - - [28/May/2021:20:14:24 +0000] "CONNECT www.mypersonaldomain.com:443 HTTP/1.1" 302 212
212.47.244.68 - - [28/May/2021:20:14:24 +0000] "CONNECT www.mypersonaldomain.com:443 HTTP/1.1" 302 212
212.47.244.68 - - [28/May/2021:20:14:24 +0000] "CONNECT www.mypersonaldomain.com:443 HTTP/1.1" 302 212

The server is built on an AWS Lightsail instance using a Bitnami WordPress stack where the recommended, and the default, configuration is to configure Apache to serve static files (images, CSS, JavaScript and more) and use PHP_FPM with Apache’s mod_proxy module to handle PHP requests.

  1. Does those log entries about the requests with 302 response mean that my server is used as an open proxy?
  2. Why someone would ask my server to CONNECT that way to my domain?
  3. Is there something can I do in order to block redirections and secure my server without to disable mod_proxy?
  4. How could I send CONNECT requests by myself for testing?

已采纳解答

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

Does those entries (...) mean that my server is used as an open proxy?

No, 302 is just the code for "found" or "here is something". The server got a request and logged it.

Why someone would ask my server to CONNECT that way to my domain?

To find open proxies. There are thousands of services scanning servers like yours. For security or "other" reasons.

Is there something can I do in order to block redirections

A redirection is a clients thing, your server would have to send a 301 code (for example) to the client.

... and secure my server without to disable mod_proxy?

It is always a good practice to disable unused services and modules.

How could I send CONNECT requests by myself for testing?

You can use curl:

curl --proxy "http://<YOURSERVER>" "http://<ANOTHERSERVER>"

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

资料来源与适用范围

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

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

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