Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created July 7, 2018 01:53
Show Gist options
  • Save grahamc/05ff18f262d5b80d0520fe5ed904442b to your computer and use it in GitHub Desktop.
Save grahamc/05ff18f262d5b80d0520fe5ed904442b to your computer and use it in GitHub Desktop.
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