- Installation Debian 9.4 aus dem internet mit dem net-Installer-ISO
- Umbenennen der Interfaces von ens* zu eth*
- Installation und Konfiguration von pi-hole
- Vorbereitung der Datenbank (MariaDB) für
- Installation von Bandwidthd
[Linux] Debian + pi-hole + bandwidthd
-
News-Writer
- Posts: 26
- Joined: Fri, 20. Jan 2012, 11:03
[Linux] Debian + pi-hole + bandwidthd
-
News-Writer
- Posts: 26
- Joined: Fri, 20. Jan 2012, 11:03
-
News-Writer
- Posts: 26
- Joined: Fri, 20. Jan 2012, 11:03
rename Interfaces
Mit dem Befehl (in diesem Fall ist der Netzwerk-Adapter ein vmxnet3, da die Maschine auf einem ESXi läuft) kann man sehen, das während des Bootes die Adapter umbenannt werden:
Um dies zu unterbinden ist es nötig einen Eintrag in der Datei /etc/default/grub anzupassen:
Ausin Zeile 10 musswerden.
Ich habe dann das System einmal neugestartet, um alle Änderungen zu übernehmen:
Als letztesmuss nun noch in der Datei /etc/network/interfaces alles, was auf die alten Interface-Name gezeigt hat auf die neuen umgestellt werden:
Hier, wie es vorher aussah:
Und jetzt:
Ich habe bei dieser Gelegenheit gleich feste IP-Adressen konfiguriert. Es handelt sich bei dieser Maschine schließlich um "Infrastruktur". Daher mein Tipp: besser feste als dynamische Adressen konfigurieren.
Code: Select all
dmesg | grep vmxnet3Code: Select all
[ 0.460404] VMware vmxnet3 virtual NIC driver - version 1.4.a.0-k-NAPI
[ 0.460415] vmxnet3 0000:0b:00.0: # of Tx queues : 1, # of Rx queues : 1
[ 0.461158] vmxnet3 0000:0b:00.0 eth0: NIC Link is Up 10000 Mbps
[ 0.461177] vmxnet3 0000:13:00.0: # of Tx queues : 1, # of Rx queues : 1
[ 0.461938] vmxnet3 0000:13:00.0 eth1: NIC Link is Up 10000 Mbps
[ 0.495939] vmxnet3 0000:0b:00.0 ens192: renamed from eth0
[ 0.497533] vmxnet3 0000:13:00.0 ens224: renamed from eth1
[ 5.484375] vmxnet3 0000:0b:00.0 ens192: intr type 3, mode 0, 2 vectors allocated
[ 5.484448] vmxnet3 0000:0b:00.0 ens192: NIC Link is Up 10000 Mbps
Code: Select all
vi /etc/default/grubCode: Select all
GRUB_CMDLINE_LINUX=""Code: Select all
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"Ich habe dann das System einmal neugestartet, um alle Änderungen zu übernehmen:
Code: Select all
init 6Code: Select all
vi /etc/network/interfacesCode: Select all
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug ens192
iface ens192 inet dhcp
allow-hotplug ens224
iface ens224 inet dhcp
Code: Select all
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.178.4
netmask 255.255.255.0
dns-nameservers 192.168.178.1
gateway 192.168.178.1
allow-hotplug eth1
iface eth1 inet static
address 192.168.178.9
netmask 255.255.255.0
dns-nameservers 192.168.178.1
gateway 192.168.178.1
-
News-Writer
- Posts: 26
- Joined: Fri, 20. Jan 2012, 11:03
pi-hole
Als root muss auf der Console nur der Befehl aufgerufen werden. Damit wird der pi-hole-Installer heruntergeladen und auch gleich die Installation gestartet.
Hier ein paar Screenshots von der Installation:
Code: Select all
curl -sSL https://install.pi-hole.net | bashHier ein paar Screenshots von der Installation:
-
News-Writer
- Posts: 26
- Joined: Fri, 20. Jan 2012, 11:03
Bandwidthd-Installation und lighttpd-Config
Installation von bandwidthd via apt:
Erstellen von /etc/lighttpd/conf-available/91-aliases.conf:
Erstellen eines Links in /etc/lighttpd/conf-enabled:
Restart des Web-Servers:
Code: Select all
apt-get install bandwidthdCode: Select all
alias.url += (
"/bandwidth/" => "/var/lib/bandwidthd/htdocs/"
)Code: Select all
cd /etc/lighttpd/conf-enabled
ln -s ../conf-available/91-aliases.conf 91-aliases.confCode: Select all
/etc/init.d/lighttpd restart