Mikrotik Ppp Profile Script -

: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

/ip route remove [find comment="VPN route for $user"] Add the remote IP to an address list for firewall rules (e.g., allow only authenticated users). mikrotik ppp profile script

:log info "PPP DOWN: $user disconnected from $interface" You can call external systems (e.g., RADIUS, webhook, billing server) using /tool fetch . :if ([:find $user "vip"] = 0) do= /queue

:log info "PPP UP: $user logged in from $caller-id on $interface, remote IP $remote-address" remote IP $remote-address"