Hi Ayca,

This is rather off-topic from iptables point of view. What you can do is
to configure your squid to do this redirection. Altough you can do this 
with iptables by mangle table checking out the string, it'd be 
irrelevant since the packets won't necessarily include the domain name. 
You'd better use a redirector with squid.

Regards,
Oyku Gencay

Ayca Ardic wrote:
> 
> 
> Hi,
> I have Redhat 7.2 kernel 2.4.7. This machine is a transparent proxy.
> I have this config for all web port requests to be directed to port 3128:
> 
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j
> REDIRECT --to-port 3128
> 
> But, I want my server to do one more thing.
> For some explicit sites, I do not want this port direction. I mean, if the
> outgoing packet is destinated for xxx domain, then forward the packet to the
> internet gateway. Otherwise, redirect the request to port 3128 on this
> server.
> 
> I read the iptables manuals but I couldn't find how to forward the packets
> to another server.
> 
> Can somebody help me to write the appropriate command.
> Thanx for your attention.
> Ayca
> 
> 
> 




Reply via email to