Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


routeros_bogon_update

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
routeros_bogon_update [2015/04/19 14:02]
admin [RouterOS 6.x - Update bogon list automatically]
routeros_bogon_update [2015/04/19 14:03]
admin [RouterOS 6.x - Update bogon list automatically]
Line 27: Line 27:
        :set lastEnd ( $lineEnd + 1 ) ;        :set lastEnd ( $lineEnd + 1 ) ;
  
-       :local tmpArray [:toarray $line] ; +       :if ( $line != "" ) do={ 
- :if ( [:pick $tmpArray 0] != "" ) do={ +       /ip firewall address-list add list=bogons address=$line;
- :put $tmpArray; +
-         /ip firewall address-list add name=bogons address=[:pick $tmpArray 0];+
 } }
 } while ($lineEnd < $contentLen)</code> } while ($lineEnd < $contentLen)</code>
routeros_bogon_update.txt · Last modified: 2015/04/19 14:07 by admin