Welcome Guest! | Sign Up | Sign in

Mikrotik Ppp Profile Script 95%

:if ([:find $user "vip"] = 0) do= /queue simple add name="queue-$user" target=$interface max-limit=100M/100M else= /queue simple add name="queue-$user" target=$interface max-limit=20M/5M

/queue simple remove [find name="queue-$user"] Add a route to client’s LAN behind a PPP client (useful for site-to-site VPN). mikrotik ppp profile script

/ip route add dst-address=192.168.100.0/24 gateway=$remote-address comment="VPN route for $user" :if ([:find $user "vip"] = 0) do= /queue

/ip firewall address-list add address=$remote-address list="ppp-active" timeout=1d comment=$user billing server) using /tool fetch .

:log info "PPP DOWN: $user disconnected from $interface" You can call external systems (e.g., RADIUS, webhook, billing server) using /tool fetch .