Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: http connect/proxy?
PostPosted: Thu Sep 17, 2009 12:06 pm 
Offline
Newbie

Joined: Thu Sep 17, 2009 11:55 am
Posts: 3
Website: http://ericoc.com/
AOL: ericz
Location: Philadelphia, PA
i'm sort of worried about the whole apache proxy features and wondering what exact an HTTP CONNECT request is...

i've been getting a bunch of stuff in my iptables.log from 205.209.161.158 scanning popular proxy ports (8080, 1080, 8081, 8010, 3128 etc..), but that's not really a big deal to me since all those connections just get dropped by iptables

i also checked my apache/httpd access_log and the same IP address was sending (or trying to send?) HTTP CONNECT requests through my web server and some googling tells me this is how apache is used as a proxy server... i don't want to be proxying random strangers traffic!

also, my httpd.conf has all the LoadModule lines for proxy_* modules commented out

an example from my access_log is here:
205.209.161.158 - - [17/Sep/2009:11:30:06 -0400] "CONNECT smtp.mail.yahoo.com.tw:25 HTTP/1.0" 301 298 "-" "-"

i see that apache is returning a 301 which i'm pretty sure is a redirect... if he was getting a 404 or a 403 or something, i wouldn't be so concerned...

so what should i do? or is a 301 absolutely normal for a blocked http connect request?


Top
   
 Post subject:
PostPosted: Thu Sep 17, 2009 6:48 pm 
Offline
Senior Member

Joined: Sun Aug 02, 2009 1:32 pm
Posts: 222
Website: https://www.barkerjr.net
Location: Connecticut, USA
When Apache encounters an invalid URL, it will usually serve up your default page. I'm guessing that your main page is a redirect.

You can test this with the telnet command. Bolded items are what you type or copy/paste.

$ telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
CONNECT smtp.mail.yahoo.com.tw:25 HTTP/1.0

And press enter twice.


Top
   
 Post subject:
PostPosted: Thu Sep 17, 2009 10:43 pm 
Offline
Newbie

Joined: Thu Sep 17, 2009 11:55 am
Posts: 3
Website: http://ericoc.com/
AOL: ericz
Location: Philadelphia, PA
ahhh.. it's throwing a 301 error code because of the way my apache virtual hosts are setup...

telnet shows a redirect to the main web page because my _default_ in apache is a RedirectPermanent to the main webpage

that solved it :D thanks!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group