|
||||
As both Internet connections have similar bandwidth, consider using equal-cost multipath routing. The kernel will load-balance between the two routes. OpenBSD FAQ 6.14 explains how to provision this.
Quote:
A. The amount of data received. Q. Can I switch routes depending on the amount of data being received? A. Not unless you know in advance that the amount of data to be sent is large. How would you? Q. Ah, you are right. I wouldn't know. What about load balancing tools that examine HTTP requests? A. There is relayd(8). But while it can inspect and filter HTTP requests, its load-balancing is designed to sit in front of web servers, not web clients. And it, too, will not have advance knowledge of the size of data to be received. Q. So it is unlikely to be a solution for this? A. Correct. It is unlikely to be useful. Last edited by jggimi; 6th October 2015 at 01:03 PM. Reason: clarity and typo |
|
||||
Quote:
I need conf for pf .PF get internet from two ADSL modem and NAT it for 45 users. |
|
||||
Something similar to this rule fragment may work.
Code:
ISP1 = "<NIC for ISP 1>" ISP2 = "<NIC for ISP 2>" LAN = "<NIC for the local area network>" match out on $ISP1 from $LAN:network to any nat-to ($ISP1) match out on $ISP2 from $LAN:network to any nat-to ($ISP2) Last edited by jggimi; 6th October 2015 at 05:59 PM. Reason: typos |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Deleting whitespace from otherwise blank lines | J65nko | Guides | 4 | 18th June 2013 08:44 AM |
ksh: wrap lines? | Skinny | OpenBSD General | 11 | 3rd May 2013 11:30 PM |
Bewan ADSL modem bewan adsl pci | pico | OpenBSD Installation and Upgrading | 2 | 2nd April 2010 05:48 AM |
Putting Lines to Together. | bigb89 | Programming | 4 | 24th September 2008 03:59 AM |
Adding multiple lines into file | c0mrade | Programming | 4 | 7th June 2008 11:03 PM |