Ben Stienstra

Linux, Unix, network, radio and more...

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
routeros_bogon_update [2015/04/19 14:03]
admin [RouterOS 6.x - Update bogon list automatically]
routeros_bogon_update [2015/04/19 14:07] (current)
admin [RouterOS 6.x - Update bogon list automatically]
Line 28: Line 28:
  
        :if ( $line != "" ) do={        :if ( $line != "" ) do={
-       /ip firewall address-list add list=bogons address=$line; +         /ip firewall address-list add list=bogons address=$line; 
-}+       }
 } while ($lineEnd < $contentLen)</code> } while ($lineEnd < $contentLen)</code>
   * Test run script:<code>/system script run bogons</code>   * Test run script:<code>/system script run bogons</code>
   * Schedule script:<code>/system scheduler add interval=24h start-time=7:00:00 on-event=bogons name=update-bogons</code>   * Schedule script:<code>/system scheduler add interval=24h start-time=7:00:00 on-event=bogons name=update-bogons</code>
  
routeros_bogon_update.txt · Last modified: 2015/04/19 14:07 by admin