2022-11-15 18:11:49 +01:00
2022-11-15 18:11:49 +01:00
2022-11-03 08:36:28 +01:00
2022-11-03 08:43:40 +01:00
2022-11-15 18:11:49 +01:00

RoutingTableToWG

Translate Routing-Table Entries to Wireguard AllowedIPs with Filters



1. Overview

1.1. Usage

The Program will listen for RoutingTable Changes and can translate the changes to a Wireguard-Interface.

It will detect the Peer to add the Route to using the Gateway from the Route-Entry.
In case routes clash or cant be added to Wireguard, Warnings will be logged.


1.1.1. Examples

  • Dynamic Routing with Routing-Protocols (e.g. OSPF)
  • Interacting with Wireguard using the familiar Tools like iproute2

1.2. Install


1.2.1. Docker

Depending on the needs, the Container can be run in network_mode: host to be able to accessrouting-tables and interfaces of the host.

docker-compose.yml
version: '3'

services:
  routingTableWGTranslator:
    image: ruakij/RoutingTableWGTranslator
    restart: unless-stopped
    network_mode: "host"
    environment:
      - INTERFACE="<wgInterfaceName or empty for wg0>"

1.2.2. Without Docker

Clone the Repository git clone <URI> and build the Program with go build cmd/app

Then you can run it with ./app


2. Behaviour

2.1. Adding Route


2.2. Deleting Route

Description
Translate Routing-Table Entries to Wireguard AllowedIPs with Filters
Readme 124 KiB
Languages
Go 94.5%
Dockerfile 3.4%
Shell 2.1%