Skip to main content

Comandi basici BGP su MikroTik

Mikrotik 22 June 2022

Visualizza received routes 
ip route print where received-from=
ipv6 route print where received-from=
ip route print where received-from=PEER_GGAMAUR_V4_1
V7
/ip/route/print where

Visualizza GW per una route
ip route print where dst-address in
ipv6 route print where dst-address in
ip route print where dst-address in 130.59.138.0/24

Visualizza le routes inviate
routing bgp advertisements print
routing bgp advertisements print ROUTE-SERVER_V6-SWISS_IX.RS1
routing bgp advertisements print PEER_GGAMAUR_V4_1
V7
/routing/bgp/advertisements print where peer=PEER_MICROSOFT_V4-1 (ricordarsi di leggere il nome della sessione e non della connessione)

 Visualizza una rotta a un IP
/ip route print where 159.148.147.204 in dst-address

Impostare in blocco l’affinity su tutti i peer ebgp
 
/routing/bgp/connection> set [find local.role=ebgp] input.affinity=main output.affinity=main
 
Filtro firewall port scanning
 
/ip firewall filter
add action=reject chain=input protocol=tcp reject-with=tcp-reset
    src-address-list=”port scanners”
add action=add-src-to-address-list address-list=”port scanners”
    address-list-timeout=2w chain=input
    protocol=tcp psd=21,3s,3,1
add action=add-src-to-address-list address-list=”port scanners”
    address-list-timeout=2w chain=input
    protocol=tcp tcp-flags=fin,!syn,!rst,!psh,!ack,!urg
add action=add-src-to-address-list address-list=”port scanners”
    address-list-timeout=2w chain=input protocol=tcp
    tcp-flags=fin,syn
add action=add-src-to-address-list address-list=”port scanners”
    address-list-timeout=2w chain=input protocol=tcp
    tcp-flags=syn,rst
add action=add-src-to-address-list address-list=”port scanners”
    address-list-timeout=2w chain=input protocol=
    tcp tcp-flags=fin,psh,urg,!syn,!rst,!ack
add action=add-src-to-address-list address-list=”port scanners”
    address-list-timeout=2w chain=input protocol=tcp
    tcp-flags=fin,syn,rst,psh,ack,urg
add action=add-src-to-address-list address-list=”port scanners”
    address-list-timeout=2w chain=input protocol=tcp
    tcp-flags=!fin,!syn,!rst,!psh,!ack,!urg
 
[admin@MINAP] > /routing bgp advertisements print where
0 peer=PEER_HE_V6-1 dst=2a02:4460::/32 afi=ipv6 nexthop=2001:7f8:c5::a520:2032:1 origin=0 as-path=sequence 202032 8224 communities=64555:10000

[admin@MINAP] > /routing bgp advertisements print where
0 peer=PEER_HE_V4-1 dst=185.54.80.0/22 afi=ip nexthop=185.1.114.53 origin=0 as-path=sequence 202032 13097 communities=64555:10000

0 0 votes
Article Rating
Subscribe
Notify of

0 Comments
Oldest
Newest Most Voted
Goline It Services Logo

News

  • GOLINE is pleased to announce that it has achieved ESET Gold Partner status for 2027. The recognition follows the successful completion of ESET’s partner certification requirements and confirms GOLINE’s continued investment in cybersecurity expertise and professional development. ESET’s partner programme is designed to support companies working with its cybersecurity solutions through dedicated technical and sales resources, training and other partner services. For GOLINE, the achievement further strengthens its collaboration with ESET and its ability to integrate ESET security technologies into the cybersecurity solutions and services it provides to businesses. ESET solutions are already part of GOLINE’s cybersecurity portfolio, alongside technologies...
  • GOLINE SA is excited to announce a new partnership with NetApp, a global leader in cloud data services and storage solutions. This collaboration aims to help organizations modernize their IT infrastructure, streamline data management, and enhance performance across cloud and hybrid environments. Modern Data Solutions for Businesses Through this partnership, GOLINE integrates advanced data management solutions, enabling businesses to securely store, manage, and access critical information across cloud, on-premises, or hybrid setups. Clients can benefit from: Flexible and scalable storage solutions to meet growing data needs Simplified management of cloud and on-premises environments Enterprise-grade security for sensitive and mission-critical data...
  • GOLINE SA is proud to announce a new strategic partnership with Omnissa, a global leader in digital workspace platforms and Horizon Cloud Service solutions. This collaboration marks a significant step forward in helping organizations embrace secure, flexible, and high-performance work environments. Why Choose Omnissa for Your Business? The platform enables virtual desktops, applications, and unified endpoint management. Organizations can deploy scalable workspaces across cloud, hybrid, or on-premises setups. Key benefits include: Easy access to desktops and apps on any device Centralized management for Windows, macOS, iOS, Android, and ChromeOS Strong security with access controls and multi-factor authentication Automated scaling to...
  • Hosting Services
  • +41 (0)91 260 76 50
0
Would love your thoughts, please comment.x
()
x
| Reply