Outils pour utilisateurs

Outils du site


technique:referentiel:chd-stg2

Ceci est une ancienne révision du document !


Serveur chd-stg2

Caractéristiques

  • Machine virtuelle (KVM amd64)
  • Debian 8

Roles

  • Utilitaires de gestion du réseau (AirControl, mise à jour routeur..)
  • DNS autoritaire pour les reverse DNS IPv6

Notes d'installation

Système / Réseau

# Parti d'une migration de la VM stg2.tetaneutral.net
# TODO : reprendre la doc du wiki TTN
 
apt-get autoremove --purge rpcbind nfs-common vim-tiny
apt-get install --purge nullmailer
# Donner chd.sx comme smarthost
 
# Permettre ping depuis www-data (et autres user simples)
setcap cap_net_raw+p /bin/ping
/etc/syslog.d/remote.conf
module(load="imudp")
input(type="imudp" port="514" ruleset="rs_remote")
template(name="t_remote_logfile" type="string" string="/var/log/remote/%fromhost-ip%.log")
ruleset(name="rs_remote") {
    action(type="omfile" dynaFile="t_remote_logfile" dynaFileCacheSize="400")
}

Serveur DNS (reverse IPv6 CHD)

Commencé mais n'est pas en prod. Ne règle pas toutes les questions autour des reverse-DNS.

http://all-knowing-dns.zekjur.net/

apt-get install all-knowing-dns
editor /etc/all-knowing-dns.conf
service all-knowing-dns restart

Compilation OpenWRT pour ImageBuilder custom

apt-get install git-core build-essential libssl-dev libncurses5-dev unzip gawk subversion
mkdir /var/cache/buildroot-cc-wr740nv5
chown www-data: /var/cache/buildroot-cc-wr740nv5
cd /var/cache/buildroot-cc-wr740nv5
screen
sudo -u www-data bash
 
editor ~/.bashrc
# Ajouter : export PATH="/var/cache/buildroot-cc-wr740nv5/openwrt/staging_dir/host/bin:/var/cache/buildroot-cc-wr740nv5/openwrt/staging_dir/toolchain-<platform>-<gcc_ver>-<libc_ver>/bin:$PATH"
git clone https://git.openwrt.org/15.05/openwrt.git
cd openwrt/
git checkout 37e7a90e677eb5b5488c4a29f4bb90440cc4a0f1
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
# Target system : Atheros AR7xxx/AR9xxx
# Subtarget : Generic
# Target Profile : Default profile (all drivers)
# Target Images : squashfs
# Build the OpenWrt Image Builder
./scripts/diffconfig.sh > diffconfig
diffconfig
CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_TARGET_ar71xx_generic_Default=y
CONFIG_IB=y
CONFIG_IB_STANDALONE=y
# CONFIG_PACKAGE_kmod-nls-base is not set
# CONFIG_PACKAGE_kmod-usb-core is not set
# CONFIG_PACKAGE_kmod-usb-ohci is not set
# CONFIG_PACKAGE_kmod-usb2 is not set
# CONFIG_PACKAGE_uboot-ar71xx-nbg460n_550n_550nh is not set
make world
technique/referentiel/chd-stg2.1474404317.txt.gz · Dernière modification: 2016/09/20 22:45 par admin