Hi:
I am sorry that I post the OLD question. I just rephrase it.
Why? It is because noone can answer my question. They just say read this and read that.
Actuall I've tried all your suggestions and nothing works.
My NAT server is activated and I just add a command to block all the clients 10.100.129.0/24.
These clients go to the NAT apache.
When this client goes to "www.hotmail.com" or "www.yahoo.com", it is redirected to the NAT server homepage.
It works by this command.
/sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp -s 10.100.129.0/24 --dport 80 -j REDIRECT --to-port 80
However, when this client goes to "www.xxxxx.com/abcabc", it is redirected to "www.[NAT server].com/abcabc" and the apache inside the NAT server cannot find and homepage and return an error.
It can only replace
www.[client input server].com by
www.[NAT server].com. Not redirect.
Thus, pls. help. How can I do this?
thanks