


We can setup a RADIUS server in mikrotik using its built-in radius server called User Manager. Now we will move to mikrotik billing system using its built-in radius called USER MANAGER. If all goes fine, you will start surfing the internet smoothly :) Now at user end, create a pppoe dialer and connect with the id = zaib and password = 1234 Now finally we will add local user to test the pppoe server status.ġ /ppp secret add caller-id="" disabled=no limit-bytes-in=0 limit-bytes-out=0 name=zaib password=1234 profile=pppoe-profile routes="" service=pppoe (In above masquerading rule, I have added src-address to 172.16.0.x ip pool, so that ONLY pppoe connected users internet will work)Īdd DNS server so users can resolve internet hostnames.ġ /ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=5000KiB max-udp-packet-size=512 servers=221.132.112.8 ppp profile add change-tcp-mss=default dns-server=10.0.0.1 local-address=10.0.0.1 name=pppoe-profile only-one=default remote-address=pppoe-users-pool use-compression=default use-encryption=default use-vj-compression=defaultįollowing is the screenshot for above created rule.ġ /ip firewall nat add action=masquerade chain=srcnat disabled=no src-address=172.16.0.1-172.16.0.255 Now we will add new profile for pppoe users. Now we will add IP Pool for pppoe-users (ips that user will get after successful dialing)ġ /ip pool add name=pppoe-users-pool ranges=172.16.0.1-172.16.0.254 you can adjust it accordingly)įirst we will add PPPoE Server using CLI (command interface)Ģ add authentication=pap default-profile=default disabled=no interface=ether1 keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-sessions=1 mrru=disabled one-session-per-host=yes service-name=aacable (Configure interfaces accordingly to your environment, in the images ip series is 192.168.2.1, don’t get confuse with it. In this example Mikrotik have two lan cards.ġ) ether1 = ip 10.0.0.1 / LAN Interface hosting PPPoE ServerĢ) ether2 = ip 192.168.0.1 / WAN interface connected with DSL / Fiber etc. We will divide this article in two section. It will also show you how to create a 30 days limit account with 256Kbps speed limit. This basic RADIUS Server a.k.a USERMAN can be used for any ppp service like VPN/PPPoE/HOTSPOT. This article will also demonstrate on how you can create your automated pre-paid billing solution for users using Mikrotik’s User Manager. This guide will illustrate howto create PPPoE server in MIKROTIK RouterOS (I used v 5.6 in this example).
