2010/1/7 XANi <[email protected]>
> Dnia 2010-01-07, czw o godzinie 11:29 +0800, Joe P.H. Chiang pisze: > > Hi All > > I was wondering if the HA Proxy's Balancing Mechanism be called a NAT > Mechanism, because it's masking the servers' IP addresses, and then route > the traffic to the location. > > > > because i was just discussing with my colleague, and my argument is that: > it's only a proxy which in between two pc there are a surrogate pc to tell > where the traffic's destination is. > > > -- > Thanks, > Joe > > > Well, NAT is "get packet, rewrite IP headers, send packet somewhere". > In haproxy it's "get packet, analyze headers, change headers, send it to > backend server, rewrite/analyze response, send it back to client, then > maintain connection between those 2" > > Basically, NAT is on level 3, proxy is on level 7. > LVS(http://www.linuxvirtualserver.org/) is basically NAT in one if its > modes. HAProxy is not "Network Address Translator" tho it can be used to > replace it in some cases. > > -- > Mariusz Gronczewski (XANi) <[email protected]> > GnuPG: 0xEA8ACE64http://devrandom.pl > > I would say the biggest difference is that a proxy calls 'accept' and therefore provides an endpoint for a service. A NAT doesn't do much besides translate destination IP headers on the way in and source IP headers on the way out.

