MikroTik PPPoE & RADIUS config generator

Generate copy-ready RouterOS v6 or v7 scripts for your PPPoE bridge, IP pool, PPP profile, RADIUS authentication, CoA port 3799, NAT and TCP MSS clamping. Everything runs in your browser: nothing you enter is sent anywhere.

RouterOS version
Session limit

Upstream internet port for NAT rule

Bridge carrying subscriber access ports

Comma-separated member interfaces

Used for server, pool and profile names

Derives gateway and IP pool range

Up to 4 comma-separated IPv4 resolvers

1480 default (1492 max over 1500 Ethernet)

Match MTU so both directions agree

IPv4 address of your RADIUS server

Escaped safely; never placed in share URLs

Standard UDP 1812 auth and 1813 acct

RFC 5176 default 3799 (or 1700)

Local gateway IP
10.50.0.1
Subscriber pool range
10.50.0.2-10.50.3.254
Subscriber capacity
1,021 IPs
MTU / MRU
1480 / 1480 bytes
TCP MSS clamp
1440 bytes
RADIUS / CoA ports
1812 / 1813 / 3799

Derived from 10.50.0.0/22 (Private (RFC 1918)): 10.50.0.1 is assigned as the PPPoE gateway and 10.50.0.2-10.50.3.254 serves 1,021 subscribers.

RouterOS v7 script

# MikroTik PPPoE Server + RADIUS (RouterOS v7)
# Pool: 10.50.0.0/22 (1,021 subscribers) | Gateway: 10.50.0.1 | CoA UDP 3799
# Paste into a WinBox or SSH terminal. Review interface names before applying.

/interface bridge
add name="pppoe-bridge" protocol-mode=rstp comment="PPPoE subscriber bridge"

/interface bridge port
add bridge="pppoe-bridge" interface="ether2" comment="PPPoE subscriber port"
add bridge="pppoe-bridge" interface="ether3" comment="PPPoE subscriber port"

/ip pool
add name="isp-pppoe-pool" ranges=10.50.0.2-10.50.3.254

/ppp profile
add name="isp-pppoe-profile" local-address=10.50.0.1 remote-address="isp-pppoe-pool" dns-server=1.1.1.1,8.8.8.8 only-one=yes change-tcp-mss=yes

/interface pppoe-server server
add service-name="isp-pppoe" interface="pppoe-bridge" default-profile="isp-pppoe-profile" authentication=pap,chap max-mtu=1480 max-mru=1480 one-session-per-host=yes disabled=no

/ppp aaa
set use-radius=yes accounting=yes interim-update=30m

/radius
add service=ppp address=192.0.2.10 secret="ChangeMeRadiusSecret" authentication-port=1812 accounting-port=1813 timeout=3s

/radius incoming
set accept=yes port=3799

/ip firewall filter
# Move this rule above any input drop rule if your router drops WAN input.
add chain=input protocol=udp src-address=192.0.2.10 dst-port=3799 action=accept comment="Allow RADIUS CoA"

/ip firewall nat
add chain=srcnat src-address=10.50.0.0/22 out-interface="ether1" action=masquerade comment="PPPoE subscriber NAT"

/ip firewall mangle
add chain=forward protocol=tcp tcp-flags=syn tcp-mss=1441-65535 out-interface=all-ppp action=change-mss new-mss=1440 passthrough=yes comment="PPPoE TCP MSS clamp (download)"
add chain=forward protocol=tcp tcp-flags=syn tcp-mss=1441-65535 in-interface=all-ppp action=change-mss new-mss=1440 passthrough=yes comment="PPPoE TCP MSS clamp (upload)"

What the generated script configures

Bridge and subscriber pool

Groups your access ports into a dedicated bridge without assigning a LAN IP to it, so devices cannot bypass PPPoE with static addresses. The first usable host in your CIDR becomes the PPP local gateway and the remainder forms the pool.

RADIUS authentication and CoA

Enables PPP AAA with 30-minute interim accounting updates and opens incoming RADIUS Change of Authorization on UDP 3799 so your billing platform can change speeds or disconnect expired sessions live.

MTU, MRU and TCP MSS clamping

PPPoE adds an 8-byte header inside each Ethernet frame. Clamping TCP SYN packets to 40 bytes below your MTU prevents stalled downloads and broken HTTPS connections across fiber ONTs and backhaul links.

Step-by-step walkthrough

Need help testing sessions, checking RADIUS debug logs or migrating live customers? Read our MikroTik PPPoE and RADIUS setup guide for verification commands and troubleshooting.

Automate MikroTik PPPoE provisioning and RADIUS billing in two minutes.

Try it for 14 days with no card. If you stay, your first invoice covers those 14 days at the usual rates, never less than the $5 monthly minimum (KES 500 in Kenya). Leave within 14 days and you pay nothing.