please Help me
Posted: Wed Apr 29, 2015 9:10 pm
i am using this script http://wiki.mikrotik.com/wiki/Using_Fet ... ress_Lists
the source file txt its from http://www.whatsapp.com/cidr.txt when i download the file cidr.txt from whatsapp.com
the ips appear like that [img] [/img]
so the script
not working
ANy idea to make a break btween the ips
PLZ HELP ME
the source file txt its from http://www.whatsapp.com/cidr.txt when i download the file cidr.txt from whatsapp.com
the ips appear like that [img] [/img]
so the script
Code: Select all
## Generic IP address list input
## Based on a script written by Sam Norris, ChangeIP.com 2008
## Edited by Andrew Cox, AccessPlus.com.au 2008
:if ( [/file get [/file find name=ipaddress.txt] size] > 0 ) do={
# Remove exisiting addresses from the current Address list
/ip firewall address-list remove [/ip firewall address-list find list=MY-IP-LIST]
:global content [/file get [/file find name=ipaddress.txt] contents] ;
:global contentLen [ :len $content ] ;
:global lineEnd 0;
:global line "";
:global lastEnd 0;
:do {
:set lineEnd [:find $content "\n" $lastEnd ] ;
:set line [:pick $content $lastEnd $lineEnd] ;
:set lastEnd ( $lineEnd + 1 ) ;
#If the line doesn't start with a hash then process and add to the list
:if ( [:pick $line 0 1] != "#" ) do={
:local entry [:pick $line 0 ($lineEnd -1) ]
:if ( [:len $entry ] > 0 ) do={
/ip firewall address-list add list=MY-IP-LIST address=$entry
}
}
} while ($lineEnd < $contentLen)
}
ANy idea to make a break btween the ips
PLZ HELP ME