Re: NAT 1:N

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ric Messier wrote:
> Are you looking for redirect rules?
> -A PREROUTING -d w.x.y.z -p tcp -m tcp --dport 80 -j DNAT --to-destination 172.16.0.2
>
>
> You can't have two Web servers redirected through one IP address because there is only one port 80. You'd have to move the other Web server to another port. If you are looking for load balancing, you may need to look elsewhere.
>   
This cannot be done via iptables only, but this can be done with Apache
mod_proxy module. Install Apache on the router and proxy requests to
backend server discriminating by the servername (for example, proxy all
requests to http://web1.example.com/ to first Web server,
http://web2.example.com/ to the second).


Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux