Ahem test – test … test want to test .. eh want to share mikrotik script, yesterday it had made make mangle … hehe expert already .. This time I want to share with mikrotik script for the add secret, so you do not need to create one by one. This is very useful for those of you who have a base service with PPP / PPPoE server. Nih … .. ane share …
(
: Local x
: Set x “alpha-BTM”
: For i from = 1 to = 10 do = (
: If ($ i <10) do = (: set x “alpha-btm0″) else = (: set x “alpha-BTM”)
/ ppp secret add name = ($ x-$ i) password = (“BKM @”. $ I) service = any profile-profile = vpn local-address = 1.1.226.254 remote-address = (“1.1.226.” . $ i))
)
Description:
x = variable that will be processed by a script, the script above is used as a name
i = variable loop of a condition
