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.
This commit is contained in:
Baptiste Jonglez 2014-12-15 20:41:32 +01:00
parent cc1f33ee3d
commit dd434d01b4
2 changed files with 28 additions and 15 deletions

View file

@ -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"

View file

@ -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"