SlideShare a Scribd company logo
1 of 10
Download to read offline
Control BGP
from your Applications
Whatever a speaker is missing in depth he will compensate for in length
Montesquieu
RIPE 63 - November 2011
Thomas Mangin
Exa Networks
Dynamically Change Routing
DDOS filtering (RTBH)
IWF interception
Traffic engineering
Suspend customers
...
IP announcement ..
AnyCast
Control “cloud” IPs from a central location
Active / Passive servers solution with service monitoring
Why ?
Permanent configuration generation
1 - Regenerating BIRD/Quagga/OpenBGPD configuration on change
2 - Getting the daemon to reload its configuration
3 - Go back to 1
There must be a better way ...
OpenBGPD bgpctl
BIRD birdc
Quagga / Zebra telnet ..
There must be a better way ......
How ?
Logic will get you from A to B. Imagination will take you everywhere
Albert Einstein
1 - take your favourite language : perl, python, lua, C, shell, french ! ...
2 - create a forever loop
3 - print what you want to do ...
4 - ... profit ?
Demon!ration !
#!/bin/sh
# ignore Control C
trap '' SIGINT
while `true`;
do
echo "announce route 192.0.2.1 next-hop 10.0.0.1"
sleep 10
echo "withdraw route 192.0.2.1 next-hop 10.0.0.1"
sleep 10
done
flap.sh
Integration
neighbor 192.168.127.128 {
description "will flap a route until told otherwise";
router-id 198.111.227.39;
local-address 192.168.127.1;
local-as 65533;
peer-as 65533;
# add and remove routes when flap.sh prints
process loving-flaps {
run etc/processes/flap.sh;
}
}
BGP configuration
It is that simple
Success is a result, not a goal
Flaubert
Want simpler !!
neighbor 192.168.127.128 {
router-id 198.111.227.39;
local-address 192.168.127.1;
local-as 65533;
peer-as 65533;
process default-name-for-watchdog {
run etc/processes/monitor.sh;
}
static {
route 172.10.0.0/16 next-hop 192.0.2.1 watchdog service-one;
}
}
BGP configuration
Want Simpler ?
#!/bin/sh
trap '' SIGINT
while `true`;
do
state=`check-if-all-ok`
if [ “$state” = “up” ]; then
echo "announce watchdog service-one"
fi
if [ “$state” = “down” ]; then
echo "withdraw watchdog service-one”
fi
# pick its name from the process section name
echo “announce watchdog”
sleep 5
done
The watchdog ...
The secret of business is to know something that nobody else knows
Aristotle Onassis
Use BGP to transmit firewall like rules
RFC 5575, Juniper routers only (atm)
Can be used to transproxy in the core
Match possible components making the flow
Prefix (source and destination)
IP Protocol (list of <action, value>)
Port (source, destination, either)
ICMP (type, code), TCP flag, Packet Len, DSCP value
Fragment (don't, is, first, last)
Then take action
Drop, Rate-limit, Redirect
exabpg is the only OSS application to support Flow Routes
Be aware of line rate limitations when sending Flow Specs - test in a lab first.
Flow R"tes
Example
neighbor 82.219.4.254 {

 description "Juniper router";

 router-id 10.0.0.1;

 local-address 10.0.0.1;

 local-as 65500;

 peer-as 65533;

 graceful-restart 5;

 flow {

 
 route optional-name-of-the-route {

 
 
 match {

 
 
 
 source 10.0.0.1/32;

 
 
 
 source 10.0.0.9/32;

 
 
 
 destination 192.168.0.1/32;

 
 
 
 # port =80 =8080;

 
 
 
 # destination-port >8080&<8088 =3128;

 
 
 
 # source-port >1024;

 
 
 
 # protocol [ tcp udp ];

 
 
 
 # protocol tcp;

 
 
 
 # packet-length >200&<300 >400&<500;

 
 
 
 # fragment not-a-fragment;

 
 
 
 # fragment [ first-fragment last-fragment ];

 
 
 
 # icmp-type [ unreachable echo-request echo-reply ];

 
 
 
 # icmp-code [ host-unreachable network-unreachable ];

 
 
 
 # tcp-flags [ urgent rst ];

 
 
 
 # dscp [ 10 20 ];

 
 
 

 
 
 }

 
 
 then {

 
 
 
 # discard;

 
 
 
 # rate-limit 9600;

 
 
 
 # redirect 1.2.3.4:5678;

 
 
 
 redirect 65500:12345;

 
 
 
 community [30740:0 30740:30740];

 
 
 }

 
 }

 }
}
http://code.google.com/p/exabpg/
Get it ...
Judge a man by his questions rather than by his answers
Voltaire
Questions ?
<first>@<last>.com
apt-get install exabpg

More Related Content

Recently uploaded

Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 

Recently uploaded (20)

Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Control BGP from your applications

  • 1. Control BGP from your Applications Whatever a speaker is missing in depth he will compensate for in length Montesquieu RIPE 63 - November 2011 Thomas Mangin Exa Networks
  • 2. Dynamically Change Routing DDOS filtering (RTBH) IWF interception Traffic engineering Suspend customers ... IP announcement .. AnyCast Control “cloud” IPs from a central location Active / Passive servers solution with service monitoring Why ?
  • 3. Permanent configuration generation 1 - Regenerating BIRD/Quagga/OpenBGPD configuration on change 2 - Getting the daemon to reload its configuration 3 - Go back to 1 There must be a better way ... OpenBGPD bgpctl BIRD birdc Quagga / Zebra telnet .. There must be a better way ...... How ? Logic will get you from A to B. Imagination will take you everywhere Albert Einstein
  • 4. 1 - take your favourite language : perl, python, lua, C, shell, french ! ... 2 - create a forever loop 3 - print what you want to do ... 4 - ... profit ? Demon!ration ! #!/bin/sh # ignore Control C trap '' SIGINT while `true`; do echo "announce route 192.0.2.1 next-hop 10.0.0.1" sleep 10 echo "withdraw route 192.0.2.1 next-hop 10.0.0.1" sleep 10 done flap.sh
  • 5. Integration neighbor 192.168.127.128 { description "will flap a route until told otherwise"; router-id 198.111.227.39; local-address 192.168.127.1; local-as 65533; peer-as 65533; # add and remove routes when flap.sh prints process loving-flaps { run etc/processes/flap.sh; } } BGP configuration It is that simple Success is a result, not a goal Flaubert
  • 6. Want simpler !! neighbor 192.168.127.128 { router-id 198.111.227.39; local-address 192.168.127.1; local-as 65533; peer-as 65533; process default-name-for-watchdog { run etc/processes/monitor.sh; } static { route 172.10.0.0/16 next-hop 192.0.2.1 watchdog service-one; } } BGP configuration
  • 7. Want Simpler ? #!/bin/sh trap '' SIGINT while `true`; do state=`check-if-all-ok` if [ “$state” = “up” ]; then echo "announce watchdog service-one" fi if [ “$state” = “down” ]; then echo "withdraw watchdog service-one” fi # pick its name from the process section name echo “announce watchdog” sleep 5 done The watchdog ...
  • 8. The secret of business is to know something that nobody else knows Aristotle Onassis Use BGP to transmit firewall like rules RFC 5575, Juniper routers only (atm) Can be used to transproxy in the core Match possible components making the flow Prefix (source and destination) IP Protocol (list of <action, value>) Port (source, destination, either) ICMP (type, code), TCP flag, Packet Len, DSCP value Fragment (don't, is, first, last) Then take action Drop, Rate-limit, Redirect exabpg is the only OSS application to support Flow Routes Be aware of line rate limitations when sending Flow Specs - test in a lab first. Flow R"tes
  • 9. Example neighbor 82.219.4.254 { description "Juniper router"; router-id 10.0.0.1; local-address 10.0.0.1; local-as 65500; peer-as 65533; graceful-restart 5; flow { route optional-name-of-the-route { match { source 10.0.0.1/32; source 10.0.0.9/32; destination 192.168.0.1/32; # port =80 =8080; # destination-port >8080&<8088 =3128; # source-port >1024; # protocol [ tcp udp ]; # protocol tcp; # packet-length >200&<300 >400&<500; # fragment not-a-fragment; # fragment [ first-fragment last-fragment ]; # icmp-type [ unreachable echo-request echo-reply ]; # icmp-code [ host-unreachable network-unreachable ]; # tcp-flags [ urgent rst ]; # dscp [ 10 20 ]; } then { # discard; # rate-limit 9600; # redirect 1.2.3.4:5678; redirect 65500:12345; community [30740:0 30740:30740]; } } } }
  • 10. http://code.google.com/p/exabpg/ Get it ... Judge a man by his questions rather than by his answers Voltaire Questions ? <first>@<last>.com apt-get install exabpg