SlideShare a Scribd company logo
1 of 12
Download to read offline
Managing Internet Connections
     PPPoE, MikroTik and Radius

    Dashamir Hoxha <dashohoxha@gmail.com>
     Artur Nurja <tatanka@albaniaonline.net>

●   How to manage internet clients of an ISP
●   With PPPoE and MikroTik and Radius
●   Based on the work done at AlbaniaOnline
Managing PPPoE Connections
    with Mikrotik is Easy
          ●   PPPoE = Point-to-Point Protocol
                      over Ethernet
          ●   Why PPPoE and not Ethernet?


          ●   Configuring Mikrotik for PPPoE
                1.Install package PPP
                2. Create PPP profiles
                3. Create a PPPoE service and
                    enable it
                4. Create user accounts
However it Doesn't Scale Up Well
●   A single Mikrotik can serve only a limited
     number of clients (400-500).
●   Managing clients and their profiles in Mikrotik
     cannot be integrated easily with CRM apps.
●   Managing clients manually in more than one
     Mikrotik server is difficult and error prone.
●   If a Mikrotik fails, the service to the clients is
       interrupted, until a new Mikrotik is prepared
       and a backup of the clients is restored.
Centralized AAA is Required
Centralized AAA is Required
●   AAA = Authentication, Authorization, Accounting
●   FreeRadius is used to check username/password, to
      provide client profiles, and to get usage statistics.
●   Client details are stored in a MySql database.
●   Mikrotik-s are dumb gateways with simple configs.
     No client details are stored on them!
●   Mikrotik-s use the central Radius for authentication,
     authorization, and for storing usage statistics.
●   Clients can connect through any Mikrotik available.
Clients are Managed by an
External CRM Application
       ●   CRM = Customer Relationship
            Management
       ●   SugarCRM is used to keep all the
            client details
       ●   SugarCRM is integrated with the
            database of freeRadius
       ●   Decisions about clients are taken
            by Customer Care on SugarCRM
       ●   They are automatically enforced by
             applying them on Radius
We Need Also High Availability
    and Load Balancing
We Need Also High Availability
        and Load Balancing
●   There are 2 MySQL databases, replicating in
      Master-->Slave mode; if the first one fails, it is
      replaced by the second one, in order to minimise
      the service down time.
●   Each Mikrotik is configured with a primary and a
     secondary Radius server; if the primary server does
     not reply, the second one is tried. This provides HA.
●   Almost half of mikrotiks have the first radius as
      primary, and the others have the second one. This
      provides Load Balancing.
Implementation Steps
1. Install freeRadius
2. Test freeRadius installation
3. Set up freeRadius to use a MySQL database
4. Test freeRadius with MySQL backend
5. Configure Mikrotik for being a PPPoE server
6. Test the PPPoE Service
7. Get Mikrotik to work with Radius
8. Add a second Radius server in Mikrotik
9. Replicate MySQL databases of freeRadius
SQL API for Radius Manager
●   API = Application Programing Interface
●   Helps to access the database of Radius Manager
     from an outside program (SugarCRM).
●   Encapsulates (hides) the complexity of the database
     from the outside programmer.
●   Makes simpler the code of the outside program.
●   The programmer is relived from the fear of touching
      something inappropriately in the database.
●   If structure of DB is modified in future releases, only
       the API needs to take them into account.
SQL API for Radius Manager
●   user_get(user);
●   user_add(user, passwd, service_id, nr_conn, expiration_date);
●   user_update(user, service_id, nr_conn, expiration_date);
●   user_set_password(user, passwd);
●   user_change_service(old_srvid, new_srvid);
●   user_del(user);
●   service_get(service_id, service_name);
●   service_add(service_name, download_rate, upload_rate);
●   service_update(service_id, service_name, download_rate,
      upload_rate, enabled);
●   service_del(service_id);
Managing Internet Connections
 PPPoE, MikroTik and Radius

Dashamir Hoxha <dashohoxha@gmail.com>
 Artur Nurja <tatanka@albaniaonline.net>


   Thank you for your attention!
    Are there any questions?

More Related Content

What's hot

BGP Security (Mum presentation 2016)
BGP Security (Mum presentation 2016) BGP Security (Mum presentation 2016)
BGP Security (Mum presentation 2016) Rofiq Fauzi
 
MikroTik BGP Security - MUM 2014 (rofiq fauzi)
MikroTik BGP Security - MUM 2014 (rofiq fauzi)MikroTik BGP Security - MUM 2014 (rofiq fauzi)
MikroTik BGP Security - MUM 2014 (rofiq fauzi)Rofiq Fauzi
 
Running BGP with Mikrotik
Running BGP with MikrotikRunning BGP with Mikrotik
Running BGP with MikrotikGLC Networks
 
Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)Rofiq Fauzi
 
Network Monitoring System
Network Monitoring SystemNetwork Monitoring System
Network Monitoring SystemRofiq Fauzi
 
MikroTik Internet Route Filter
MikroTik Internet Route FilterMikroTik Internet Route Filter
MikroTik Internet Route FilterTeav Sovandara
 
Wireless Project Using CAPsMAN
Wireless Project Using CAPsMANWireless Project Using CAPsMAN
Wireless Project Using CAPsMANAidan Venn MSc
 
Mikrotik router backup and restore process
Mikrotik router backup and restore processMikrotik router backup and restore process
Mikrotik router backup and restore processTitas Sarker
 
BGP Services IP Transit vs IP Peering
BGP Services  IP Transit vs IP PeeringBGP Services  IP Transit vs IP Peering
BGP Services IP Transit vs IP PeeringGLC Networks
 
MikroTik Hotspot 2.0 (IEEE 802.11u) - MUM Jakarta 2016
MikroTik Hotspot 2.0 (IEEE 802.11u) - MUM Jakarta 2016MikroTik Hotspot 2.0 (IEEE 802.11u) - MUM Jakarta 2016
MikroTik Hotspot 2.0 (IEEE 802.11u) - MUM Jakarta 2016Rofiq Fauzi
 
Mikrotik basic configuration
Mikrotik basic configurationMikrotik basic configuration
Mikrotik basic configurationTola LENG
 
Choosing MikroTik for Your Network
Choosing MikroTik for Your NetworkChoosing MikroTik for Your Network
Choosing MikroTik for Your NetworkFaisal Reza
 
Workshop IPv6 APJII Jawa Barat
Workshop IPv6 APJII Jawa Barat Workshop IPv6 APJII Jawa Barat
Workshop IPv6 APJII Jawa Barat Faisal Reza
 
Open ssl certificate (https) for hotspot mikrotik
Open ssl certificate (https) for hotspot mikrotikOpen ssl certificate (https) for hotspot mikrotik
Open ssl certificate (https) for hotspot mikrotikAldi Nor Fahrudin
 
An Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
An Express Guide ~ Cacti for IT Infrastructure Monitoring & GraphingAn Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
An Express Guide ~ Cacti for IT Infrastructure Monitoring & GraphingAbhishek Kumar
 

What's hot (20)

BGP Security (Mum presentation 2016)
BGP Security (Mum presentation 2016) BGP Security (Mum presentation 2016)
BGP Security (Mum presentation 2016)
 
MikroTik BGP Security - MUM 2014 (rofiq fauzi)
MikroTik BGP Security - MUM 2014 (rofiq fauzi)MikroTik BGP Security - MUM 2014 (rofiq fauzi)
MikroTik BGP Security - MUM 2014 (rofiq fauzi)
 
BGP on mikrotik
BGP on mikrotikBGP on mikrotik
BGP on mikrotik
 
Mikro tik advanced training
Mikro tik advanced trainingMikro tik advanced training
Mikro tik advanced training
 
MTCNA
MTCNAMTCNA
MTCNA
 
Running BGP with Mikrotik
Running BGP with MikrotikRunning BGP with Mikrotik
Running BGP with Mikrotik
 
Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)
 
Mikrotik firewall filter
Mikrotik firewall filterMikrotik firewall filter
Mikrotik firewall filter
 
Network Monitoring System
Network Monitoring SystemNetwork Monitoring System
Network Monitoring System
 
MikroTik Internet Route Filter
MikroTik Internet Route FilterMikroTik Internet Route Filter
MikroTik Internet Route Filter
 
Wireless Project Using CAPsMAN
Wireless Project Using CAPsMANWireless Project Using CAPsMAN
Wireless Project Using CAPsMAN
 
Mikrotik router backup and restore process
Mikrotik router backup and restore processMikrotik router backup and restore process
Mikrotik router backup and restore process
 
BRAC case study on mikrotik router for NGO network
BRAC case study on mikrotik router for NGO networkBRAC case study on mikrotik router for NGO network
BRAC case study on mikrotik router for NGO network
 
BGP Services IP Transit vs IP Peering
BGP Services  IP Transit vs IP PeeringBGP Services  IP Transit vs IP Peering
BGP Services IP Transit vs IP Peering
 
MikroTik Hotspot 2.0 (IEEE 802.11u) - MUM Jakarta 2016
MikroTik Hotspot 2.0 (IEEE 802.11u) - MUM Jakarta 2016MikroTik Hotspot 2.0 (IEEE 802.11u) - MUM Jakarta 2016
MikroTik Hotspot 2.0 (IEEE 802.11u) - MUM Jakarta 2016
 
Mikrotik basic configuration
Mikrotik basic configurationMikrotik basic configuration
Mikrotik basic configuration
 
Choosing MikroTik for Your Network
Choosing MikroTik for Your NetworkChoosing MikroTik for Your Network
Choosing MikroTik for Your Network
 
Workshop IPv6 APJII Jawa Barat
Workshop IPv6 APJII Jawa Barat Workshop IPv6 APJII Jawa Barat
Workshop IPv6 APJII Jawa Barat
 
Open ssl certificate (https) for hotspot mikrotik
Open ssl certificate (https) for hotspot mikrotikOpen ssl certificate (https) for hotspot mikrotik
Open ssl certificate (https) for hotspot mikrotik
 
An Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
An Express Guide ~ Cacti for IT Infrastructure Monitoring & GraphingAn Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
An Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
 

Viewers also liked

Mikrotik Hotspot With Queue Tree BW Management
Mikrotik Hotspot With Queue Tree BW ManagementMikrotik Hotspot With Queue Tree BW Management
Mikrotik Hotspot With Queue Tree BW Managementgopartheredbuff
 
2º trim milagres de jesus - professor
2º trim   milagres de jesus - professor2º trim   milagres de jesus - professor
2º trim milagres de jesus - professorSergio Silva
 
Jesus e os lugares onde ocorreram os milagres
Jesus e os lugares onde ocorreram os milagres Jesus e os lugares onde ocorreram os milagres
Jesus e os lugares onde ocorreram os milagres Silas Ramos
 
(Mikrotik)MTCNA presentation Material-IDN
(Mikrotik)MTCNA presentation Material-IDN(Mikrotik)MTCNA presentation Material-IDN
(Mikrotik)MTCNA presentation Material-IDNAndry Ansah
 
Routing Information Protocol (RIP) on Mikrotik
Routing Information Protocol (RIP) on MikrotikRouting Information Protocol (RIP) on Mikrotik
Routing Information Protocol (RIP) on MikrotikAchmad Mardiansyah
 
Connection load balancing with mikrotik [workshop]
Connection load balancing with mikrotik [workshop]Connection load balancing with mikrotik [workshop]
Connection load balancing with mikrotik [workshop]Achmad Mardiansyah
 
Open Source Networking
Open Source NetworkingOpen Source Networking
Open Source NetworkingArtur Bergman
 
Point-to-Point Protocol(PPP) CCN ppt
Point-to-Point Protocol(PPP) CCN pptPoint-to-Point Protocol(PPP) CCN ppt
Point-to-Point Protocol(PPP) CCN pptNiaz Shaikh
 
Point to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAPPoint to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAPNetProtocol Xpert
 
Point to-point-protocol
Point to-point-protocolPoint to-point-protocol
Point to-point-protocolamigurumi21
 

Viewers also liked (20)

VLAN on mikrotik
VLAN on mikrotikVLAN on mikrotik
VLAN on mikrotik
 
Video aulas servidor radius com mikrotik
Video aulas servidor radius com mikrotikVideo aulas servidor radius com mikrotik
Video aulas servidor radius com mikrotik
 
Mikrotik Hotspot With Queue Tree BW Management
Mikrotik Hotspot With Queue Tree BW ManagementMikrotik Hotspot With Queue Tree BW Management
Mikrotik Hotspot With Queue Tree BW Management
 
2º trim milagres de jesus - professor
2º trim   milagres de jesus - professor2º trim   milagres de jesus - professor
2º trim milagres de jesus - professor
 
Jesus e os lugares onde ocorreram os milagres
Jesus e os lugares onde ocorreram os milagres Jesus e os lugares onde ocorreram os milagres
Jesus e os lugares onde ocorreram os milagres
 
Using mikrotik with radius
Using mikrotik with radiusUsing mikrotik with radius
Using mikrotik with radius
 
(Mikrotik)MTCNA presentation Material-IDN
(Mikrotik)MTCNA presentation Material-IDN(Mikrotik)MTCNA presentation Material-IDN
(Mikrotik)MTCNA presentation Material-IDN
 
MikroTik Firewall : Securing your Router with Port Knocking
MikroTik Firewall : Securing your Router with Port KnockingMikroTik Firewall : Securing your Router with Port Knocking
MikroTik Firewall : Securing your Router with Port Knocking
 
Routing Information Protocol (RIP) on Mikrotik
Routing Information Protocol (RIP) on MikrotikRouting Information Protocol (RIP) on Mikrotik
Routing Information Protocol (RIP) on Mikrotik
 
Connection load balancing with mikrotik [workshop]
Connection load balancing with mikrotik [workshop]Connection load balancing with mikrotik [workshop]
Connection load balancing with mikrotik [workshop]
 
VPN on Mikrotik
VPN on MikrotikVPN on Mikrotik
VPN on Mikrotik
 
Open Source Networking
Open Source NetworkingOpen Source Networking
Open Source Networking
 
IP Source Guard
IP Source Guard IP Source Guard
IP Source Guard
 
Point-to-Point Protocol(PPP) CCN ppt
Point-to-Point Protocol(PPP) CCN pptPoint-to-Point Protocol(PPP) CCN ppt
Point-to-Point Protocol(PPP) CCN ppt
 
Introduction to PPP
Introduction to PPPIntroduction to PPP
Introduction to PPP
 
Mikrotik API
Mikrotik APIMikrotik API
Mikrotik API
 
Point to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAPPoint to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAP
 
Chapter 2 point-to-point protocol (ppp)
Chapter 2   point-to-point protocol (ppp)Chapter 2   point-to-point protocol (ppp)
Chapter 2 point-to-point protocol (ppp)
 
Mikrotik metarouter
Mikrotik metarouterMikrotik metarouter
Mikrotik metarouter
 
Point to-point-protocol
Point to-point-protocolPoint to-point-protocol
Point to-point-protocol
 

Similar to PPPoE With Mikrotik and Radius

Kenzan: Architecting for Microservices
Kenzan: Architecting for MicroservicesKenzan: Architecting for Microservices
Kenzan: Architecting for MicroservicesDarren Bathgate
 
Assignment3 pp v3
Assignment3 pp v3Assignment3 pp v3
Assignment3 pp v3zanmmit
 
How we scaled Rudder to 10k, and the road to 50k
How we scaled Rudder to 10k, and the road to 50kHow we scaled Rudder to 10k, and the road to 50k
How we scaled Rudder to 10k, and the road to 50kRUDDER
 
RapidCompute - Company Profile
RapidCompute - Company ProfileRapidCompute - Company Profile
RapidCompute - Company ProfileArbal Nadeem
 
Code-magic IBM FINAL
Code-magic IBM FINALCode-magic IBM FINAL
Code-magic IBM FINALRatnam Dubey
 
Geek Sync | Top Metrics to Monitor in Your MySQL Databases
Geek Sync | Top Metrics to Monitor in Your MySQL DatabasesGeek Sync | Top Metrics to Monitor in Your MySQL Databases
Geek Sync | Top Metrics to Monitor in Your MySQL DatabasesIDERA Software
 
Horizontal Scaling for Millions of Customers!
Horizontal Scaling for Millions of Customers! Horizontal Scaling for Millions of Customers!
Horizontal Scaling for Millions of Customers! elangovans
 
Lanka government cloud: what, why & how?
Lanka government cloud: what, why & how?Lanka government cloud: what, why & how?
Lanka government cloud: what, why & how?Wasantha Deshapriya
 
How Pixid dropped Oracle and went hybrid with MariaDB
How Pixid dropped Oracle and went hybrid with MariaDBHow Pixid dropped Oracle and went hybrid with MariaDB
How Pixid dropped Oracle and went hybrid with MariaDBMariaDB plc
 
Will Microservices Die.pdf
Will Microservices Die.pdfWill Microservices Die.pdf
Will Microservices Die.pdfRichHagarty
 
MUM Melbourne : Build Enterprise Wireless with CAPsMAN
MUM Melbourne : Build Enterprise Wireless with CAPsMANMUM Melbourne : Build Enterprise Wireless with CAPsMAN
MUM Melbourne : Build Enterprise Wireless with CAPsMANGLC Networks
 
C. Sotiriou, Vodafone Greece: Adopting Quarkus for the digital experience layer
C. Sotiriou, Vodafone Greece: Adopting Quarkus for the digital experience layerC. Sotiriou, Vodafone Greece: Adopting Quarkus for the digital experience layer
C. Sotiriou, Vodafone Greece: Adopting Quarkus for the digital experience layerUni Systems S.M.S.A.
 
2596 - Integrating PureApplication System Into Your Network
2596 - Integrating PureApplication System Into Your Network2596 - Integrating PureApplication System Into Your Network
2596 - Integrating PureApplication System Into Your NetworkHendrik van Run
 
Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...
Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...
Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...Continuent
 
How to move from Monolith to Microservice
How to move from Monolith to MicroserviceHow to move from Monolith to Microservice
How to move from Monolith to MicroserviceSafaridin Salim
 
Service-Mesh-Presentation.pdf
Service-Mesh-Presentation.pdfService-Mesh-Presentation.pdf
Service-Mesh-Presentation.pdfchanhluc2112
 
Migration to IBM SmartCloud Notes
Migration to IBM SmartCloud Notes Migration to IBM SmartCloud Notes
Migration to IBM SmartCloud Notes jackdowning
 

Similar to PPPoE With Mikrotik and Radius (20)

Kenzan: Architecting for Microservices
Kenzan: Architecting for MicroservicesKenzan: Architecting for Microservices
Kenzan: Architecting for Microservices
 
Assignment3 pp v3
Assignment3 pp v3Assignment3 pp v3
Assignment3 pp v3
 
How we scaled Rudder to 10k, and the road to 50k
How we scaled Rudder to 10k, and the road to 50kHow we scaled Rudder to 10k, and the road to 50k
How we scaled Rudder to 10k, and the road to 50k
 
Through the JMX Window
Through the JMX WindowThrough the JMX Window
Through the JMX Window
 
RapidCompute - Company Profile
RapidCompute - Company ProfileRapidCompute - Company Profile
RapidCompute - Company Profile
 
Code-magic IBM FINAL
Code-magic IBM FINALCode-magic IBM FINAL
Code-magic IBM FINAL
 
Geek Sync | Top Metrics to Monitor in Your MySQL Databases
Geek Sync | Top Metrics to Monitor in Your MySQL DatabasesGeek Sync | Top Metrics to Monitor in Your MySQL Databases
Geek Sync | Top Metrics to Monitor in Your MySQL Databases
 
Through the JMX Window
Through the JMX WindowThrough the JMX Window
Through the JMX Window
 
Horizontal Scaling for Millions of Customers!
Horizontal Scaling for Millions of Customers! Horizontal Scaling for Millions of Customers!
Horizontal Scaling for Millions of Customers!
 
Lanka government cloud: what, why & how?
Lanka government cloud: what, why & how?Lanka government cloud: what, why & how?
Lanka government cloud: what, why & how?
 
How Pixid dropped Oracle and went hybrid with MariaDB
How Pixid dropped Oracle and went hybrid with MariaDBHow Pixid dropped Oracle and went hybrid with MariaDB
How Pixid dropped Oracle and went hybrid with MariaDB
 
Will Microservices Die.pdf
Will Microservices Die.pdfWill Microservices Die.pdf
Will Microservices Die.pdf
 
MUM Melbourne : Build Enterprise Wireless with CAPsMAN
MUM Melbourne : Build Enterprise Wireless with CAPsMANMUM Melbourne : Build Enterprise Wireless with CAPsMAN
MUM Melbourne : Build Enterprise Wireless with CAPsMAN
 
C. Sotiriou, Vodafone Greece: Adopting Quarkus for the digital experience layer
C. Sotiriou, Vodafone Greece: Adopting Quarkus for the digital experience layerC. Sotiriou, Vodafone Greece: Adopting Quarkus for the digital experience layer
C. Sotiriou, Vodafone Greece: Adopting Quarkus for the digital experience layer
 
Software Defined Networking
Software Defined NetworkingSoftware Defined Networking
Software Defined Networking
 
2596 - Integrating PureApplication System Into Your Network
2596 - Integrating PureApplication System Into Your Network2596 - Integrating PureApplication System Into Your Network
2596 - Integrating PureApplication System Into Your Network
 
Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...
Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...
Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...
 
How to move from Monolith to Microservice
How to move from Monolith to MicroserviceHow to move from Monolith to Microservice
How to move from Monolith to Microservice
 
Service-Mesh-Presentation.pdf
Service-Mesh-Presentation.pdfService-Mesh-Presentation.pdf
Service-Mesh-Presentation.pdf
 
Migration to IBM SmartCloud Notes
Migration to IBM SmartCloud Notes Migration to IBM SmartCloud Notes
Migration to IBM SmartCloud Notes
 

More from Dashamir Hoxha

Easy Blogging With Emacs -- Cheatsheet
Easy Blogging With Emacs -- CheatsheetEasy Blogging With Emacs -- Cheatsheet
Easy Blogging With Emacs -- CheatsheetDashamir Hoxha
 
Autobiography of Benjamin Franklin
Autobiography of Benjamin FranklinAutobiography of Benjamin Franklin
Autobiography of Benjamin FranklinDashamir Hoxha
 
Easy Blogging With Emacs
Easy Blogging With EmacsEasy Blogging With Emacs
Easy Blogging With EmacsDashamir Hoxha
 
Easy Blogging With Emacs
Easy Blogging With EmacsEasy Blogging With Emacs
Easy Blogging With EmacsDashamir Hoxha
 
Development Setup of B-Translator
Development Setup of B-TranslatorDevelopment Setup of B-Translator
Development Setup of B-TranslatorDashamir Hoxha
 
Using Drupal Features in B-Translator
Using Drupal Features in B-TranslatorUsing Drupal Features in B-Translator
Using Drupal Features in B-TranslatorDashamir Hoxha
 
IT Strategy of Albanian Customs
IT Strategy of Albanian CustomsIT Strategy of Albanian Customs
IT Strategy of Albanian CustomsDashamir Hoxha
 
Strategjia për IT-në e Doganës Shqiptare
Strategjia për IT-në e Doganës ShqiptareStrategjia për IT-në e Doganës Shqiptare
Strategjia për IT-në e Doganës ShqiptareDashamir Hoxha
 
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.1x Software as Service
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.1x Software as ServiceCertificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.1x Software as Service
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.1x Software as ServiceDashamir Hoxha
 
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS188.1x Artificial Intelli...
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS188.1x Artificial Intelli...Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS188.1x Artificial Intelli...
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS188.1x Artificial Intelli...Dashamir Hoxha
 
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.2x Advanced Software ...
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.2x Advanced Software ...Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.2x Advanced Software ...
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.2x Advanced Software ...Dashamir Hoxha
 
Certificate -- Dashamir Hoxha -- edX/MITx -- 6.00x Introduction to Computer S...
Certificate -- Dashamir Hoxha -- edX/MITx -- 6.00x Introduction to Computer S...Certificate -- Dashamir Hoxha -- edX/MITx -- 6.00x Introduction to Computer S...
Certificate -- Dashamir Hoxha -- edX/MITx -- 6.00x Introduction to Computer S...Dashamir Hoxha
 
Using OpenFire With OpenLDAP
Using OpenFire With OpenLDAPUsing OpenFire With OpenLDAP
Using OpenFire With OpenLDAPDashamir Hoxha
 
phpWebApp presentation
phpWebApp presentationphpWebApp presentation
phpWebApp presentationDashamir Hoxha
 
Managing HotSpot Clients With FreeRadius
Managing HotSpot Clients With FreeRadiusManaging HotSpot Clients With FreeRadius
Managing HotSpot Clients With FreeRadiusDashamir Hoxha
 
The Digital Signature and the X.509/OpenPGP Authentication Models
The Digital Signature and the X.509/OpenPGP Authentication ModelsThe Digital Signature and the X.509/OpenPGP Authentication Models
The Digital Signature and the X.509/OpenPGP Authentication ModelsDashamir Hoxha
 
Building a Gateway Server
Building a Gateway ServerBuilding a Gateway Server
Building a Gateway ServerDashamir Hoxha
 
An Algorithm for Incremental Multi-Resolution Modeling
An Algorithm for Incremental Multi-Resolution ModelingAn Algorithm for Incremental Multi-Resolution Modeling
An Algorithm for Incremental Multi-Resolution ModelingDashamir Hoxha
 

More from Dashamir Hoxha (20)

Easy Blogging With Emacs -- Cheatsheet
Easy Blogging With Emacs -- CheatsheetEasy Blogging With Emacs -- Cheatsheet
Easy Blogging With Emacs -- Cheatsheet
 
Autobiography of Benjamin Franklin
Autobiography of Benjamin FranklinAutobiography of Benjamin Franklin
Autobiography of Benjamin Franklin
 
Easy Blogging With Emacs
Easy Blogging With EmacsEasy Blogging With Emacs
Easy Blogging With Emacs
 
Easy Blogging With Emacs
Easy Blogging With EmacsEasy Blogging With Emacs
Easy Blogging With Emacs
 
Development Setup of B-Translator
Development Setup of B-TranslatorDevelopment Setup of B-Translator
Development Setup of B-Translator
 
Using Drupal Features in B-Translator
Using Drupal Features in B-TranslatorUsing Drupal Features in B-Translator
Using Drupal Features in B-Translator
 
IT Strategy of Albanian Customs
IT Strategy of Albanian CustomsIT Strategy of Albanian Customs
IT Strategy of Albanian Customs
 
Strategjia për IT-në e Doganës Shqiptare
Strategjia për IT-në e Doganës ShqiptareStrategjia për IT-në e Doganës Shqiptare
Strategjia për IT-në e Doganës Shqiptare
 
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.1x Software as Service
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.1x Software as ServiceCertificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.1x Software as Service
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.1x Software as Service
 
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS188.1x Artificial Intelli...
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS188.1x Artificial Intelli...Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS188.1x Artificial Intelli...
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS188.1x Artificial Intelli...
 
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.2x Advanced Software ...
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.2x Advanced Software ...Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.2x Advanced Software ...
Certificate -- Dashamir Hoxha -- edX/BerkeleyX -- CS169.2x Advanced Software ...
 
Certificate -- Dashamir Hoxha -- edX/MITx -- 6.00x Introduction to Computer S...
Certificate -- Dashamir Hoxha -- edX/MITx -- 6.00x Introduction to Computer S...Certificate -- Dashamir Hoxha -- edX/MITx -- 6.00x Introduction to Computer S...
Certificate -- Dashamir Hoxha -- edX/MITx -- 6.00x Introduction to Computer S...
 
Udhëzuesi i Kturtle
Udhëzuesi i KturtleUdhëzuesi i Kturtle
Udhëzuesi i Kturtle
 
Using OpenFire With OpenLDAP
Using OpenFire With OpenLDAPUsing OpenFire With OpenLDAP
Using OpenFire With OpenLDAP
 
phpWebApp presentation
phpWebApp presentationphpWebApp presentation
phpWebApp presentation
 
phpWebApp article
phpWebApp articlephpWebApp article
phpWebApp article
 
Managing HotSpot Clients With FreeRadius
Managing HotSpot Clients With FreeRadiusManaging HotSpot Clients With FreeRadius
Managing HotSpot Clients With FreeRadius
 
The Digital Signature and the X.509/OpenPGP Authentication Models
The Digital Signature and the X.509/OpenPGP Authentication ModelsThe Digital Signature and the X.509/OpenPGP Authentication Models
The Digital Signature and the X.509/OpenPGP Authentication Models
 
Building a Gateway Server
Building a Gateway ServerBuilding a Gateway Server
Building a Gateway Server
 
An Algorithm for Incremental Multi-Resolution Modeling
An Algorithm for Incremental Multi-Resolution ModelingAn Algorithm for Incremental Multi-Resolution Modeling
An Algorithm for Incremental Multi-Resolution Modeling
 

PPPoE With Mikrotik and Radius

  • 1. Managing Internet Connections PPPoE, MikroTik and Radius Dashamir Hoxha <dashohoxha@gmail.com> Artur Nurja <tatanka@albaniaonline.net> ● How to manage internet clients of an ISP ● With PPPoE and MikroTik and Radius ● Based on the work done at AlbaniaOnline
  • 2. Managing PPPoE Connections with Mikrotik is Easy ● PPPoE = Point-to-Point Protocol over Ethernet ● Why PPPoE and not Ethernet? ● Configuring Mikrotik for PPPoE 1.Install package PPP 2. Create PPP profiles 3. Create a PPPoE service and enable it 4. Create user accounts
  • 3. However it Doesn't Scale Up Well ● A single Mikrotik can serve only a limited number of clients (400-500). ● Managing clients and their profiles in Mikrotik cannot be integrated easily with CRM apps. ● Managing clients manually in more than one Mikrotik server is difficult and error prone. ● If a Mikrotik fails, the service to the clients is interrupted, until a new Mikrotik is prepared and a backup of the clients is restored.
  • 5. Centralized AAA is Required ● AAA = Authentication, Authorization, Accounting ● FreeRadius is used to check username/password, to provide client profiles, and to get usage statistics. ● Client details are stored in a MySql database. ● Mikrotik-s are dumb gateways with simple configs. No client details are stored on them! ● Mikrotik-s use the central Radius for authentication, authorization, and for storing usage statistics. ● Clients can connect through any Mikrotik available.
  • 6. Clients are Managed by an External CRM Application ● CRM = Customer Relationship Management ● SugarCRM is used to keep all the client details ● SugarCRM is integrated with the database of freeRadius ● Decisions about clients are taken by Customer Care on SugarCRM ● They are automatically enforced by applying them on Radius
  • 7. We Need Also High Availability and Load Balancing
  • 8. We Need Also High Availability and Load Balancing ● There are 2 MySQL databases, replicating in Master-->Slave mode; if the first one fails, it is replaced by the second one, in order to minimise the service down time. ● Each Mikrotik is configured with a primary and a secondary Radius server; if the primary server does not reply, the second one is tried. This provides HA. ● Almost half of mikrotiks have the first radius as primary, and the others have the second one. This provides Load Balancing.
  • 9. Implementation Steps 1. Install freeRadius 2. Test freeRadius installation 3. Set up freeRadius to use a MySQL database 4. Test freeRadius with MySQL backend 5. Configure Mikrotik for being a PPPoE server 6. Test the PPPoE Service 7. Get Mikrotik to work with Radius 8. Add a second Radius server in Mikrotik 9. Replicate MySQL databases of freeRadius
  • 10. SQL API for Radius Manager ● API = Application Programing Interface ● Helps to access the database of Radius Manager from an outside program (SugarCRM). ● Encapsulates (hides) the complexity of the database from the outside programmer. ● Makes simpler the code of the outside program. ● The programmer is relived from the fear of touching something inappropriately in the database. ● If structure of DB is modified in future releases, only the API needs to take them into account.
  • 11. SQL API for Radius Manager ● user_get(user); ● user_add(user, passwd, service_id, nr_conn, expiration_date); ● user_update(user, service_id, nr_conn, expiration_date); ● user_set_password(user, passwd); ● user_change_service(old_srvid, new_srvid); ● user_del(user); ● service_get(service_id, service_name); ● service_add(service_name, download_rate, upload_rate); ● service_update(service_id, service_name, download_rate, upload_rate, enabled); ● service_del(service_id);
  • 12. Managing Internet Connections PPPoE, MikroTik and Radius Dashamir Hoxha <dashohoxha@gmail.com> Artur Nurja <tatanka@albaniaonline.net> Thank you for your attention! Are there any questions?