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