Skip to content

Instantly share code, notes, and snippets.

@Manouchehri
Last active March 1, 2022 16:19
Show Gist options
  • Save Manouchehri/f09aba081cd0777284bd4b6d974584da to your computer and use it in GitHub Desktop.
Save Manouchehri/f09aba081cd0777284bd4b6d974584da to your computer and use it in GitHub Desktop.
# This is a minimal configuration file, which allows the bird daemon to start
# but will not cause anything else to happen.
#
# Please refer to the documentation in the bird-doc package or BIRD User's
# Guide on http://bird.network.cz/ for more information on configuring BIRD and
# adding routing protocols.
# Change this into your BIRD router ID. It's a world-wide unique identification
# of your router, usually one of router's IPv4 addresses.
router id 1.2.3.4;
# My public IP on this BuyVM instance is 1.2.3.4
protocol bgp buyvm
{
local as 65000;
source address 1.2.3.4;
import none;
export all;
graceful restart on;
multihop 2;
neighbor 169.254.169.179 as 53667;
password "hunter2";
}
# The Kernel protocol is not a real routing protocol. Instead of communicating
# with other routers in the network, it performs synchronization of BIRD's
# routing tables with the OS kernel.
protocol kernel {
scan time 60;
import none;
# export all; # Actually insert routes into the kernel routing table
}
# The Device protocol is not a real routing protocol. It doesn't generate any
# routes and it only serves as a module for getting information about network
# interfaces from the kernel.
protocol device {
scan time 60;
}
protocol static
{
# 4.4.4.4/32 is a floating IP address from BuyVM
route 4.4.4.4/32 via 1.2.3.4;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment