krouter

command module
v0.0.0-...-e53e611 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

README

krouter

A program to manage GRE tunnels and static routes on Linux

Requirements

A config file that exists at /etc/krouter/config.yml

Example configuration
program_settings:
  log_file_path: /var/log/krouter/krouter.log
  logging:
    info: True
    error: True
    debug: True

gre_tunnels:
  - name: gre1
    local_ip: 192.168.1.1
    remote_ip: 10.0.0.1
    tunnel_ip: 10.0.0.2
    subnet_mask: 31
  - name: gre2
    local_ip: 192.168.1.2
    remote_ip: 10.0.0.2
    tunnel_ip: 10.0.0.3
    subnet_mask: 31

static_routes:
  - destination: 192.168.2.0/24
    gateway: 192.168.1.254
  - destination: 192.168.3.0/24
    gateway: 192.168.1.254

ecmp_routes:
  - route: default
    table: GRE
    nexthops:
      - dev: gre1
        via: 10.0.40.5
        weight: 1
      - dev: gre2
        via: 10.0.41.5
        weight: 1

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL