Skip to contentSkip to conversation

WAN balancing

DISCUSSION Dimitri Yioulos 3 participants 5 messages May 5, 2011

lore
Share & tools
lore
#0 lore raw

Good morning, all.

I've searched for a clear guide on setting up my iptables/Netfilter firewall/router to do WAN balancing. I have two providers - one is T1 and the other broadband). Currently, I'm using the T1 provider to send and receive traffic on. I'd like to use both.

I have one LAN interface, one WAN interface, and one DMZ interface. The DMZ utilizes several virtual interfaces. I can easily add a fourth physical NIC. Beyond this, I'm not sure what other information I can provide, but I'm happy to do so.

Your help would be greatly appreciated.

Dimitri

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#1 lore raw

http://lartc.org/howto/lartc.rpdb.multiple-links.html

That should help.

Quoted 30 lines · Dimitri Yioulos

Good morning, all.

I've searched for a clear guide on setting up my iptables/Netfilter firewall/router to do WAN balancing.  I have two providers - one is T1 and the other broadband).  Currently, I'm using the T1 provider to send and receive traffic on.  I'd like to use both.

I have one LAN interface, one WAN interface, and one DMZ interface.  The DMZ utilizes several virtual interfaces.  I can easily add a fourth physical NIC.  Beyond this, I'm not sure what other information I can provide, but I'm happy to do so.

Your help would be greatly appreciated.

Dimitri

--
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

#2 lore raw

I didn't understand exactly where you want apply your load Balance but follow the command that does the load balance.
you must have two route in your route table:

ip route add default scope global equalize nexthop via 200.247.209.65 weight 1 nexthop via 200.247.209.6 weight 1

before you insert the load balance command check your table route with " ip route show "

you will see there is only one default route.

insert load balance command and check again your table route with " ip route show "

and must appear two default gateway.

ip route add default scope global equalize nexthop via 200.247.209.65 weight 2 nexthop via 200.247.209.6 weight 1

I hope help!

2011/5/5 Matty Sarro <[email protected]>:

Quoted 40 lines

http://lartc.org/howto/lartc.rpdb.multiple-links.html

That should help.

Quoted 25 lines · Dimitri Yioulos

Good morning, all.

I've searched for a clear guide on setting up my iptables/Netfilter firewall/router to do WAN balancing.  I have two providers - one is T1 and the other broadband).  Currently, I'm using the T1 provider to send and receive traffic on.  I'd like to use both.

I have one LAN interface, one WAN interface, and one DMZ interface.  The DMZ utilizes several virtual interfaces.  I can easily add a fourth physical NIC.  Beyond this, I'm not sure what other information I can provide, but I'm happy to do so.

Your help would be greatly appreciated.

Dimitri

--
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to Matty Sarro

If I may, the how-to you've pointed out has to do with routing which, of course, is important. Are there any changes/additions I need to make to my iptables ruleset, as well?

Best,

Dimitri

Quoted 6 lines · Matty Sarro

http://lartc.org/howto/lartc.rpdb.multiple-link
s.html

That should help.

On Thu, May 5, 2011 at 9:01 AM, Dimitri Yioulos

Quoted 31 lines · <[email protected]> wrote:
Quoted 31 lines

Good morning, all.

I've searched for a clear guide on setting up my iptables/Netfilter firewall/router to do WAN balancing.  I have two providers - one is T1 and the other broadband).  Currently, I'm using the T1 provider to send and receive traffic on.  I'd like to use both.

I have one LAN interface, one WAN interface, and one DMZ interface.  The DMZ utilizes several virtual interfaces.  I can easily add a fourth physical NIC.  Beyond this, I'm not sure what other information I can provide, but I'm happy to do so.

Your help would be greatly appreciated.

Dimitri

--
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected] More majordomo info at
 http://vger.kernel.org/majordomo-info.html

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#4 lore raw

you have add rules NAT POSTROUTING for each link.

for exemplo, for your out Internet Traffic you have add two NAT POSTROUTING each one on Interface WAN.

2011/5/5 Dimitri Yioulos <[email protected]>:

Quoted 63 lines

If I may, the how-to you've pointed out has to do
with routing which, of course, is important.  Are
there any changes/additions I need to make to my
iptables ruleset, as well?

Best,

Dimitri

Quoted 6 lines · Matty Sarro

http://lartc.org/howto/lartc.rpdb.multiple-link
s.html

That should help.

On Thu, May 5, 2011 at 9:01 AM, Dimitri Yioulos

Quoted 25 lines · <[email protected]> wrote:
Quoted 25 lines

Good morning, all.

I've searched for a clear guide on setting up my iptables/Netfilter firewall/router to do WAN balancing.  I have two providers - one is T1 and the other broadband).  Currently, I'm using the T1 provider to send and receive traffic on.  I'd like to use both.

I have one LAN interface, one WAN interface, and one DMZ interface.  The DMZ utilizes several virtual interfaces.  I can easily add a fourth physical NIC.  Beyond this, I'm not sure what other information I can provide, but I'm happy to do so.

Your help would be greatly appreciated.

Dimitri

--
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Quoted 6 lines
Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected] More majordomo info at
 http://vger.kernel.org/majordomo-info.html

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html