Monat: Juni 2017

Ansible – playbook to update/upgrade servers

nano update.yml — – hosts: apt-based remote_user: root tasks: – name: update the server apt: update_cache: yes – name: upgrade the server apt: upgrade: yes nano hosts [apt-based] homeserver monitoring dns01 dokuwiki wlancontroller database ansible-playbook -s update.yml

pfsense – configure port forwarding

Configure port forwarding in pfsense: Firewall -> NAT -> Port forward -> Add Protocol: TCP Destination port range: HTTPS Redirect target ip: Redirect target port: HTTPS Description: Allow HTTPS -> Save Check if it’s working: Mathiass-MacBook-Pro:~ mathias$ curl -k –head https://YOURDOMAIN.TLD HTTP/1.1 401 Unauthorized Date: Sun, 11 Jun 2017 13:14:41 GMT Server: Apache WWW-Authenticate: …

pfsense – configure port forwardingWeiterlesen »

Apache2 – hide server version number

How to hide the apache2 server version number: root@homeserver:~# nano /etc/apache2/apache2.conf #add at the bottom of the file ServerTokens ProductOnly ServerSignature Off   systemctl restart apache2 Before: Mathiass-MacBook-Pro:~ mathias$ curl -k –head https://DOMAIN.TLD HTTP/1.1 401 Unauthorized Date: Sun, 11 Jun 2017 13:18:20 GMT Server: Apache/2.4.18 (Ubuntu) WWW-Authenticate: Basic realm=“Please Authentificate!“ Content-Type: text/html; charset=iso-8859-1 After: Mathiass-MacBook-Pro:~ …

Apache2 – hide server version numberWeiterlesen »

Grafana – data points missing

No data points in grafana: I found out that my grafana had no data points in the 7 days view. My new icinga2 check worked correctly and produced the right data. The problem: nano /etc/icinga2/zones.d/master/services/disks.conf import „10minute-service“ In my apply service declaration i defined the check as a 10 minute service. In my carbon config …

Grafana – data points missingWeiterlesen »

Debian – Uhrzeit automatisch aktualisieren mit ntpdate und cron

Uhrzeit automatisch aktualisieren durch ntpdate und cron   Zeitzone einstellen: dpkg-reconfigure tzdata -> Europa -> Berlin ntpdate installieren: apt-get install ntpdate cronjob einrichten: nano /etc/crontab #jede volle stunde wird die uhrzeit aktualisiert 00 * * * * root ntpdate >/dev/null 2>&1

Linux – forward email to external domain (postfix)

Forward email to external domain in postfix (linux): apt-get install postfix -> configure as a internet site -> domainname: mail.MYDOMAIN.TLD nano /etc/postfix/ # change myhostname = MYDOMAIN.TLD mydestination = mail.MYDOMAIN.TLD,, localhost # insert at the bottom of the file virtual_alias_domains = MYDOMAIN.TLD virtual_alias_maps = hash:/etc/postfix/virtual nano /etc/postfix/virtual user@MYDOMAIN.TLD user@EXTERNALDOMAIN.TLD postmap /etc/postfix/virtual /etc/init.d/postfix restart set …

Linux – forward email to external domain (postfix)Weiterlesen »

Scroll to Top