Re: [squid-users] Port Problem with squid

From: Edward Dam <damfam_at_gmail.com>
Date: Mon, 2 Jun 2008 12:38:17 +0800

I have now redirected the port, using the following command:

iptables -t nat -A PREROUTING -m tcp -p tcp --dport 8098 -j REDIRECT
--to-port 3128

It seems I am getting further, but now I get:
__________________________________________

ERROR
The requested URL could not be retrieved

While trying to process the request:

GET /login.aspx HTTP/1.1
Host: example.com:8098
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.example.com/Page/Default.aspx

The following error was encountered:

    * Invalid Request

Some aspect of the HTTP Request is invalid. Possible problems:

    * Missing or unknown request method
    * Missing URL
    * Missing HTTP Identifier (HTTP/1.0)
    * Request is too large
    * Content-Length missing for POST or PUT requests
    * Illegal character in hostname; underscores are not allowed

Your cache administrator is webmaster
__________________________________________________________________

.
Any thoughts on this one?

On Mon, Jun 2, 2008 at 10:27 AM, Wenderson Souza
<wendersonsouza_at_gmail.com> wrote:
> 2008/6/1 Edward Dam <damfam_at_gmail.com>:
>> We have one intranet site: www.example.com
>>
>> When a user points to www.example.com, that webpage/server redirects
>> them to http://www2.example.com:8098/login.aspx
>>
>> The redirection is timing out. I've put port 8098 as one of the
>> Safe_ports in squid.conf, and allowed both example.com and
>> www2.example.com in my filters. Still no go. My iptables configuration
>> on the squid server is wide open, with the exception of the
>> redirection of port 80 to 8080.
>>
>> Any ideas, or suggestions for me?
>>
>
> the port 8098 isn't redirected to squid.
>
> this port is probabily passing out of proxy.
>
> --
> Wenderson Souza
> e-mail: wendersonsouza_at_gmail.com
> msn: wendersonsouza_at_msn.com
>
Received on Mon Jun 02 2008 - 04:38:20 MDT

This archive was generated by hypermail 2.2.0 : Mon Jun 02 2008 - 12:00:03 MDT