Getting "Bad Request" when using M/Monit over port forwarding w/ NetGear
Martin Pala
martinp at tildeslash.com
Tue Apr 29 22:15:16 CEST 2008
Thanks for report, we'll look on it.
Cheers,
Martin
Konstantin Gredeskoul wrote:
> I just noticed a post earlier this month about a Bad Cookie header as
> well. I now realized that when I access the server from outside the
> firewall using hostname, i get this error, but if I use IP - no error
> and I can use it. So this definitely seems like a problem reading
> Google's domain cookies.
>
> I didn't see anyone post an example, so here's my cookie string that
> causes the trouble, as reported by FireBug.. It's all a single long
> string (in case it wraps in the email)
>
> __utma=217799886.1853046784.1206656186.1209405670.1209411555.37;
> __utmz=217799886.1206656186.1.1.utmccn=(referral)|utmcsr=kk.org|utmcct=/ct2/|utmcmd=referral
>
> Hope this helps.
> Konstantin
>
> On Mon, Apr 28, 2008 at 5:25 PM, Konstantin Gredeskoul
> <kigster at gmail.com> wrote:
>> Guys, sorry for the barrage of emails and questions, but that's a
>> noobie for you :-) I figured since the product in alpha I might as
>> well keep shouting out :)
>>
>> So I can now successfully see hosts on my local network, and receive
>> the events back, even though I have an alternate port specified for
>> M/Monit.
>>
>> However, when I add the port forwarding rule to my Netgear WTG router,
>> and then try to access M/Monit from outsite of my firewall, I get the
>> following error in the browser:
>>
>> Bad Request
>> Invalid Cookie header Zild/2.0
>>
>> A similar error appears in the error_log:
>>
>> 2008-04-28 17:15:40 [client X.X.X.X] HTTP 400 Bad Request (Invalid
>> Cookie header)
>>
>> This is happening when using Firefox or Safari on Mac OS-X 10.5.2
>>
>> If I telnet directly to the port (from outside) I do get the HTML back
>> (I've replaced the real IP with X.X.X.X).
>>
>> Any idea what's going on and how to fix it?
>>
>> Thanks
>>
>> =============================================
>>
>> # telnet X.X.X.X 9999
>> Trying X.X.X.X...
>> Connected to X.X.X.X.
>> Escape character is '^]'.
>> GET /index.csp HTTP/1.0
>>
>> HTTP/1.1 200 OK
>> Date: Tue, 29 Apr 2008 00:19:57 GMT
>> Server: Zild/2.0
>> Set-Cookie: zsessionid=B0F712960BF76A426E06B223EA75E067; Path=/
>> Content-Length: 1829
>> ETag: "1207521668-3951197039886
>> Content-Type: text/html
>> Last-Modified: Sun, 06 Apr 2008 15:41:08
>> Accept-Ranges: bytes
>> Expires: Sun, 21 Feb 1993 00:29:55 GMT
>> Cache-Control: no-cache, no-store, max-age=0, s-maxage=0
>> Pragma: No-cache
>> Connection: close
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 TRANSITIONAL//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
>>
>> etc....
>>
>>
>> --
>> Thanks
>> Konstantin
>>
>> blog » http://tektastic.com
>> music » http://polygroovers.com
>> gtalk » kigster
>>
>
>
>
More information about the mmonit-user
mailing list