Hawkes Blog
Windows reboot | Linux be root
Hawkes Blog

Archives

PyMyGW a simple mysensors Gateway

PyMyGW a simple mysensors Gateway Development stopped. FYI I'd stopped the development of the gateway because I switched to an ESP8266 MQTT GW. I will leave the blogpost online, just for the records. Update PyMyGW now supports MQTT as an alternative to the OpenHab RestAPI What`s that a simple SerialGateway for the MySensors Serial Protocol Version 1.4 offers basic functionality for the MySensors Network offers IDs for new Nodes...

Monitor your RaspberryPi with Monit

Short How-To: Monitor your RaspberryPi with Monit prerequisite: raspberry pi running raspbian What is Monit Monit is a small and lightweight managing and monitoring system for *nix hosts. It´s possible to monitor multiple local daemons, directories, ... and react with multiple actions if something specified happened. For example restart nginx/apache + dependencies if port 80 isn´t available check file checksum execute self-made scripts and do something if the returncode is !=0 .... and...

manipulate exim retry database

Short How-To: check/reset exims retry database 1. Get the next retry cycle with exim_dumpdb Usage: exim_dumpdb <spool-directory> <database-name> <database-name> = retry | misc | wait-<transport-name> | callout | ratelimit exim_dumpdb /var/spool/exim4/ retry 18-Nov-2013 12:08:25 19-Nov-2013 12:54:24 19-Nov-2013 18:54:24 T:mx02.quat.net:46.163.67.72 -18 77 Remote host mx02.quat.net [46.163.67.72] closed connection in...

a raspberry pi powered baby monitor (2/2)

Short How-To: a raspberry pi powered baby monitor Part 2 (Video/Webinterface) -> Part 1 (Audio) -> Source @github Setup baby monitor Video: I´m using the great mjpg_streamer. You can use my precompiled version for raspbian or compile it on your own. My precompiled version is outdated and needs an update. See Jeffrey Klein's comments for details. install, configure and start mjpg_streamer <div...

a raspberry pi powered baby monitor (1/2)

Short How-To: a raspberry pi powered baby monitor Part 1 (Audio) -> Part 2 (Video/Webinterface) -> Source @github prerequisite: raspberry pi running raspbian a webcam (i've used a Logitech HD Webcam C910) a pc with linux as the receiver with speakers (in my case it´s another raspberry) Prolog: I was looking for a working solution to turn one of...

a web-proxy with tinyproxy and ssh-tunnel

Short How-To: tinyproxy on raspbian prerequisite: raspberry pi running raspbian with openssh-server/dropbear putty / ssh client rasberry is accessible from the internet (if you want to use it from everywhere) install tinyproxy apt-get update apt-get install tinyproxy edit /etc/tinyproxy.conf User nobody Group nogroup Port 8888 Listen 127.0.0.1 Timeout 600 DefaultErrorFile "/usr/share/tinyproxy/default.html" StatFile "/usr/share/tinyproxy/stats.html" Logfile "/var/log/tinyproxy/tinyproxy.log" LogLevel Critical PidFile "/var/run/tinyproxy/tinyproxy.pid" MaxClients 100 MinSpareServers 5 MaxSpareServers 20 StartServers 15 MaxRequestsPerChild 0 Allow...

dnsmasq a local dns/dhcp server on raspberry pi

Short How-To: dnsmasq on raspbian install dnsmasq apt-get update apt-get install dnsmasq my /etc/dnsmasq.conf ######### dns ######## # Never forward plain names (without a dot or domain part) domain-needed # Never forward addresses in the non-routed address spaces bogus-priv # dont read resolv.conf use the defined servers instead no-resolv server=8.8.8.8 server=8.8.4.4 # increase dns cache form 512 to 4096 cache-size=4096 ######### dhcp ########## # Add local-only domains here,...

Unbound DNS on raspberry pi

Short How-To: Unbound on raspbian install unbound apt-get update apt-get install unbound wget ftp://FTP.INTERNIC.NET/domain/named.cache -O /etc/unbound/root.hints my /etc/unbound/unbound.conf server: auto-trust-anchor-file: "/var/lib/unbound/root.key" #root dns list root-hints: "/etc/unbound/root.hints" #listen on all interfaces interface: 0.0.0.0 #allow only local/lan access access-control: 127.0.0.0/8 allow access-control: 192.168.178.0/24 allow...

Exim smtp auth Brute-Force-Attacken Part II

Wie schon im letzten Beitrag beschrieben, leidet mein Exim von Zeit zu Zeit unter Brute-Force-Attacken. Teilweise so massiv, dass die 60 sec zwischen den Checks des Logfiles zu lang waren. Da Exim alles kann außer Kaffee kochen, musste der Check auch irgendwie einfacher gehen. Dabei bin ich über das Exim Git Wiki gestolpert. Also frisch ans Werk. Als 1. den alter Cronjob deaktiveren, dass alte Script entschlacken #bin/bash BL="/etc/exim4/lists/blacklist" MAILTO="<<myMail>>" SUBJECT="New...

Exim smtp auth Brute-Force-Attacken

Dieser Artikel ist obsolet. Part2 ist der Aktuelle. Ich hatte in letzter Zeit massive Brute-Force-Attacken im exim Logfile, wie z.B.. login authenticator failed for (EAGLEWIN2003) [209.198.109.234]:9761I=[62.75.155.49]:25: 535 Incorrect authentication data (set_id=info) Dagegen habe ich mir 2 kleine exim ACLs gebaut. Zum ersten eine auth acl die nur 1x auth pro Mail zulässt und nach dem 2. Versuch erst einmal 30sec wartet, bis...