Skip to contentSkip to conversation

DNAT/NAPT

DISCUSSION Ugo Bellavance 2 participants 3 messages Nov 23, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I think that it is possible to achieve some kind of load-balancing
between two servers using iptables NAPT (Network and port translation, which is usually called port forwarding).

I want to run 2 web servers and use my firewall to do some load-balancing between them, but I was wondering if it only forwarded the packets on some round-robin way, even if one host is down. To summarize, I want to know if I can do some automatic failover with iptables.

If you need more info, let me know

Thanks

Ugo

#1 lore raw
Quoted 6 lines · Ugo Bellavance

Hi,

I think that it is possible to achieve some kind of load-balancing
between two servers using iptables NAPT (Network and port translation, which is usually called port forwarding).

Quoted 6 lines

I want to run 2 web servers and use my firewall to do some load-balancing between them, but I was wondering if it only forwarded the packets on some round-robin way, even if one host is down. To summarize, I want to know if I can do some automatic failover with iptables.

If you need more info, let me know

why not do it for real?

http://www.linuxvirtualserver.org/

-j

--
"That's it! You people have stood in my way long enough. I'm going
to clown college!"
--The Simpsons

#2 lore raw
Quoted 7 lines · Jason Opperisano
Quoted 5 lines · Ugo Bellavance

Hi,

I think that it is possible to achieve some kind of load-balancing
between two servers using iptables NAPT (Network and port translation, which is usually called port forwarding).

Quoted 8 lines
Quoted 3 lines

I want to run 2 web servers and use my firewall to do some load-balancing between them, but I was wondering if it only forwarded the packets on some round-robin way, even if one host is down. To summarize, I want to know if I can do some automatic failover with iptables.

If you need more info, let me know

why not do it for real?

http://www.linuxvirtualserver.org/

Because, in fact, I'll be using trustix firewall and I know it is based on iptables, and I don't want to do the work if it's already been done.

I'll check lvs if it doesn't do what I want.

Thanks,

Quoted 9 lines

-j

--
"That's it! You people have stood in my way long enough. I'm going
to clown college!"
--The Simpsons