Merge pull request #621 from tbaschak/mikrotik-bgp-blackholecommunity
add RFC7999 BGP Blackhole community (65535:666) to routes added to mikrotik
This commit is contained in:
commit
b86b2de12c
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user