at this moment I have 3 Linux Boxes (Debian Etch 4.0)!
I am trying to use one of these as a "primary" server, who redirects all Requests to one of the two other boxes.
I want to use portforwarding, because the user should not see whats going on in the background.
I already have tried this method:
CODE
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j DNAT --to *.*.*.*:80
iptables -A INPUT -p tcp -m state --state NEW --dport 80 -i eth0 -j ACCEPT
iptables -A INPUT -p tcp -m state --state NEW --dport 80 -i eth0 -j ACCEPT
this works fine, but only local, but all the servers have a Static IP Adress (81.169.134.216, 87.98.140.108, 91.121.40.164)
this should work like this:
user requests "www.mydomain.com" (A: 81.169.134.216) the Server (81.169.134.216) Redirects the Request to a extern Server => 91.121.40.164
this should not be visible for the user
does anyone know how i can fix this problem?
greets from Austria
yours Stefan
PS: Sorry for my bad english
