Mikrotik Ipoe

0 views
Skip to first unread message

Magin Sriubas

unread,
Aug 5, 2024, 7:14:17 AM8/5/24
to vioukeperno
RecentlyI was doing some lab testing on the Freeradius System and got stuck with the configuration of COA (change of authority) so that any changes like disconnection OR bandwidth package change on the FLY without disconnecting the active user, example different bandwidth for day/night or slower speed package for over quota user.

Now we will add the counter in AUTHORIZE { section and also add the UNLAG statement in the ACCOUNTING{ section to match if the quota is above or less and take action depend on the result.


Now you will see that when user zaib connected, his package was intially 102k. as soon he crosses his quota , FR will send COA (by using the update-control script) to mikrotik and package will be changed dynamically instantly.


please share the info. I made this blog to share knowledge, so any information, tips n tricks as contribution would be highly appreciable. or email me at aacable at hotmail dot com . and i will add it to blog as well.


I did it already using php script, what i did is that i am calling a php script on every accounting packet, but i am thinking to change to unlang since performance wise its better not to call an external script at real time, i already did my radius system with about 10K users and its working perfectly, with checkrad implemented for simultaneous-use and also a ping feature , which will ping each user without the need to be on the same local network. If you need any help contact me, i can show you a sample of what i did


aoa sir main mikrotik main user manager use krna cha raha hon mager us m admin login karta hoon tu login nae ho raha error unknown customer show kr raha h aur jb tarminal m jaker admin create krta h us m error databases is not acceptable, yet kindly help Sent from my iPhone


AT LAST.

now combined daily and monthly quota are working together with COA .

i had some trouble with numbers with fractions. but Ceiling option in mysql solve it.

as i added an attribute that works with MB instead of Bytes to have the ability to count large numbers larger than 4 GB.

i named the attribute WISPr-Max-All-MB and using mysql query to divide the sum on 1024*1024 to get the result in MB.

now to the final working lines.


Sir If I double the internet speed of every user at night and back to single in morning/day to change Mikrotik-Rate-Limit value with PHP or directly in Database, will it change users net speed on fly?


there are few solutions.

You can simply configure an bash script to do the job nicely by checking if user service allows time changing, & if yes & if time matches it should simply send COA packets to NAS,

Else for on the fly, you need to add UNLAG xlt statement on accounting session, it should check if the user service allows bandwidth changing & if the time matches then send coa packet, you need some complex if statement to do the job nicely.

select route depends on your easiness,,,


I currently have NBN FTTP and i use the Amazon Eero Mesh System and i have 3 units. The base unit goes directly into my NBN box and i have no separate routers. Now i am wanting to switch from Aussie broadband to another provider because i am nearing the end of the 6 month discount. I ran into some troubles connecting to Tangerine NBN network and after a few chats with their Technical team, they told me my Amazon Eero modem does not support PPPOE which they and other NBN providers use. Aussie broadband and a few others use IPOE/DHCP which is supported by the Amazone Eero modem.


I have a spare Tenda NOVA MW3 at hand which supports both IPOE and PPPOE connections and i was wondering if i could connect this directly to the NBN box using an NBN provider that utilises the PPPOE connection. Then enable bridge mode and connect my Amazon Eero to the Tenda Nova router via eternet backhaul but knowing the Eero device only supports IPOE/DHCP. Will this work or will i just need to buy a new router that supports both connections then connect my eero units to it. If this is the case, any suggestions for a good NBN FTTP router that supports both IPOE AND PPPOE connection types.


No i left Tangerine within the 14 day window and switch to aussiebroadband. Only to find out now i had a spare tenda MW3 router. Don't want to order a new service if it won't work the way i mentioned.


Likely what you need to do is enable DMZ in the Tenda and just hook up the eero to one of the Tenda's spare Ethernet ports.

You'll be double NAT, but it's the best possible setup if you want/need to keep the eero.


"Demilitarised Zone"

It's a way to minimise the interference of the first router on the performance of the second.

You'll still be Double NAT, but the first router will otherwise pass all traffic through to the Eero without any further rules being enforced.


1 - plugin eero to the LAN port on the MW3. This is called a double NAT. For casual browsing and Netflix you can get away with double NAT. Double NAT can break access to Plex, cameras, remote access, servers, home automation and more. A double NAT will happen if you put any new router before the eero.


Thanks, i am not a big user and i tend to go for only the NBN 50 plans the max speed limit on MW3 is fine. The only cameras i have is a Ring Floodlight camera. Will double nat affect my Ring Camera which only requires an internet connection? I will give your instructions a go with my current connect, thanks.


If you want advanced features like load balancing multi wan, it will take a lot of time to learn. If you just want to setup some basic features like pppoe, dhcp, dns, enough for home internet, it will take you about 30mins to learn and setup. There are a lot of tutorials for basic mikrotik configuration like this, just about 10 minutes to learn

3a8082e126
Reply all
Reply to author
Forward
0 new messages