Hello,
thanks for your advice.
I can't test it yet, because I have a problem with the
transparent proxy.
I used following command to redirect all incoming requests
on port 80:
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j
REDIRECT --to-port 880
But SUSE don't redirect the request.
On the client I have as the standard gateway the IP of the
proxy server and in the Firefox configuration no proxy.
I can't understand why that won't work, when I use the
proxy in the config von Firefox, it will work.
Regards,
Chris
----- Original Message -----
From: "Henrik Nordstrom" <henrik@xxxxxxxxxxxxxxxxxxx>
To: <a@xxxxxxx>
Sent: Wednesday, October 07, 2009 10:39 PM
Subject: Re: AW: Re: Squid and Intranet
ons 2009-10-07 klockan 11:22 +0200 skrev a@xxxxxxx:
> ons 2009-10-07 klockan 09:24 +0200 skrev a@xxxxxxx:
>> Hello,
>>
>> Sorry for my mistake.
>> It works.
>> But what is when I using the IP-Tables to route every request on port
>> 80
>> on my proxy port 880.
>> Will route the request for local IPs on the proxy port too?
>
> Yes. Unless you add exceptions for those before the REDIRECT..
>
> iptables -t nat -A PREROUTING -i eth0 -d local.network/mask -j ACCEPT
> iptables -t nat -A PREROUTING -i eth0 -d other.local.ip -j ACCEPT
>
> Regards
> Henrik
>
Also first I must add these rules and then my rule?
Yes, what I said (before the REDIRECT).
Regards
Henrik