add RFC7999 BGP Blackhole community (65535:666) to routes added

This commit is contained in:
Theodore Baschak 2016-12-27 03:17:24 -06:00
parent 22aa227fca
commit ed8b3caae4

View File

@ -69,6 +69,7 @@ if ( $API->connect( $cfg[ ip_mikrotik ], $cfg[ api_user ], $cfg[ api_pass ] ) )
$API->write( '/ip/route/add', false );
$API->write( '=dst-address=' . $IP_ATTACK, false );
$API->write( '=type=blackhole', false );
$API->write( '=bgp-communities=65535:666', false );
$API->write( '=comment=' . $comment_rule );
$ret = $API->read();