[pfSense Support] dynamic load balancing

2009-08-20 Thread Michel Servaes
Hi,


I am wondering, if the following would be possible - and how to start with it.
I have this SDSL and ADSL connection - in where our ADSL has a
download limit of 25GB/month

If one bypasses the 25GB - the connection drops from 10mbits to 64kbits !
How can I make pfSense see this, so if this happens the connection
switches over to the SDSL connection (being 1mbit, still better than
64kbits).


ps. the SDSL connection must be preserved as much as possible - so it
only should jump to the SDSL, when the ADSL doesn't go any faster than
64kbits... (or if I can use an internal counter, that checks if the
25GB limit is passed - that's also ok)

Would this be possible, and where to start ?

Kind regards,
Michel

-
To unsubscribe, e-mail: support-unsubscr...@pfsense.com
For additional commands, e-mail: support-h...@pfsense.com

Commercial support available - https://portal.pfsense.org



Re: [pfSense Support] dynamic load balancing

2009-08-20 Thread Chris Buechler
On Thu, Aug 20, 2009 at 3:38 AM, Michel Servaesmic...@mcmc.be wrote:
 Hi,


 I am wondering, if the following would be possible - and how to start with it.
 I have this SDSL and ADSL connection - in where our ADSL has a
 download limit of 25GB/month

 If one bypasses the 25GB - the connection drops from 10mbits to 64kbits !
 How can I make pfSense see this, so if this happens the connection
 switches over to the SDSL connection (being 1mbit, still better than
 64kbits).


 ps. the SDSL connection must be preserved as much as possible - so it
 only should jump to the SDSL, when the ADSL doesn't go any faster than
 64kbits... (or if I can use an internal counter, that checks if the
 25GB limit is passed - that's also ok)

 Would this be possible, and where to start ?


Only if you want to write code or a script of some sort to detect that
and automatically switch. That's somewhat involved though. No easy way
to do that.

-
To unsubscribe, e-mail: support-unsubscr...@pfsense.com
For additional commands, e-mail: support-h...@pfsense.com

Commercial support available - https://portal.pfsense.org



Re: [pfSense Support] dynamic load balancing

2009-08-20 Thread Keenan Tims
Ermal Luçi wrote:

 Not easy at all since you have to handle reboots, wrap arounds and
 some other things.
 I guess it is better to fund pfSense devs to implement this so you
 will have it supported on further releases too.

Might be able to leverage the existing vnstat package to handle most of
the 'heavy lifting' there.

You could also write a script that say downloads a 1MB file from
somewhere at 2AM each night, and if it takes drastically longer than it
should, swap routes.

Not sure how the pfSense integration would work though.

K



signature.asc
Description: OpenPGP digital signature


Re: [pfSense Support] dynamic load balancing

2009-08-20 Thread Ermal Luçi
On Thu, Aug 20, 2009 at 9:45 AM, Chris Buechlerc...@pfsense.org wrote:
 On Thu, Aug 20, 2009 at 3:38 AM, Michel Servaesmic...@mcmc.be wrote:
 Hi,


 I am wondering, if the following would be possible - and how to start with 
 it.
 I have this SDSL and ADSL connection - in where our ADSL has a
 download limit of 25GB/month

 If one bypasses the 25GB - the connection drops from 10mbits to 64kbits !
 How can I make pfSense see this, so if this happens the connection
 switches over to the SDSL connection (being 1mbit, still better than
 64kbits).


 ps. the SDSL connection must be preserved as much as possible - so it
 only should jump to the SDSL, when the ADSL doesn't go any faster than
 64kbits... (or if I can use an internal counter, that checks if the
 25GB limit is passed - that's also ok)

 Would this be possible, and where to start ?

Not easy at all since you have to handle reboots, wrap arounds and
some other things.
I guess it is better to fund pfSense devs to implement this so you
will have it supported on further releases too.


 Only if you want to write code or a script of some sort to detect that
 and automatically switch. That's somewhat involved though. No easy way
 to do that.





-- 
Ermal

-
To unsubscribe, e-mail: support-unsubscr...@pfsense.com
For additional commands, e-mail: support-h...@pfsense.com

Commercial support available - https://portal.pfsense.org



Re: [pfSense Support] dynamic load balancing

2009-08-20 Thread Paul Mansfield

could you force squid + transparent proxying to record traffic usage and
use some clever squid configs and cron to change behaviour?

-
To unsubscribe, e-mail: support-unsubscr...@pfsense.com
For additional commands, e-mail: support-h...@pfsense.com

Commercial support available - https://portal.pfsense.org



Re: [pfSense Support] dynamic load balancing

2009-08-20 Thread RB
On Thu, Aug 20, 2009 at 03:58, Paul Mansfieldit-admin-pfse...@taptu.com wrote:
 could you force squid + transparent proxying to record traffic usage and
 use some clever squid configs and cron to change behaviour?

That assumes that nearly all of your traffic is HTTP; perhaps valid
for some users, but completely not so for technical users.

-
To unsubscribe, e-mail: support-unsubscr...@pfsense.com
For additional commands, e-mail: support-h...@pfsense.com

Commercial support available - https://portal.pfsense.org



Re: [pfSense Support] dynamic load balancing

2009-08-20 Thread Michel Servaes



Only if you want to write code or a script of some sort to detect that
and automatically switch. That's somewhat involved though. No easy way
to do that.

  


Thank you for the replies... guess I'll first see how things go from 
here - might be better to upgrade the ADSL as soon as it reaches it's 
limit anyway...
This question belongs to the stupid questions - but I thought, maybe 
there is an easy way to do this.


I still have to implement the pfSense someday - but my provider only 
changes IP during the day... just need to search for a good day to make 
this happen.
(the change of IP has nothing to do with me implementing pfSense - but 
since this would cause troubles for everyone involved, I gather that 
this might be the best time to setup the pfSense anyway)


Kind regards, and again thank you for looking into this one (at everyone)

-
To unsubscribe, e-mail: support-unsubscr...@pfsense.com
For additional commands, e-mail: support-h...@pfsense.com

Commercial support available - https://portal.pfsense.org



Re: [pfSense Support] dynamic load balancing

2009-08-20 Thread Jim Pingle
Michel Servaes wrote:
 I am wondering, if the following would be possible - and how to start with it.
 I have this SDSL and ADSL connection - in where our ADSL has a
 download limit of 25GB/month
 
 If one bypasses the 25GB - the connection drops from 10mbits to 64kbits !
 How can I make pfSense see this, so if this happens the connection
 switches over to the SDSL connection (being 1mbit, still better than
 64kbits).

You might be able to pull a traffic total from the RRD file for WAN, but
it wouldn't necessarily be realtime, you'd have to have a cron script
check every so often, and then trigger some other script to actually run
some commands to switch.

This assumes, of course, that there is no accidental loss of RRD graph
data for some reason.

Jim

-
To unsubscribe, e-mail: support-unsubscr...@pfsense.com
For additional commands, e-mail: support-h...@pfsense.com

Commercial support available - https://portal.pfsense.org