user-avatar
Today is Friday
February 10, 2012

April 9, 2010

Add Secret at mikrotik script

by tambang — Categories: Mikrotik, Tutorial — Tags: , , , , Leave a comment

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


if = enabled / conditioned if $ i (variable loop) less than 10 then set x to “alpha-btm0″ and if more than 10 then the x to be the “alpha-BTM”
Conditions – the conditions above can be changed to suit your needs if you want to create more than 10, meaning that you must change is the variable loopnya (i) be as you wish …. Okay If so … Until Next … On Tutor

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree

© 2012 SIEJELEX All rights reserved - Wallow theme v0.46.4 by ([][]) TwoBeers - Powered by WordPress - Have fun!