Created
July 7, 2018 01:53
-
-
Save grahamc/05ff18f262d5b80d0520fe5ed904442b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filter packetdns { | |
# IPs to announce (the elastic ip in our case) | |
# Doesn't have to be /32. Can be lower | |
if net = 147.75.96.102/32 then accept; | |
} | |
# your (Private) bond0 IP below here | |
router id 10.100.5.3; | |
protocol direct { | |
interface "lo"; # Restrict network interfaces it works with | |
} | |
protocol kernel { | |
# learn; # Learn all alien routes from the kernel | |
persist; # Don't remove routes on bird shutdown | |
scan time 20; # Scan kernel routing table every 20 seconds | |
import all; # Default is import all | |
export all; # Default is export none | |
# kernel table 5; # Kernel table to synchronize with (default: main) | |
} | |
# This pseudo-protocol watches all interface up/down events. | |
protocol device { | |
scan time 10; # Scan interfaces every 10 seconds | |
} | |
# your default gateway IP below here | |
protocol bgp { | |
export filter packetdns; | |
local as 65000; | |
neighbor 10.100.5.2 as 65530; | |
password "..."; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment