From e89c141696cac4f89e3700d77173ad0af52888dd Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 12 Jan 2024 16:24:30 +0300 Subject: [PATCH] docs... Signed-off-by: Alex A. Naanou --- config.global.example | 62 ++++++++++++++++--- gate-traefik/templates/etc/network/interfaces | 12 ++-- 2 files changed, 60 insertions(+), 14 deletions(-) diff --git a/config.global.example b/config.global.example index 3ea1e01..a0f8266 100644 --- a/config.global.example +++ b/config.global.example @@ -1,27 +1,73 @@ +#------------------------------------------------------------------------ # -# Setting an option here will disable its interactive dialog. prefixing -# an option (except for ROOTPASS) with "DFL_" will set the default value -# and show the dialog enabling the user to tweak/confirm the value. +# Global config file # +# Prefixing an option (except for ROOTPASS) with "DFL_" will set the +# default value and show the dialog enabling the user to tweak/confirm +# the value, while options without the prefix will be set without user +# interaction. +# Options left unset will be interactively requested during the make +# process. +# To disable an option leaving it blank set it to 'SKIP'. +# +# CT-specific settings can be set in /config files for each +# specific CT. +# +# It is not recomended to set passwords here or in other config files. +# +# +#------------------------------------------------------------------------ DFL_EMAIL=user@example.com + DFL_DOMAIN=example.com + DFL_WAN_IP=192.168.1.101/24 DFL_WAN_GATE=192.168.1.252 -DFL_WAN_BRIDGE=2 -DFL_LAN_BRIDGE=0 -DFL_ADMIN_BRIDGE=1 -# this can be used for passing in ssh keys, etc... -DFL_PCT_EXTRA= +# CT interface bridge configuration. +# +# These are set to the bridge number (the number in 'vmbr#') used for +# a specific network. +# +# Example: +# WAN_BRIDGE=0 +# LAN_BRIDGE=1 +# ADMIN_BRIDGE=2 +# +WAN_BRIDGE= +LAN_BRIDGE= +ADMIN_BRIDGE= + +# Extra options passed to each CT created. +# +# This can be used for passing in ssh keys, etc... +# +# see: +# man pct +# +DFL_PCT_EXTRA=SKIP + + + +#------------------------------------------------------------------------ +# +# Options afetr this point are sane defaults and in the general case +# can be left as-is. +# + +# Nameserver NS_HOSTNAME=ns NS_ADMIN_IP=10.0.0.1/24 NS_LAN_IP=10.1.1.1/24 +# Gateway / Reverse proxy GATE_HOSTNAME=gate GATE_ADMIN_IP=10.0.0.2/24 GATE_LAN_IP=10.1.1.2/24 + +#------------------------------------------------------------------------ diff --git a/gate-traefik/templates/etc/network/interfaces b/gate-traefik/templates/etc/network/interfaces index 3f88af1..88fd647 100644 --- a/gate-traefik/templates/etc/network/interfaces +++ b/gate-traefik/templates/etc/network/interfaces @@ -2,6 +2,12 @@ auto lo iface lo inet loopback iface lo inet6 loopback +auto wan +iface wan inet static + address ${WAN_IP} + gateway ${WAN_GATE} + hostname $(hostname) + auto admin iface admin inet static address ${ADMIN_IP} @@ -12,12 +18,6 @@ iface lan inet static address ${LAN_IP} hostname $(hostname) -auto wan -iface wan inet static - address ${WAN_IP} - gateway ${WAN_GATE} - hostname $(hostname) - auto br0 iface br0 inet static pre-up echo 1 > /proc/sys/net/ipv4/ip_forward