SlideShare a Scribd company logo
13
Most read
16
Most read
17
Most read
www.glcnetworks.com
BGP filter
GLC webinar, 10 august 2017
Achmad Mardiansyah
achmad@glcnetworks.com
GLC Networks, Indonesia
1
www.glcnetworks.com
Agenda
● Introduction
● BGP
● BGP filter
● Demo
● Q & A
2
www.glcnetworks.com
What is GLC?
● Garda Lintas Cakrawala (www.glcnetworks.com)
● An Indonesian company
● Located in Bandung
● Areas: Training, IT Consulting
● Mikrotik Certified Training Partner/Consultant/Distributor
● Ubiquiti Certified Trainer/Consultant
● RedHat Certified Trainer
3
www.glcnetworks.com
About GLC webinar?
● First webinar: january 1, 2010 (title:
tahun baru bersama solaris - new
year with solaris OS)
● As a sharing event with various
topics: linux, networking, wireless,
database, programming, etc
● Regular schedule: every 2 weeks
● Irregular schedule: as needed
● Checking schedule:
http://www.glcnetworks.com/main/sc
hedule
● You are invited to be a presenter
β—‹ No need to be an expert
β—‹ This is a forum for sharing: knowledge,
experiences, information
4
www.glcnetworks.com
Trainer Introduction
● Name: Achmad Mardiansyah
● Base: bandung, Indonesia
● Linux user (since 1999), Mikrotik user (since 2007),
ubnt user (since 2011)
● Certified Trainer (Mikrotik, Ubiquiti, Redhat)
● Certified Consultant
● Work: Telco engineer, Sysadmin, PHP programmer,
and Lecturer
● Personal website: http://achmadjournal.com
● More info:
http://au.linkedin.com/in/achmadmardiansyah
5
www.glcnetworks.com
Please introduce yourself
● Your name
● Your company/university?
● Your networking experience?
● Your mikrotik experience?
● Your expectation from this course?
6
www.glcnetworks.com
BGP
7
www.glcnetworks.com
AS and BGP
● AS (Autonomous System)
β—‹ Collection of routers and prefixes under single administration (can be an organisation) which
also apply single routing policy
β—‹ AS is identified by AS number, given by IANA via Regional Registry
● BGP (Border Gateway Protocol)
β—‹ A protocol that is used between AS for exchanging routing information (prefixes)
β—‹ BGP see an AS as a (big) node which can forward packet based on layer 3
●
8
www.glcnetworks.com
● Traditional routing: based on router HOP count
● BGP routing: based on AS HOP count
Traditional routing VS. BGP routing
9
www.glcnetworks.com
BGP peering types:
● Internal (iBGP)
β—‹ peering inside AS
β—‹ usually is backed-up by IGP (Interior Gateway Protocol).
E.g. OSPF, RIP, EIGRP, etc
β—‹ Unless route-reflector is used, every router inside AS
need to setup peering each other (full-mesh peering).
● External (eBGP)
β—‹ Peering between AS border router
During ebgp peering, each router will exchange:
● Outgoing: inform own prefix to the world
● Incoming: receive prefixes from other AS
BGP peering
10
Other
AS
www.glcnetworks.com
● Announce wrong prefix
β—‹ Example: AS2 announcing wrong prefix (e.g. 8.8.8.0/24)
to AS5 and AS3
● Receiving wrong prefix
β—‹ Example: AS3 and AS5 receiving wrong prefix (8.8.8.0/24)
from AS 2
BGP peering problem (example)
11
Wrong
prefix
Wrong
prefix
Other
AS
www.glcnetworks.com
● Other AS (AS5, AS3, AS4, AS1) will see prefix
8.8.8.0/24 is very close to them, compared to the
real AS that own that ip block
● Traffic goes to 8.8.8.0/24 will be forwarded to
AS2
● AS2 will receive flood of traffic
● packets never reach the destination (because its
landed in wrong AS)
● Packets will moving around in AS2 until TTL
expired -> causing congestion
● Customers complain internet is slow
BGP peering problem (effect)
12
Wrong
prefix
Wrong
prefix
Other
AS
www.glcnetworks.com
● Setup outgoing filter on AS2
β—‹ Only allow prefix that AS2 really own
● Setup incoming filter on AS3 and AS5
β—‹ Only allow prefix that AS2 really own
BGP FILTER is used
to protect YOU from INTERNET
and
to protect INTERNET from YOU
BGP peering problem (solution)
13
filter filter
Other
AS
www.glcnetworks.com
BGP filter on Mikrotik
14
www.glcnetworks.com
Filter on BGP
peering
Filter can be applied on
BGP peering:
- In-filter
- Out-filter
This is just an example
only, not taken from real
environment
15
www.glcnetworks.com
/routing filter (outgoing)
● Outgoing filter
β—‹ In this example we only allow our own prefix (20.0.0.0/24) to announce it to moratel peer
/routing filter add action=accept chain=moratel-out prefix=20.0.0.0/24 prefix-length=23-24
β—‹ Reject anything else
/routing filter add action=reject chain=moratel-out
16
www.glcnetworks.com
/routing filter (incoming)
● Incoming filter
β—‹ In this example: we only allow prefix 50.0.0.0/8 from moratel to enter our routing table
/routing filter add action=accept chain=moratel-in prefix=50.0.0.0/8 prefix-length=8-24
β—‹ Reject anything else
/routing filter add action=reject chain=moratel-in
17
www.glcnetworks.com
Interested?
Just come to our
training...
Special price for webinar
attendees…
http://www.glcnetworks.c
om/main/schedule
18
www.glcnetworks.com
End of slides
● Thank you for your attention
● Please submit your feedback: http://bit.ly/glcfeedback
● Like our facebook page: β€œGLC networks”
● Slide: http://www.slideshare.net/r41nbuw
● Recording: https://www.youtube.com/channel/UCI611_IIkQC0rsLWIFIx_yg
● Stay tune with our schedule
19

More Related Content

PDF
BGP on mikrotik
PDF
Mikrotik firewall filter
PDF
Mikrotik firewall raw table
PDF
Mikrotik Load Balancing with PCC
PDF
BGP on RouterOS7 -Part 1
PDF
BGP vs OSPF on Mikrotik
PDF
Mikrotik Fastpath vs Fasttrack
PDF
Layer 7 Firewall on Mikrotik
BGP on mikrotik
Mikrotik firewall filter
Mikrotik firewall raw table
Mikrotik Load Balancing with PCC
BGP on RouterOS7 -Part 1
BGP vs OSPF on Mikrotik
Mikrotik Fastpath vs Fasttrack
Layer 7 Firewall on Mikrotik

What's hot (20)

PDF
DevConf 2014 Kernel Networking Walkthrough
PDF
Mikrotik fastpath
PDF
Connection load balancing with mikrotik [workshop]
PDF
Choosing Mikrotik Platform x86 vs chr
PDF
Network LACP/Bonding/Teaming with Mikrotik
PDF
Using mikrotik with radius
PDF
Policy Based Routing (PBR) on Mikrotik
PPTX
Introduction to the Container Network Interface (CNI)
PDF
LinuxCon 2015 Linux Kernel Networking Walkthrough
PDF
Network Monitoring with The Dude and Whatsapp
PPTX
Tutorial: Using GoBGP as an IXP connecting router
PDF
Mikrotik IP Settings For Performance and Security
PDF
Using MikroTik routers for BGP transit and IX points
PDF
GLC webinar: limiting bandwidth using mikrotik
PDF
Tunnel vs VPN on Mikrotik
PDF
Mikrotik Bridge Deep Dive
PDF
Mikrotik firewall mangle
PDF
MPLS on Router OS V7 - Part 1
PDF
Linux Networking Explained
PDF
BGP tuning: Peer with loopback
DevConf 2014 Kernel Networking Walkthrough
Mikrotik fastpath
Connection load balancing with mikrotik [workshop]
Choosing Mikrotik Platform x86 vs chr
Network LACP/Bonding/Teaming with Mikrotik
Using mikrotik with radius
Policy Based Routing (PBR) on Mikrotik
Introduction to the Container Network Interface (CNI)
LinuxCon 2015 Linux Kernel Networking Walkthrough
Network Monitoring with The Dude and Whatsapp
Tutorial: Using GoBGP as an IXP connecting router
Mikrotik IP Settings For Performance and Security
Using MikroTik routers for BGP transit and IX points
GLC webinar: limiting bandwidth using mikrotik
Tunnel vs VPN on Mikrotik
Mikrotik Bridge Deep Dive
Mikrotik firewall mangle
MPLS on Router OS V7 - Part 1
Linux Networking Explained
BGP tuning: Peer with loopback
Ad

Similar to BGP filter with mikrotik (20)

PDF
Running BGP with Mikrotik
PPT
PDF
Internal BGP tuning: Mesh peering to avoid loop
PDF
BGP troubleshooting: route origin
PPT
Bgp (1)
PDF
BGP security tuning: pull-up route
PPT
bgp.ppt
PPT
BSCI30S06 border gateway protocol BG ppt
PDF
PDF
bgp features presentation routing protocle
PDF
Policy Based Routing with Indirect BGP - Part 1
PDF
BGP Services IP Transit vs IP Peering
PDF
Cisco ccnp 642-902 practice tests for quick preparation
PDF
Mikrotik User Meeting Manila: bgp vs ospf
PPT
Bigbgp (1)
PDF
SANOG23-BGP-Techniques.pdf
PPTX
Border Gatway Protocol
PPTX
BGP Ebook: Everything you need to know about Border Gateway Protocol
Β 
DOCX
CCNP Route 642 902 BGP
PDF
Securing BGP: Operational Strategies and Best Practices for Network Defenders...
Β 
Running BGP with Mikrotik
Internal BGP tuning: Mesh peering to avoid loop
BGP troubleshooting: route origin
Bgp (1)
BGP security tuning: pull-up route
bgp.ppt
BSCI30S06 border gateway protocol BG ppt
bgp features presentation routing protocle
Policy Based Routing with Indirect BGP - Part 1
BGP Services IP Transit vs IP Peering
Cisco ccnp 642-902 practice tests for quick preparation
Mikrotik User Meeting Manila: bgp vs ospf
Bigbgp (1)
SANOG23-BGP-Techniques.pdf
Border Gatway Protocol
BGP Ebook: Everything you need to know about Border Gateway Protocol
Β 
CCNP Route 642 902 BGP
Securing BGP: Operational Strategies and Best Practices for Network Defenders...
Β 
Ad

More from Achmad Mardiansyah (20)

PDF
01 introduction to mpls
PDF
Solaris 10 Container
PDF
Backup & Restore (BR) in Solaris OS
PDF
PHPID online Learning #6 Migration from procedural to OOP
PDF
Troubleshooting load balancing
PDF
ISP load balancing with mikrotik nth
PDF
Wireless CSMA with mikrotik
PDF
SSL certificate with mikrotik
PDF
Mikrotik VRRP
PDF
Mikrotik fasttrack
PDF
Jumpstart your router with mikrotik quickset
PDF
Mikrotik firewall NAT
PDF
Using protocol analyzer on mikrotik
PDF
Routing Information Protocol (RIP) on Mikrotik
PDF
IPv6 on Mikrotik
PDF
Mikrotik metarouter
PDF
Mikrotik the dude
PDF
Mikrotik API
PDF
Routing fundamentals with mikrotik
PDF
VLAN on mikrotik
01 introduction to mpls
Solaris 10 Container
Backup & Restore (BR) in Solaris OS
PHPID online Learning #6 Migration from procedural to OOP
Troubleshooting load balancing
ISP load balancing with mikrotik nth
Wireless CSMA with mikrotik
SSL certificate with mikrotik
Mikrotik VRRP
Mikrotik fasttrack
Jumpstart your router with mikrotik quickset
Mikrotik firewall NAT
Using protocol analyzer on mikrotik
Routing Information Protocol (RIP) on Mikrotik
IPv6 on Mikrotik
Mikrotik metarouter
Mikrotik the dude
Mikrotik API
Routing fundamentals with mikrotik
VLAN on mikrotik

Recently uploaded (20)

PPTX
Power Point - Lesson 3_2.pptx grad school presentation
Β 
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PDF
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
PPTX
SAP Ariba Sourcing PPT for learning material
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PDF
Testing WebRTC applications at scale.pdf
PDF
Paper PDF World Game (s) Great Redesign.pdf
PPTX
Funds Management Learning Material for Beg
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PPTX
Digital Literacy And Online Safety on internet
Power Point - Lesson 3_2.pptx grad school presentation
Β 
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
SAP Ariba Sourcing PPT for learning material
Module 1 - Cyber Law and Ethics 101.pptx
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
Introuction about WHO-FIC in ICD-10.pptx
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
Testing WebRTC applications at scale.pdf
Paper PDF World Game (s) Great Redesign.pdf
Funds Management Learning Material for Beg
PptxGenJS_Demo_Chart_20250317130215833.pptx
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
Slides PDF The World Game (s) Eco Economic Epochs.pdf
Design_with_Watersergyerge45hrbgre4top (1).ppt
Slides PPTX World Game (s) Eco Economic Epochs.pptx
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
Tenda Login Guide: Access Your Router in 5 Easy Steps
Digital Literacy And Online Safety on internet

BGP filter with mikrotik

  • 1. www.glcnetworks.com BGP filter GLC webinar, 10 august 2017 Achmad Mardiansyah achmad@glcnetworks.com GLC Networks, Indonesia 1
  • 3. www.glcnetworks.com What is GLC? ● Garda Lintas Cakrawala (www.glcnetworks.com) ● An Indonesian company ● Located in Bandung ● Areas: Training, IT Consulting ● Mikrotik Certified Training Partner/Consultant/Distributor ● Ubiquiti Certified Trainer/Consultant ● RedHat Certified Trainer 3
  • 4. www.glcnetworks.com About GLC webinar? ● First webinar: january 1, 2010 (title: tahun baru bersama solaris - new year with solaris OS) ● As a sharing event with various topics: linux, networking, wireless, database, programming, etc ● Regular schedule: every 2 weeks ● Irregular schedule: as needed ● Checking schedule: http://www.glcnetworks.com/main/sc hedule ● You are invited to be a presenter β—‹ No need to be an expert β—‹ This is a forum for sharing: knowledge, experiences, information 4
  • 5. www.glcnetworks.com Trainer Introduction ● Name: Achmad Mardiansyah ● Base: bandung, Indonesia ● Linux user (since 1999), Mikrotik user (since 2007), ubnt user (since 2011) ● Certified Trainer (Mikrotik, Ubiquiti, Redhat) ● Certified Consultant ● Work: Telco engineer, Sysadmin, PHP programmer, and Lecturer ● Personal website: http://achmadjournal.com ● More info: http://au.linkedin.com/in/achmadmardiansyah 5
  • 6. www.glcnetworks.com Please introduce yourself ● Your name ● Your company/university? ● Your networking experience? ● Your mikrotik experience? ● Your expectation from this course? 6
  • 8. www.glcnetworks.com AS and BGP ● AS (Autonomous System) β—‹ Collection of routers and prefixes under single administration (can be an organisation) which also apply single routing policy β—‹ AS is identified by AS number, given by IANA via Regional Registry ● BGP (Border Gateway Protocol) β—‹ A protocol that is used between AS for exchanging routing information (prefixes) β—‹ BGP see an AS as a (big) node which can forward packet based on layer 3 ● 8
  • 9. www.glcnetworks.com ● Traditional routing: based on router HOP count ● BGP routing: based on AS HOP count Traditional routing VS. BGP routing 9
  • 10. www.glcnetworks.com BGP peering types: ● Internal (iBGP) β—‹ peering inside AS β—‹ usually is backed-up by IGP (Interior Gateway Protocol). E.g. OSPF, RIP, EIGRP, etc β—‹ Unless route-reflector is used, every router inside AS need to setup peering each other (full-mesh peering). ● External (eBGP) β—‹ Peering between AS border router During ebgp peering, each router will exchange: ● Outgoing: inform own prefix to the world ● Incoming: receive prefixes from other AS BGP peering 10 Other AS
  • 11. www.glcnetworks.com ● Announce wrong prefix β—‹ Example: AS2 announcing wrong prefix (e.g. 8.8.8.0/24) to AS5 and AS3 ● Receiving wrong prefix β—‹ Example: AS3 and AS5 receiving wrong prefix (8.8.8.0/24) from AS 2 BGP peering problem (example) 11 Wrong prefix Wrong prefix Other AS
  • 12. www.glcnetworks.com ● Other AS (AS5, AS3, AS4, AS1) will see prefix 8.8.8.0/24 is very close to them, compared to the real AS that own that ip block ● Traffic goes to 8.8.8.0/24 will be forwarded to AS2 ● AS2 will receive flood of traffic ● packets never reach the destination (because its landed in wrong AS) ● Packets will moving around in AS2 until TTL expired -> causing congestion ● Customers complain internet is slow BGP peering problem (effect) 12 Wrong prefix Wrong prefix Other AS
  • 13. www.glcnetworks.com ● Setup outgoing filter on AS2 β—‹ Only allow prefix that AS2 really own ● Setup incoming filter on AS3 and AS5 β—‹ Only allow prefix that AS2 really own BGP FILTER is used to protect YOU from INTERNET and to protect INTERNET from YOU BGP peering problem (solution) 13 filter filter Other AS
  • 15. www.glcnetworks.com Filter on BGP peering Filter can be applied on BGP peering: - In-filter - Out-filter This is just an example only, not taken from real environment 15
  • 16. www.glcnetworks.com /routing filter (outgoing) ● Outgoing filter β—‹ In this example we only allow our own prefix (20.0.0.0/24) to announce it to moratel peer /routing filter add action=accept chain=moratel-out prefix=20.0.0.0/24 prefix-length=23-24 β—‹ Reject anything else /routing filter add action=reject chain=moratel-out 16
  • 17. www.glcnetworks.com /routing filter (incoming) ● Incoming filter β—‹ In this example: we only allow prefix 50.0.0.0/8 from moratel to enter our routing table /routing filter add action=accept chain=moratel-in prefix=50.0.0.0/8 prefix-length=8-24 β—‹ Reject anything else /routing filter add action=reject chain=moratel-in 17
  • 18. www.glcnetworks.com Interested? Just come to our training... Special price for webinar attendees… http://www.glcnetworks.c om/main/schedule 18
  • 19. www.glcnetworks.com End of slides ● Thank you for your attention ● Please submit your feedback: http://bit.ly/glcfeedback ● Like our facebook page: β€œGLC networks” ● Slide: http://www.slideshare.net/r41nbuw ● Recording: https://www.youtube.com/channel/UCI611_IIkQC0rsLWIFIx_yg ● Stay tune with our schedule 19