From dd434d01b4c3d43256391040f0f50fa9c82927a0 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Mon, 15 Dec 2014 20:41:32 +0100 Subject: [PATCH] Cleanup example config files (warning: some values have changed) Instead of tetaneutral.net's config, use generic examples. Also, disable debug by default, and use a consistent log location. --- lg.cfg.example | 24 +++++++++++++++--------- lgproxy.cfg.example | 19 +++++++++++++------ 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/lg.cfg.example b/lg.cfg.example index 0b7f5a4..d1d0013 100644 --- a/lg.cfg.example +++ b/lg.cfg.example @@ -1,27 +1,33 @@ +# Configuration file for lg.py +# Copy to lg.cfg and edit to suit your needs. -DEBUG = True -LOG_FILE="/var/log/lg.log" +DEBUG = False + +LOG_FILE="/var/log/bird-lg/lg.log" LOG_LEVEL="WARNING" -DOMAIN = "tetaneutral.net" +DOMAIN = "example.com" +# Which IP/port to listen to for client connections. BIND_IP = "0.0.0.0" BIND_PORT = 5000 +# Which backend routers to connect to (here, router1.example.com:5000 and +# router2.example.com:5000). The routers must run lgproxy.py. PROXY = { - "gw": 5000, - "h3": 5000, + "router1": 5000, + "router2": 5000, } # Used for bgpmap ROUTER_IP = { - "gw" : [ "91.224.148.2", "2a01:6600:8000::175" ], - "h3" : [ "91.224.148.3", "2a01:6600:8000::131" ] + "router1" : [ "192.0.2.1", "2001:db8::1" ], + "router2" : [ "192.0.2.2", "2001:db8::2" ] } AS_NUMBER = { - "gw" : "197422", - "h3" : "197422" + "router1" : "64498", + "router2" : "65538" } #WHOIS_SERVER = "whois.foo.bar" diff --git a/lgproxy.cfg.example b/lgproxy.cfg.example index faaa043..0e7508f 100644 --- a/lgproxy.cfg.example +++ b/lgproxy.cfg.example @@ -1,7 +1,14 @@ +# Configuration file for lgproxy.py +# Copy to lgproxy.cfg and edit to suit your needs. -DEBUG=False -LOG_FILE="/var/log/lg-proxy/lg-proxy.log" -LOG_LEVEL="WARNING" -ACCESS_LIST = ["91.224.149.206", "178.33.111.110"] -IPV4_SOURCE="91.224.148.1" -IPV6_SOURCE="2a01:6600:8000::1" +DEBUG = False + +LOG_FILE = "/var/log/bird-lg/lgproxy.log" +LOG_LEVEL = "WARNING" + +# Who can connect to the proxy to launch Bird commands +ACCESS_LIST = ["192.0.2.42", "2001:db8::42"] + +# Source IP for traceroute/traceroute6 +IPV4_SOURCE = "192.0.2.1" +IPV6_SOURCE = "2001:db8::1"