TP-Link ER5120 Dual WAN WISP help

chymxld

Commendable
Jan 28, 2017
3
0
1,510
Hi everyone,

I have a TP-Link ER5120 configured dual WAN with a pair of wireless ISPs. Performance is very good. I'd also like to prevent data overages for each of the WANs as data becomes a fortune after my monthly limit for each ISP connection.

I'd appreciate any advice on configuring the ER5120 to operate as follows:

1. Have the WAN connections operate sequentially where WAN1 would operate for the first 100GB of LAN use, then switch to WAN2 for the next 100GB, with the data counter resetting on the same day as my data allocation from the ISP.

or

2. Have the WAN connections operate concurrently, where WAN1 and WAN2 would equally load balance and operate simultaneously, with both having a data cap to shut down at 100GB

Many thanks in advance for the hand. :)
 
Solution
Generally the thing you look for in dd-wrt routers is the clock speed of the cpu and the amount of memory. There is a huge table of supported routers on the dd-wrt site. I tend to use asus routers but there are tplink devices that have similar stats for a little less money. Then again if you do not need wireless you could just put a 4 port ethernet card into a pc platform and not worry about capacity. DD-wrt is based on the unix firewall/router images you can find. Since they are full blown unix installs because of no limit on memory they tend to be somewhat easier to write modification for.

There are a number of prebuild firewall/router images. You could try pfsense but it a little harder to get thing done that are not...
From a quick look though the manual this does not seem to be possible.

The function that most routers lack is the ability to store usage information over long periods of time. The could keep it in memory but when you lose power or reboot you set everything back to zero. It could in theory be written to the flash but the flash memory in routers does not have a high write ability and if you were to burn out too many cells you would have a useless device.

Now lets assume you were to use a dd-wrt based router (yours will not load third party firmware I do not think). This router can collect usage data and write it to a external USB flash. It can also run dual wan. I have not seen a function that could combine these 2 feature though. That does not mean you could not write it yourself. It is not to hard to have a program check the usage and then dynamically rewrite the routing rules on the fly. Someone may have already done this but you would have to dig it is not part of any standard distribution.

Now you might be able to do it with a PC based program if there is some way for example to get the usage information from a ISP web page. You could have the program log into your router and change the primary and secondary ISP connections.
 
Generally the thing you look for in dd-wrt routers is the clock speed of the cpu and the amount of memory. There is a huge table of supported routers on the dd-wrt site. I tend to use asus routers but there are tplink devices that have similar stats for a little less money. Then again if you do not need wireless you could just put a 4 port ethernet card into a pc platform and not worry about capacity. DD-wrt is based on the unix firewall/router images you can find. Since they are full blown unix installs because of no limit on memory they tend to be somewhat easier to write modification for.

There are a number of prebuild firewall/router images. You could try pfsense but it a little harder to get thing done that are not part of the gui because it is designed to be easy to use and they eliminate feature that are not commonly used. Still it is still unix.

 
Solution