View Full Version : Mod proxy abuse?

April 22nd, 2009, 09:26 PM
A few days ago I enabled mod_proxy on Apache 2.2.9 and turned ProxyRequests on. Soon after someone started to use my server as a proxy, so I set ProxyRequests to off and unloaded mod_proxy and anything related to it.

Now I'm seeing some guy connect to IRC. First he uses "CONNECT" where is the other server's IP, and my server returns a 405 error.
Then he sends "POST" and my server return a 200 message. He uses HTTP/1.0.

I even unloaded mod_proxy and restarted Apache, is it still possible someone is using my server as a proxy? I'm using Debian Lenny, btw.

April 22nd, 2009, 09:48 PM
If mod_proxy is not being used, then the hostname given is ignored, and apache handles the request's URI. For example, these two commands yield the exact same results, assuming you haven't configured mod_proxy.

echo -e "GET / HTTP/1.0\n"|nc mydomain.com 80
echo -e "GET http://google.com/ HTTP/1.0\n"|nc mydomain.com 80

The second command may look like a successful proxy request in the logs, but "http://google.com" was ignored, and apache served "/" from your own server.

April 23rd, 2009, 01:49 PM
Thanks for your reply. I understand now.