Re: [squid-users] Port Problem with squid

From: Edward Dam <damfam_at_gmail.com>
Date: Mon, 2 Jun 2008 13:48:34 +0800

I've cleared the rules, and then applied your recommended iptables command.

Unfortunately, it puts me right back to where I started. When the
www.example.com redirects to http://www2.example.com:8098/login.aspx,
it never gets there and times out.

The rule that I put in to forward port 8098 requests to 3128 seems to
have gotten me further (at least an error message rather than a
timeout)

Thanks to everyone for their help thusfar.

>

On Mon, Jun 2, 2008 at 1:17 PM, Indunil Jayasooriya <indunil75_at_gmail.com> wrote:
>>> When a user points to www.example.com, that webpage/server redirects
>
> this is an port 80 request
>
>
>>> them to http://www2.example.com:8098/login.aspx
>
> then, it should redirect to port 8098
>
> So, I think , pls try below.
>
> iptables -t nat -A PREROUTING -m tcp -p tcp -d www.example.com
> --dport 80 -j REDIRECT --to-port 8098
>
>
>
> --
> Thank you
> Indunil Jayasooriya
>
Received on Mon Jun 02 2008 - 05:48:37 MDT

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