Pipe routing information from one routing table to another using netlink
go get github.com/MauveSoftware/piper
If we want to pipe the prefix 1.1.1.1/32 learned in table 42 to the main table:
proto: 188
pipes:
- name: "dns"
prefix: 1.1.1.1/32
source: 42
target: 254
./piper -config-file /path/to/config/file
Piper provides a prometheus metrics endpoint on default port :10080
- Netlink Go Library (https://github.com/vishvananda/netlink)
(c) Mauve Mailorder Software GmbH & Co. KG, 2020. Licensed under Apache 2.0 license.