Uloz si ten textak... udelej si .php ktere ti to zpracuje:
<?php
$file_name = "ip.txt";
$textFile = file($file_name);
echo "/ip firewall address-list <br>";
foreach($textFile as $key => $val) {
echo 'add address='.$val.' comment="" disabled=no list="BLACKLIST" <br>';
}?>
Spust a na vystupu dostanes neco jako:
/ip firewall address-list
add address=1.234.27.146 comment="" disabled=no list="BLACKLIST"
add address=1.234.91.44 comment="" disabled=no list="BLACKLIST"
add address=106.0.176.7 comment="" disabled=no list="BLACKLIST"
add address=110.173.55.253 comment="" disabled=no list="BLACKLIST"
add address=200.170.219.25 comment="" disabled=no list="BLACKLIST"
add address=206.192.245.234 comment="" disabled=no list="BLACKLIST"
add address=211.71.232.23 comment="" disabled=no list="BLACKLIST"
add address=213.251.187.162 comment="" disabled=no list="BLACKLIST"
add address=46.38.63.119 comment="" disabled=no list="BLACKLIST"
add address=64.85.233.8 comment="" disabled=no list="BLACKLIST"
...
...
...
nasypej 3000 radku do Terminalu a na chvili se rozluc s CPU :-D