mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-09-22 09:52:12 +02:00
add RFC7999 BGP Blackhole community (65535:666) to routes added
This commit is contained in:
parent
22aa227fca
commit
ed8b3caae4
@ -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