Hello everyone!
I have a really poor adsl connection where i live. 90KBps as average during navigation.
My place has however a good 3g/4g coverage.
My 3G/4G plan has a limit of 1GB full speed at day and no limits from 12pm to 8am for 30€ month with a usb dongle/hotspot of the operator.
Every 100mb after the daily 1GB cost me 5€.
That's the only good offer for now..
What i want to do is buy a router with usb, and configure Gargoyle to use 3G until the 1GB quota is reached, then switch to my adsl that would be connected to te WAN port of the router.
(It would be great if the router will switch to 3G from 12pm to 8am, but one step at a time!)
It's possibile? I have found some scripts to switch WAN and 3G but only as a failover when ping fail, not depending on quotas...
How can i switch them based on quotas system?
Where i have to take a look?
I've searched a lot but didn't found much about this problem..
Thank you in advance!
3G as primary Wan switch Eth0 when quota reached
Moderator: Moderators
Re: 3G as primary Wan switch Eth0 when quota reached
Sorry but I don't think Gargoyle can do what you want at the moment.
Your best approach would be to use run your 3G internet through Gargoyle and set it to cut internet off when quota is reached. At the same time, run a separate Access Point for your ADSL internet and switch your the access point on your computer when you see quota is reached on your Gargoyle router.
If you must have a single router serving both 3G and ADSL internet at the same time as you proposed, then I would suggest you to add one more router configured for multi-wan which connects to both 3G Gargoyle router and ADSL router. This means when the Gargoyle router cuts the internet off, the multi-wan router will be automatically serving your internet via your ADSL line.
In short, I don't think you can use a single router to achieve your purpose. The quota system does not differentiate your WAN connection.
Your best approach would be to use run your 3G internet through Gargoyle and set it to cut internet off when quota is reached. At the same time, run a separate Access Point for your ADSL internet and switch your the access point on your computer when you see quota is reached on your Gargoyle router.
If you must have a single router serving both 3G and ADSL internet at the same time as you proposed, then I would suggest you to add one more router configured for multi-wan which connects to both 3G Gargoyle router and ADSL router. This means when the Gargoyle router cuts the internet off, the multi-wan router will be automatically serving your internet via your ADSL line.
In short, I don't think you can use a single router to achieve your purpose. The quota system does not differentiate your WAN connection.
Eric Wong
PM me if you need to buy Gargoyle router in Australia/NZ, willing to pay me to help you on your Gargoyle configurations or build custom configured ROM with pre-installed app or try to fix your bricked router. Yes, I am looking for job/work.
PM me if you need to buy Gargoyle router in Australia/NZ, willing to pay me to help you on your Gargoyle configurations or build custom configured ROM with pre-installed app or try to fix your bricked router. Yes, I am looking for job/work.
Re: 3G as primary Wan switch Eth0 when quota reached
Thank you for the advices!ericwong wrote:Sorry but I don't think Gargoyle can do what you want at the moment.
Your best approach would be to use run your 3G internet through Gargoyle and set it to cut internet off when quota is reached. At the same time, run a separate Access Point for your ADSL internet and switch your the access point on your computer when you see quota is reached on your Gargoyle router.
If you must have a single router serving both 3G and ADSL internet at the same time as you proposed, then I would suggest you to add one more router configured for multi-wan which connects to both 3G Gargoyle router and ADSL router. This means when the Gargoyle router cuts the internet off, the multi-wan router will be automatically serving your internet via your ADSL line.
In short, I don't think you can use a single router to achieve your purpose. The quota system does not differentiate your WAN connection.
What i wanted to do is have a transparent switch inside my LAN, so devices inside my local network wouldn't know of the switch.. that's because i have some wireless extenders and pc connected with ethernet t in different points of my house.
I didn't know about multi-wan routers!
So i can pick a router for 3g/4g like TP-LINK TL-MR3420 that's relatively cheap here, and add a multi-wan router that will take WAN from that and a WAN from my adsl router and then configure the quota system on the 3g router..
So i have only a last question.. can i have different quota based on time? like 1GB from 8am to 12pm, then no limit?
EDIT: Ok, noob question, i have checked more carefully the quota system options..
Re: 3G as primary Wan switch Eth0 when quota reached
In my opinion wireless extenders are not good if you have high speed internet or want good performance internet, unless you are using ethernet or powerline as its backbone connection. It probably doesn't matter when you have 1M ADSL connection. Won't work well for my 100M connection though.Slyon wrote: What i wanted to do is have a transparent switch inside my LAN, so devices inside my local network wouldn't know of the switch.. that's because i have some wireless extenders and pc connected with ethernet t in different points of my house.
Retail multi-wan routers is pretty expensive. You can use Openwrt based routers (Gargoyle is based on Openwrt but Gargoyle cannot support multi-wan) or other custom ROM which have multi-wan support. Unless you know how to use linux, you may have a steep learning curve trying to figure out how to make it work thoughSlyon wrote: I didn't know about multi-wan routers!

The tp-1043nd v2 sold here as Gargoyle router is best in my opinion. It is cheap, have high speed cpu and plenty of ram. You could have two tp-1043nd v2 in tandem, one as Gargoyle router and the other running Openwrt. This would be how I would do it if I were to buy new routers for this purpose, unless I have suitable spare routers sitting around.Slyon wrote: So i can pick a router for 3g/4g like TP-LINK TL-MR3420 that's relatively cheap here, and add a multi-wan router that will take WAN from that and a WAN from my adsl router and then configure the quota system on the 3g router..
Yes, you can using Gargoyle router.Slyon wrote: So i have only a last question.. can i have different quota based on time? like 1GB from 8am to 12pm, then no limit?
EDIT: Ok, noob question, i have checked more carefully the quota system options..
Eric Wong
PM me if you need to buy Gargoyle router in Australia/NZ, willing to pay me to help you on your Gargoyle configurations or build custom configured ROM with pre-installed app or try to fix your bricked router. Yes, I am looking for job/work.
PM me if you need to buy Gargoyle router in Australia/NZ, willing to pay me to help you on your Gargoyle configurations or build custom configured ROM with pre-installed app or try to fix your bricked router. Yes, I am looking for job/work.
Re: 3G as primary Wan switch Eth0 when quota reached
There is also a package called mwan3 for openwrt which makes setting up multiple wan connections easy as clicking a few buttons.
But you'd have to move away from gargoyle unless you modified the code substantially.
I don't know if t supports USB wan connections but I don't see why not.
But you'd have to move away from gargoyle unless you modified the code substantially.
I don't know if t supports USB wan connections but I don't see why not.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: 3G as primary Wan switch Eth0 when quota reached
Thank you all for the suggestions!
That was very helpful!
I've discovered that i have already an adsl modem/router that seems to support well OpenWRT. What was bugging me now is buying a router like tp-1043nd only as an "smart-adapter" to my 3g dongle.
So i will try to build Gargoyle for Raspberry Pi (i have one sitting around) and use it to limit my dongle and provide the second wan for my OpenWRT router. (I was just looking for a smart use of that Raspberry due to his limitations)
Then the OpenWRT router would load balance adsl and the 3g-raspi-wan as you described!
That was very helpful!
I've discovered that i have already an adsl modem/router that seems to support well OpenWRT. What was bugging me now is buying a router like tp-1043nd only as an "smart-adapter" to my 3g dongle.
So i will try to build Gargoyle for Raspberry Pi (i have one sitting around) and use it to limit my dongle and provide the second wan for my OpenWRT router. (I was just looking for a smart use of that Raspberry due to his limitations)
Then the OpenWRT router would load balance adsl and the 3g-raspi-wan as you described!