All posts by Stefan

DNS forwarder on Qnap NAS

A few days ago I installed dnsmasq on my QNAP NAS. I use this DNS-forwarder to resolve my LAN-device’s names. Here is a little instruction:

First install ipkg, if you haven’t already (see http://wiki.qnap.com/wiki/Optware_IPKG).

Access your NAS with ssh as “admin”. If you haven’t already activated ssh, see http://wiki.qnap.com/wiki/How_to_SSH_into_your_QNAP_device.

Bring your ipkg installation up to date with this command: /opt/bin/ipkg update

Install the DNS-forwarder dnsmasq: /opt/bin/ipkg install dnsmasq

Edit with vi or your favorite text-editor the file /opt/etc/dnsmasq.conf and add the following line:

addn-hosts=/opt/etc/dnsmasq-hosts.conf

I added also a dedicated user for dnsmasq called “dnsmasq” and modified the following lines in dnsmasq.conf:

# If you want dnsmasq to change uid and gid to something other
# than the default, edit the following lines.
user=dnsmasq
group=everyone

Create and edit the file: /opt/etc/dnsmasq-hosts.conf

In this file, you define all your hosts with their names.

Example:

192.168.0.1     firewall.mydomain.int
192.168.0.2     switch1.mydomain.int
192.168.0.5     server1.mydomain.int

After modifying and saving this file, restart the dnsmasq service:

/opt/etc/init.d/S56dnsmasq restart

All done! Now you have to set the first DNS-Server address on your computer, to the IP-Address of your NAS.

The NAS will now answer all DNS-Queries. IP-Addresses which are not in the config file will be forwarded to the DNS-Servers configured on the NAS to resolve names outside your network.

Multicast Routing of Apple’s Bonjour with FortiGate WiFi

A few weeks ago I replaced my good old DrayTek Vigor with a FortiGate WiFi. Because I have now two different Networks (one WiFi and the other Wired-LAN), the TimeMachine Backup does not work.

This has a simple background: TimeMachine uses Apple’s Bonjour protocol to find backup-volumes on the Network. Bonjour uses multicast, which is not routed between different Networks.
The solution is very simple, but you have to find it because it is not activated by default:

1. Go to “System” -> “Admin” -> “Settings” and activate the checkbox on “Multicast Policy“, then click “Apply” to save the changes.

Settings

Continue reading Multicast Routing of Apple’s Bonjour with FortiGate WiFi

MacBook SSD upgrade (15″ unibody mid. 2009 model)

A few days ago, I replaced my MacBook Pro’s Harddrive with a new Corsair SSD. I decided to buy a 240GB Force GS series SSD.
My MacBook Pro runs now very silent and fast, I recommend this update to everyone wo has an “older” MacBook and don’t want to buy a new one.

Mac

The SSD can work much faster, but my MacBook doesn’t support SATA3, so it negotiates a link speed of 1.5 Gigabit. But as you can see, the testresults are anyway much better:

Continue reading MacBook SSD upgrade (15″ unibody mid. 2009 model)

Raspberry Pi und Blitzortung.org

Blitzortung.org ist ein Projekt, an dem jeder teilnehmen kann. Es handelt sich dabei um eine Community-Blitzortung, die Teilnehmer orten mit ihren selbstgebauten “Blitz-orter”, wie der Name schon sagt, Blitze auf der ganzen Welt.

Seit einigen Tagen ist meine Hardware fertig gebaut und da ich ein Raspberry Pi besitze, lag es nahe, dieses als Rechner für die Blitzortung zu verwenden. Hier einige Biler (v.l. VLF Verstärkerboard PCB5 V7 / Raspberry Pi / Controllerboard PCB6 V8 USB mit GlobalSat GPS Modul EM-406A):

Das Raspberry Pi hatte anfangs noch das Problem, dass sich die USB- sowie Ethernet-Schnittstelle immer nach 1-2 Stunden Betrieb mit der Blitzortung aufhängte. Anscheinend stimmt was mit den USB-Treibern nicht. Dies machte sich mit folgenden Einträgen im messages-log sichtbar: “smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114”. Da Ethernet auf dem Raspberry schlussendlich auch über den USB-Controller läuft,  war das Raspberry nicht mehr ansprechbar, nur ein Neustart hat geholfen.

Aus diversen Forenbeiträgen konnte ich dann folgende Einstellung in Erfahrung bringen:

Continue reading Raspberry Pi und Blitzortung.org