<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Network on steffr.ch</title><link>https://www.steffr.ch/category/network/</link><description>Recent content in Network on steffr.ch</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><lastBuildDate>Wed, 03 Jan 2024 23:15:54 +0100</lastBuildDate><atom:link href="https://www.steffr.ch/category/network/index.xml" rel="self" type="application/rss+xml"/><item><title>UniFi Network Server on QNAP NAS</title><link>https://www.steffr.ch/unifi-network-server-on-qnap-nas/</link><pubDate>Wed, 03 Jan 2024 23:15:54 +0100</pubDate><guid>https://www.steffr.ch/unifi-network-server-on-qnap-nas/</guid><description>&lt;p&gt;This Post describes, how to install the UniFi Network Server as Docker image on a QNAP NAS.&lt;/p&gt;
&lt;p&gt;The first step is to make sure you've installed Container Station from the QNAP App Center.&lt;br&gt;After this, open Container Station, go to "Applications" and click "Create".&lt;br&gt;Give your application a name, for example "unifi-and-mongodb".&lt;br&gt;Upload this yaml-code for docker-compose, replace "UNIFIPASSWORD" with a secure password, you will use this later to configure the database:&lt;/p&gt;</description><content>
&lt;p&gt;This Post describes, how to install the UniFi Network Server as Docker image on a QNAP NAS.&lt;/p&gt;
&lt;p&gt;The first step is to make sure you've installed Container Station from the QNAP App Center.&lt;br&gt;After this, open Container Station, go to "Applications" and click "Create".&lt;br&gt;Give your application a name, for example "unifi-and-mongodb".&lt;br&gt;Upload this yaml-code for docker-compose, replace "UNIFIPASSWORD" with a secure password, you will use this later to configure the database:&lt;/p&gt;
&lt;figure class="wp-block-image size-large"&gt;&lt;img loading="lazy" src="https://www.steffr.ch/wp-content/uploads/2024/01/unifi_create_app-1024x544.png" alt="" class="wp-image-9501"/&gt;&lt;/figure&gt;
&lt;pre class="wp-block-code has-dark-gray-color has-text-color has-link-color"&gt;version: "2.1"
services:
unifi-network-application:
image: lscr.io/linuxserver/unifi-network-application:latest
container_name: unifi-network-application
hostname: unifi
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- MONGO_USER=unifi
- MONGO_PASS=UNIFIPASSWORD
- MONGO_HOST=mongodb
- MONGO_PORT=27017
- MONGO_DBNAME=unifi
- MEM_LIMIT=1024
- MEM_STARTUP=1024
- MONGO_TLS=false
volumes:
- /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/volumes/unifi/:/config
ports:
- 8443:8443
- 3478:3478/udp
- 10001:10001/udp
- 32778:8080
- 8880:8880
restart: unless-stopped
depends_on:
- mongodb
mongodb:
image: mongo:4.4.25
container_name: mongodb
hostname: mongodb
volumes:
- /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/volumes/mongodb/:/data/db
- /share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/volumes/mongodb/:/data/configdb
restart: unless-stopped&lt;/pre&gt;
&lt;p&gt;Container Station now creates two new containers and installs the necessary files. This takes some time. After this, UniFi is not yet able to connect to the database, because we need first to setup an user and grant some rights.&lt;/p&gt;
&lt;figure class="wp-block-image size-large"&gt;&lt;img loading="lazy" src="https://www.steffr.ch/wp-content/uploads/2024/01/unifi_app-1024x335.png" alt="" class="wp-image-9502"/&gt;&lt;/figure&gt;
&lt;figure class="wp-block-image size-large"&gt;&lt;img loading="lazy" src="https://www.steffr.ch/wp-content/uploads/2024/01/unifi_containers-1024x332.png" alt="" class="wp-image-9503"/&gt;&lt;/figure&gt;
&lt;p&gt;Click on "Containers" and then on the "mongodb" container. Click on "Execute", choose /bin/bash and execute again. You are now connected to the terminal in this container.&lt;/p&gt;
&lt;figure class="wp-block-image size-large"&gt;&lt;img loading="lazy" src="https://www.steffr.ch/wp-content/uploads/2024/01/unifi_mongoadmin-1024x667.png" alt="" class="wp-image-9508"/&gt;&lt;/figure&gt;
&lt;p&gt;Enter the following to connect to mongodb shell and create the unifi user.&lt;br&gt;Modify the password "UNIFIPASSWORD" to match the password in the yaml code.&lt;/p&gt;
&lt;pre class="wp-block-code has-dark-gray-color has-text-color has-link-color"&gt;mongo admin
db.getSiblingDB("unifi").createUser({user: "unifi", pwd: "UNIFIPASSWORD", roles: [{role: "dbOwner", db: "unifi"}]});
db.getSiblingDB("unifi_stat").createUser({user: "unifi", pwd: "UNIFIPASSWORD", roles: [{role: "dbOwner", db: "unifi_stat"}]});
quit();&lt;/pre&gt;
&lt;p&gt;The user is now created.&lt;br&gt;It takes now again a few minutes to fill the database.&lt;br&gt;After this, you should be able to conntect to your UniFi Network Server on https://&amp;lt;nas-ip&amp;gt;:8443&lt;br&gt;You can then import a backup or create a new config.&lt;/p&gt;
&lt;p&gt;To adopt existing UniFi AP's you could ssh into them and replace the inform-URL with:&lt;br&gt;set-inform http://&amp;lt;nas-ip&amp;gt;:32778/inform&lt;/p&gt;
&lt;p&gt;And here are some helpful docker commands which can be executed from the ssh shell of your NAS:&lt;br&gt;Show running containers: docker ps&lt;br&gt;Start/stop/restart containers: docker start/stop/restart &amp;lt;containerName&amp;gt;&lt;br&gt;Show mounted volumes of a container: docker inspect -f '{{ .Mounts }}' &amp;lt;containerName&amp;gt;&lt;br&gt;Show container config: docker inspect &amp;lt;containerName&amp;gt;&lt;br&gt;List networks: docker network ls&lt;br&gt;Show network config: docker network inspect &amp;lt;networkName&amp;gt;&lt;/p&gt;
&lt;p&gt;Updating:&lt;br&gt;If you want to update your UniFi Network Server, go to the Application and click on the cogwheel. Choose "Recreate" and you will be able to recreate the containers with the newest docker image. The data stays on the mounted volume as long as you don't delete any volumes.&lt;br&gt;You can also anytime get a backup from the UniFi Network Server Config, delete everything and recreate the containers as described. Then just upload your backup.&lt;br&gt;&lt;br&gt;If recreate does not pull automatically the latest image, do it manually on the CLI:&lt;br&gt;&lt;code&gt;docker pull lscr.io/linuxserver/unifi-network-application:latest&lt;/code&gt;&lt;br&gt;&lt;br&gt;Then check the version and redo the recreation in the Container Station:&lt;br&gt;&lt;code&gt;docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/unifi-network-application:latest&lt;br&gt;Linuxserver.io version:- 10.1.84-ls116 Build-date:- 2026-02-10T18:16:07+00:00&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/p&gt;</content></item><item><title>Siterwell Rauchmelder GS559 und Gateway GS188 mit FamilyWell App</title><link>https://www.steffr.ch/siterwell-rauchmelder-gs559-und-gateway-gs188-mit-familywell-app/</link><pubDate>Tue, 03 Mar 2020 00:57:18 +0100</pubDate><guid>https://www.steffr.ch/siterwell-rauchmelder-gs559-und-gateway-gs188-mit-familywell-app/</guid><description>&lt;p&gt;Ich hab mir vor langer Zeit mal bei einer Aktion unserer Gebäudeversicherung ein Set aus 3 Siterwell Brandmeldern und 1 Gateway bestellt. Die App hab ich mal heruntergeladen, die Bewertungen von &lt;a href="https://apps.apple.com/ch/app/familywell/id1217350728" target="_blank" rel="noopener noreferrer"&gt;iOS&lt;/a&gt; und &lt;a href="https://play.google.com/store/apps/details?id=com.siterwell.familywell" target="_blank" rel="noopener noreferrer"&gt;Android&lt;/a&gt; App stimmten mich aber nicht gerade zuversichtlich. Die AGB's sind unverständlich, die Übersetzung in Deutsch allgemein ziemlich wirr und die After-Sales Telefonnummer ist aus China. Weiter sehe ich nirgends wie ich den Account wieder löschen könnte.&lt;/p&gt;</description><content>
&lt;p&gt;Ich hab mir vor langer Zeit mal bei einer Aktion unserer Gebäudeversicherung ein Set aus 3 Siterwell Brandmeldern und 1 Gateway bestellt. Die App hab ich mal heruntergeladen, die Bewertungen von &lt;a href="https://apps.apple.com/ch/app/familywell/id1217350728" target="_blank" rel="noopener noreferrer"&gt;iOS&lt;/a&gt; und &lt;a href="https://play.google.com/store/apps/details?id=com.siterwell.familywell" target="_blank" rel="noopener noreferrer"&gt;Android&lt;/a&gt; App stimmten mich aber nicht gerade zuversichtlich. Die AGB's sind unverständlich, die Übersetzung in Deutsch allgemein ziemlich wirr und die After-Sales Telefonnummer ist aus China. Weiter sehe ich nirgends wie ich den Account wieder löschen könnte.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.steffr.ch/wp-content/uploads/2020/03/Siter-AGB.png"&gt;&lt;img loading="lazy" class="alignnone wp-image-9132 size-medium" src="https://www.steffr.ch/wp-content/uploads/2020/03/Siter-AGB-138x300.png" alt="" width="138" height="300" /&gt; &lt;/a&gt;&lt;a href="https://www.steffr.ch/wp-content/uploads/2020/03/Siter-Registration.png"&gt;&lt;img loading="lazy" class="alignnone size-medium wp-image-9133" src="https://www.steffr.ch/wp-content/uploads/2020/03/Siter-Registration-137x300.png" alt="" width="137" height="300" /&gt;&lt;/a&gt;&lt;a href="https://www.steffr.ch/wp-content/uploads/2020/03/Siter-About.png"&gt; &lt;img loading="lazy" class="alignnone size-medium wp-image-9134" src="https://www.steffr.ch/wp-content/uploads/2020/03/Siter-About-138x300.png" alt="" width="138" height="300" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Trotzdem habe ich mir heute mal einen Abend Zeit genommen, um mindestens einmal das Gateway mit einem der drei Brandmeldern in Betrieb zu nehmen. Dazu hab ich mir ein Test-WLAN erstellt, an welchem ich die FamilyWell-App mit dem Gateway verbunden habe.&lt;/p&gt;
&lt;p&gt;Ein Mitschnitt der Registration sowie des Login-Vorgangs zeigt, was zu befürchten war: Der Login ist unverschlüsselt über http, die Zugangsdaten in Klartext lesbar. Den Benutzernamen hab ich mal unkenntlich gemacht, das Passwort könnt Ihr lesen:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.steffr.ch/wp-content/uploads/2020/03/Login2.png"&gt;&lt;img loading="lazy" class="alignnone size-medium wp-image-9135" src="https://www.steffr.ch/wp-content/uploads/2020/03/Login2-300x193.png" alt="" width="300" height="193" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Lustigerweise ist nach dem Login jeglicher Verkehr mit den chinesischen Servern verschlüsselt über https, was aber nicht viel bringt wenn der Loginvorgang mitgelesen werden kann. Dies bezieht sich jedoch nur auf die App. Was ich vom Gateway mitschneiden konnte, war unverschlüsselte Kommunikation mit einer JSON-API.&lt;/p&gt;
&lt;p&gt;Dass mit der App noch weitere Sensoren und sogar Kameras verbunden werden könnten, macht das Ganze nicht besser.&lt;/p&gt;
&lt;p&gt;Mal schauen ob ich in Zukunft noch mehr Zeit/Lust habe weiter zu grübeln. Jedenfalls kommt das Gateway und die App so bei mir nicht zum Einsatz.&lt;/p&gt;</content></item><item><title>Inspect SSL/TLS Traffic from Chrome/Firefox/curl with Wireshark (no mitm!)</title><link>https://www.steffr.ch/inspect-ssl-tls-traffic-from-chrome-firefox-curl-with-wireshark-no-mitm/</link><pubDate>Wed, 02 Oct 2019 00:00:53 +0200</pubDate><guid>https://www.steffr.ch/inspect-ssl-tls-traffic-from-chrome-firefox-curl-with-wireshark-no-mitm/</guid><description>&lt;p&gt;Note 12.01.2020: Updated instructions and printscreens for Wireshark v3.0.&lt;/p&gt;
&lt;p&gt;Firefox, Chrome and curl offer the possibility to save the session-keys for https connections. Just set the environment variable "SSLKEYLOGFILE" to a file where you want to store the keys. We do not need to start a man in the middle (mitm) proxy.&lt;/p&gt;</description><content>
&lt;p&gt;Note 12.01.2020: Updated instructions and printscreens for Wireshark v3.0.&lt;/p&gt;
&lt;p&gt;Firefox, Chrome and curl offer the possibility to save the session-keys for https connections. Just set the environment variable "SSLKEYLOGFILE" to a file where you want to store the keys. We do not need to start a man in the middle (mitm) proxy.&lt;/p&gt;
&lt;p&gt;Example for MAC OS, execute this in the Terminal:&lt;/p&gt;
&lt;pre&gt;export SSLKEYLOGFILE=/Users/username/Documents/sslkeylog.log&lt;/pre&gt;
&lt;p&gt;Then start your Browser (Chrome, Firefox) or curl from &lt;strong&gt;the same Terminal-Session&lt;/strong&gt;.&lt;/p&gt;
&lt;pre&gt;open -n /Applications/Firefox.app&lt;/pre&gt;
&lt;p&gt;Now start Wireshark, and go to "Preferences" -&amp;gt; "Protocols" and choose "SSL". Set the Path to your keylog-file. This tells wireshark to read the Keylog-File for decrypting the captured traffic.&lt;/p&gt;
&lt;p&gt;[NOTE:] Since Wireshark 3.0, the TLS dissector has been renamed from SSL to TLS.&lt;a href="https://www.steffr.ch/wp-content/uploads/2019/10/Bildschirmfoto-2020-01-12-um-07.38.31.png"&gt;&lt;img loading="lazy" class="alignnone wp-image-9105 size-full" src="https://www.steffr.ch/wp-content/uploads/2019/10/Bildschirmfoto-2020-01-12-um-07.38.31.png" alt="WIreshark TLS Settings" width="1286" height="816" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The following TCP protocol preferences are also required to enable TLS decryption:&lt;br&gt;
- Allow subdissector to reassemble TCP streams. Enabled by default.&lt;br&gt;
- Reassemble out-of-order segments (since Wireshark 3.0, disabled by default).&lt;/p&gt;
&lt;p&gt;Now start capturing and see the decrypted traffic. Easy hm?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.steffr.ch/wp-content/uploads/2019/10/TLS-Decrypted.png"&gt;&lt;img loading="lazy" class="alignnone wp-image-9107 size-full" src="https://www.steffr.ch/wp-content/uploads/2019/10/TLS-Decrypted.png" alt="Wireshark TLS decrypted" width="1228" height="236" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I made me a script which sets the variable, opens Firefox and Wireshark:&lt;/p&gt;
&lt;pre&gt;#!/bin/bash
export SSLKEYLOGFILE=/Users/username/Documents/sslkeylog.log
open -n /Applications/Firefox.app
open -n /Applications/Wireshark.app&lt;/pre&gt;
&lt;p&gt;This works the same way on Windows and Linux. On Windows you need the SET command or create a new environment variable in "Control Panel" -&amp;gt; "System" -&amp;gt; "Advanced System Settings" -&amp;gt; "Environment Variables". Create a new one with name "SSLKEYLOGFILE" and the path to your logfile as value.&lt;/p&gt;
&lt;p&gt;Links:&lt;br&gt;
- &lt;a href="https://wiki.wireshark.org/TLS" target="_blank" rel="noopener noreferrer"&gt;https://wiki.wireshark.org/TLS&lt;/a&gt;&lt;/p&gt;</content></item><item><title>Windows Device Manager: Show hidden devices</title><link>https://www.steffr.ch/windows-device-manager-show-hidden-devices/</link><pubDate>Fri, 19 Apr 2019 21:20:06 +0200</pubDate><guid>https://www.steffr.ch/windows-device-manager-show-hidden-devices/</guid><description>&lt;p&gt;Sometimes there is a problem especially when switching network cards in virtual machines, that the old card remains hidden with it's ip-config. If you want to configure a new device with the same IP-Address, you will get a warning that this IP-Address is already used on another interface. Of course you can't delete the configured IP-Address, because the old device is not available anymore and somewhere hidden.&lt;/p&gt;</description><content>
&lt;p&gt;Sometimes there is a problem especially when switching network cards in virtual machines, that the old card remains hidden with it's ip-config. If you want to configure a new device with the same IP-Address, you will get a warning that this IP-Address is already used on another interface. Of course you can't delete the configured IP-Address, because the old device is not available anymore and somewhere hidden.&lt;/p&gt;
&lt;p&gt;Now you can try to fiddle in the registry, but there is a clean way:&lt;/p&gt;
&lt;p&gt;Start a command prompt as Admininstrator and then enter:&lt;/p&gt;
&lt;pre&gt;&amp;lt;strong&amp;gt;set devmgr_show_nonpresent_devices=1
start devmgmt.msc&amp;lt;/strong&amp;gt;&lt;/pre&gt;
&lt;p&gt;Now you have to enable "Show hidden devices" in the menu of Device Manager and tadaaa, you see all devices which are not existing anymore. If you do not see the devices, make sure you start devmgmt.msc from the same cmd window where you set the devmgr_show_nonpresent_devices variable.&lt;/p&gt;
&lt;p&gt;You can now remove the unused devices.&lt;/p&gt;
&lt;p&gt;This setting is not permanent and stays only within this command line session.&lt;/p&gt;</content></item><item><title>vCenter Server behind NAT</title><link>https://www.steffr.ch/vcenter-server-behind-nat/</link><pubDate>Thu, 30 Aug 2018 12:55:53 +0200</pubDate><guid>https://www.steffr.ch/vcenter-server-behind-nat/</guid><description>&lt;p&gt;Be warned: This configuration is not officially supported by VMware.&lt;/p&gt;
&lt;p&gt;If you have your vCenter Server behind NAT, you can not connect your ESXi Host to this Server. It will loose connection after a few seconds to vCenter because vCenter publishes his private IP to the configuration of ESXi.&lt;/p&gt;</description><content>
&lt;p&gt;Be warned: This configuration is not officially supported by VMware.&lt;/p&gt;
&lt;p&gt;If you have your vCenter Server behind NAT, you can not connect your ESXi Host to this Server. It will loose connection after a few seconds to vCenter because vCenter publishes his private IP to the configuration of ESXi.&lt;/p&gt;
&lt;p&gt;1. We need an port forwarding of port TCP/UDP 902 from your public IP to the internal IP of the vCenter Server. If you have a Firewall, allow connections only from the IP of your ESXi host.&lt;/p&gt;
&lt;p&gt;2. Connect over SSH to the ESXi Host and edit vpxa.cfg with vi:&lt;/p&gt;
&lt;pre&gt;vi /etc/vmware/vpxa/vpxa.cfg&lt;/pre&gt;
&lt;p&gt;Configure the following settings:&lt;/p&gt;
&lt;p&gt;Insert this tag, if you don't add this tag and restart the services, it will overwrite the IP again with the private one of vCenter:&lt;/p&gt;
&lt;pre&gt;&amp;lt;preserveServerIp&amp;gt;true&amp;lt;/preserveServerIp&amp;gt;&lt;/pre&gt;
&lt;p&gt;Replace the private IP of the vCenter Server with the public one:&lt;/p&gt;
&lt;pre&gt;&amp;lt;serverIp&amp;gt;PublicIPvCenterServer&amp;lt;/serverIp&amp;gt;&lt;/pre&gt;
&lt;p&gt;Restart services:&lt;/p&gt;
&lt;pre&gt;/etc/init.d/hostd restart&lt;/pre&gt;
&lt;p&gt;Now the connection should stay stable.&lt;/p&gt;</content></item><item><title>Important FortiGate CLI commands</title><link>https://www.steffr.ch/fortigate-ha-cli-commands/</link><pubDate>Wed, 10 Feb 2016 23:03:59 +0100</pubDate><guid>https://www.steffr.ch/fortigate-ha-cli-commands/</guid><description>&lt;p&gt;&lt;strong&gt;FortiGate High Availability Cluster CLI commands:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Manage the specified FortiGate unit (X ist the unit number):&lt;/p&gt;
&lt;pre&gt;execute ha manage X&lt;/pre&gt;
&lt;p&gt;Set the current ForitGate Unit as master:&lt;/p&gt;
&lt;pre&gt;diag sys ha set-as-master enable&lt;/pre&gt;
&lt;p&gt;Get HA Status:&lt;/p&gt;
&lt;pre&gt;get system ha status&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description><content>
&lt;p&gt;&lt;strong&gt;FortiGate High Availability Cluster CLI commands:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Manage the specified FortiGate unit (X ist the unit number):&lt;/p&gt;
&lt;pre&gt;execute ha manage X&lt;/pre&gt;
&lt;p&gt;Set the current ForitGate Unit as master:&lt;/p&gt;
&lt;pre&gt;diag sys ha set-as-master enable&lt;/pre&gt;
&lt;p&gt;Get HA Status:&lt;/p&gt;
&lt;pre&gt;get system ha status&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;FortiGate Session commands:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Get all Sessions:&lt;/p&gt;
&lt;pre&gt;diag sys session list&lt;/pre&gt;
&lt;p&gt;Filter Sessions:&lt;/p&gt;
&lt;pre&gt;diagnose sys session filter&lt;/pre&gt;
&lt;p&gt;Clear Sessions (only filtered ones or all):&lt;/p&gt;
&lt;pre&gt;diagnose sys session clear&lt;/pre&gt;
&lt;p&gt;Clear Filter:&lt;/p&gt;
&lt;pre&gt;diag sys session filter clear&lt;/pre&gt;</content></item><item><title>LetsEncrypt on CentOS 6 - Free SSL certificate for everyone!</title><link>https://www.steffr.ch/letsencrypt-on-centos-7-free-ssl-certificate-for-everyone/</link><pubDate>Tue, 12 Jan 2016 22:59:24 +0100</pubDate><guid>https://www.steffr.ch/letsencrypt-on-centos-7-free-ssl-certificate-for-everyone/</guid><description>&lt;p&gt;&lt;img loading="lazy" class="alignnone wp-image-8188 size-medium" src="https://www.steffr.ch/wp-content/uploads/2016/01/letsencrypt-logo-300x72.png" width="300" height="72" /&gt;&lt;/p&gt;
&lt;p&gt;This is a short manual how to use &lt;a href="https://letsencrypt.org/" target="_blank" rel="noopener noreferrer"&gt;Let's Encrypt&lt;/a&gt; on CentOS 6 with Apache Webserver:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Install dependencies:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Download, unzip and install Python:&lt;/p&gt;
&lt;pre lang="bash"&gt;wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz
tar -xvpzf Python-2.7.11.tgz
cd Python-2.7.11
./configure
make altinstall&lt;/pre&gt;
&lt;p&gt;Install Git:&lt;/p&gt;</description><content>
&lt;p&gt;&lt;img loading="lazy" class="alignnone wp-image-8188 size-medium" src="https://www.steffr.ch/wp-content/uploads/2016/01/letsencrypt-logo-300x72.png" width="300" height="72" /&gt;&lt;/p&gt;
&lt;p&gt;This is a short manual how to use &lt;a href="https://letsencrypt.org/" target="_blank" rel="noopener noreferrer"&gt;Let's Encrypt&lt;/a&gt; on CentOS 6 with Apache Webserver:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Install dependencies:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Download, unzip and install Python:&lt;/p&gt;
&lt;pre lang="bash"&gt;wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz
tar -xvpzf Python-2.7.11.tgz
cd Python-2.7.11
./configure
make altinstall&lt;/pre&gt;
&lt;p&gt;Install Git:&lt;/p&gt;
&lt;pre lang="bash"&gt;yum install git
git clone https://github.com/letsencrypt/letsencrypt
&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;2. Stop apache:&lt;/strong&gt;&lt;/p&gt;
&lt;pre lang="bash"&gt;apachectl stop&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;3. Start the letsencrypt-script:&lt;/strong&gt;&lt;/p&gt;
&lt;pre lang="bash"&gt;cd letsencrypt
./letsencrypt-auto
&lt;/pre&gt;
&lt;p&gt;This will end with:&lt;/p&gt;
&lt;pre lang="bash"&gt;No installers are available on your OS yet; try running "letsencrypt-auto certonly" to get a cert you can install manually&lt;/pre&gt;
&lt;p&gt;So we try with:&lt;/p&gt;
&lt;pre lang="bash"&gt;./letsencrypt-auto certonly
&lt;/pre&gt;
&lt;p&gt;Enter your e-mail address (must be a valid one!).&lt;br&gt;
Enter your domain.&lt;/p&gt;
&lt;p&gt;Should end with:&lt;/p&gt;
&lt;pre lang="bash"&gt;IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/yourdomain.com/fullchain.pem. Your cert
will expire on XXXX-XX-XX. To obtain a new version of the
certificate in the future, simply run Let's Encrypt again.
- If you like Let's Encrypt, please consider supporting our work by:
Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
Donating to EFF:                    https://eff.org/donate-le&lt;/pre&gt;
&lt;p&gt;Symlink the certfiles on:&lt;/p&gt;
&lt;pre lang="bash"&gt;# ls -al /etc/letsencrypt/live/yourdomain.com/
lrwxrwxrwx 1 root root   41 12. Jan 22:56 cert.pem -&amp;gt; ../../archive/host.yourdomain.com/cert1.pem
lrwxrwxrwx 1 root root   42 12. Jan 22:56 chain.pem -&amp;gt; ../../archive/host.yourdomain.com/chain1.pem
lrwxrwxrwx 1 root root   46 12. Jan 22:56 fullchain.pem -&amp;gt; ../../archive/host.yourdomain.com/fullchain1.pem
lrwxrwxrwx 1 root root   44 12. Jan 22:56 privkey.pem -&amp;gt; ../../archive/host.yourdomain.com/privkey1.pem&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;4. Use symlinks for virtual host config of apache:&lt;/strong&gt;&lt;br&gt;
I use the fullchain.pem instead of cert.pem, because this will not give any errors with mobile browsers (i.e. "Safari not trusted...")&lt;/p&gt;
&lt;pre lang="bash"&gt;SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/host.yourdomain.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/host.yourdomain.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/host.yourdomain.com/fullchain.pem&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;5. Start apache again:&lt;/strong&gt;&lt;/p&gt;
&lt;pre lang="bash"&gt;apachectl start
&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;6. In future, update your certs with:&lt;/strong&gt;&lt;/p&gt;
&lt;pre lang="bash"&gt;./letsencrypt-auto certonly -d host.yourdomain.com&lt;/pre&gt;
&lt;p&gt;Or add multiple hosts/domains with:&lt;/p&gt;
&lt;pre lang="bash"&gt;./letsencrypt-auto certonly -d host1.yourdomain.com -d host2.yourdomain.com -d testserver.yourdomain.com&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;For those who use nginx instead of apache:&lt;/strong&gt;&lt;/p&gt;
&lt;pre lang="bash"&gt;ssl_certificate /etc/letsencrypt/live/host.yourdomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/host.yourdomain.com/privkey.pem;
&lt;/pre&gt;</content></item><item><title>Swisscom TV stört WLAN</title><link>https://www.steffr.ch/swisscom-tv-stoert-wlan/</link><pubDate>Mon, 06 Jan 2014 22:00:39 +0100</pubDate><guid>https://www.steffr.ch/swisscom-tv-stoert-wlan/</guid><description>&lt;p&gt;Vor einigen Tagen habe ich bei meinen Eltern das Centro Grande mit Swisscom TV, Internet und Telefonie eingerichtet. Laut Verpackung alles schön einfach: Einstecken, Einschalten, Surfen, Telefonieren und TV-gucken. So einfach habe ich mir das auch vorgestellt...&lt;/p&gt;
&lt;p&gt;Ich habe mich also an die Installation des Centro Grande DSL-Routers gemacht, wie ihn Swisscom so schön nennt. Eigentlich&lt;/p&gt;</description><content>
&lt;p&gt;Vor einigen Tagen habe ich bei meinen Eltern das Centro Grande mit Swisscom TV, Internet und Telefonie eingerichtet. Laut Verpackung alles schön einfach: Einstecken, Einschalten, Surfen, Telefonieren und TV-gucken. So einfach habe ich mir das auch vorgestellt...&lt;/p&gt;
&lt;p&gt;Ich habe mich also an die Installation des Centro Grande DSL-Routers gemacht, wie ihn Swisscom so schön nennt. Eigentlich&lt;/p&gt;
&lt;p&gt;handelt es sich dabei um einen Motorola (je nach dem auch Pirelli) DSL-Router. Alter DSL-Router weg, neuer hin. Nun schon die erste Hürde: Router eingesteckt und er funktioniert einfach. Warum? Ich hasse es wenn etwas einfach funktioniert, und noch mehr hasse ich es, wenn man den Router über ein Webinterface von Swisscom konfigurieren muss. Wahrscheinlich wird dieser über TR 069 konfiguriert... Ich habe mich damit abgefunden und das WLAN abgeschaltet, da bereits ein WLAN-AccessPoint im Wohnzimmer steht. So, die Arbeit im Keller ist getan, ab ins Wohnzimmer.&lt;/p&gt;
&lt;h6&gt;&lt;strong&gt;Kurze Freude
&lt;/strong&gt;&lt;/h6&gt;
&lt;p&gt;Im Wohnzimmer habe ich die Swisscom-TV Box an den WLAN-AP und den TV angeschlossen und eingeschaltet. Nach etlichen Firmware-Downloads (die Settop-Box droht mit 30min Wartezeit) ist die Kiste gebrauchsbereit. Der erste Sender flimmert, leider nicht lange... Nach rund 10s stellt der Videostream von Unicast auf Multicast um (vgl. &lt;a href="http://de.wikipedia.org/wiki/Unicast" target="_blank"&gt;Unicast, Multicast, Broadcast&lt;/a&gt;), danach ist das Bild blockiert. Nach jedem Senderwechsel wieder dasselbe Verhalten.&lt;/p&gt;
&lt;h6&gt;&lt;strong&gt;Wireshark ist dein Freund&lt;/strong&gt;&lt;/h6&gt;
&lt;p&gt;Gleich nach dem Einbau eines Switches zwischen dem Centro Grande und dem WLAN-AP hat sich die Problematik entschärft, die Sender blockieren nicht mehr. Dazu wurde die Settop-Box direkt am Switch angeschlossen, nicht über den WLAN-AP. Die Freude war jedoch von kurzer Dauer, das WLAN wollte einfach nicht mehr funktionieren! Hier ist &lt;a href="http://www.wireshark.org/" target="_blank"&gt;Wireshark&lt;/a&gt; dein Freund: Mit &lt;a href="http://www.wireshark.org/" target="_blank"&gt;Wireshark&lt;/a&gt; mal analysiert was eigentlich im LAN so abgeht, denn die blinkenden Status-LED's aller Swichports haben mich unsicher gemacht (Multicast-Stream!).&lt;/p&gt;
&lt;p&gt;Nach kurzer Zeit war klar, der Multicast-Stream flutet das Netzwerk, dies hat zu Timeouts bei der Authentifizierung mit dem WLAN geführt. Abhilfe kann in einer solchen Konstellation nur ein Netzwerk schaffen, welches das sogenannte IGMP (Internet Group Management Protocol) unterstützt. In unserem Fall musste der Switch oder der WLAN-AP IGMP snooping unterstützen. Nach kurzer Recherche im Internet, habe ich gesehen dass weder der verwendete WLAN-AP (Netgear WNDR4500) noch der Switch IGMP unterstützen, somit musste ein anderer Switch her.&lt;/p&gt;
&lt;h6&gt;Die Lösung&lt;/h6&gt;
&lt;p&gt;IGMP snooping ist eine Funktion, bei welcher der Switch im Netzwerktraffic mithorcht und festlegt, auf welchem Port denn ein Gerät ist, welches den Multicast-Traffic abonniert hat. Auf alle anderen Ports wird dann der Multicast-Traffic nicht gespiegelt. In meinem Fall war auf Port 1 der DSL-Router, von welchem der Videostream kommt. Auf Port 2 die Swisscom-TV Box und auf Port 3 der WLAN-AP. Alle anderen Ports sind ungebraucht. Somit wird der Multicast-Stream nur auf Port 1 und 2 gebraucht, Port 3 und somit der Rest des Netzwerks wird vom Swisscom-TV Multicast verschont.&lt;/p&gt;
&lt;p&gt;Als Switch habe ich den &lt;a href="http://www.netgear.ch/products/business/switches/prosafe-plus-switches/gs105e.aspx" target="_blank"&gt;Netgear GS105E&lt;/a&gt; verwendet. Dieser ist mit dem Prosafe Plus Utility von Netgear (leider nur für Windows) teilweise konfigurierbar. Das Tool kann auf der &lt;a href="http://support.netgear.com/product/GS105E" target="_blank"&gt;Netgear Seite&lt;/a&gt; heruntergeladen werden, evtl. sollte man auch gleich die aktuelle Firmware laden. Hier ein Screenshot wie er konfiguriert werden muss:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.steffr.ch/wp-content/uploads/2014/01/ProsafePlusUtility.jpg"&gt;&lt;img loading="lazy" class="alignnone size-thumbnail wp-image-1536" src="https://www.steffr.ch/wp-content/uploads/2014/01/ProsafePlusUtility-150x150.jpg" alt="ProsafePlusUtility" width="150" height="150" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;del&gt;Swisscom verkauft diesen Switch unter dem ein bisschen fragwürdigen Namen "&lt;a href="http://www.swisscom.ch/de/privatkunden/internet/internet-zuhause/devices/network-distribution-box.html" target="_blank"&gt;Netzwerk Verteiler Box&lt;/a&gt;" auch, da er anscheinend momentan eine der günstigsten Lösungen ist.&lt;/del&gt;&lt;br&gt;
&lt;del&gt;UPDATE 05.07.2015: Swisscom verkauft seit einiger Zeit den grösseren Bruder GS108E hier: &lt;a href="https://www.swisscom.ch/de/privatkunden/produkte/netzwerk-verteiler-box.html" target="_blank"&gt;Netzwerk Verteiler Box&lt;/a&gt;&lt;/del&gt;&lt;br&gt;
UPDATE 24.11.2016: Swisscom hat das Modell auf den &lt;a href="https://www.swisscom.ch/de/privatkunden/produkte/ethernet-switch(000000000011009327).html" target="_blank"&gt;TP-LINK TL-SG2008&lt;/a&gt; gewechselt.&lt;/p&gt;
&lt;p&gt;Prinzipiell kann jeder Switch verwendet werden, der IGMP snooping kann. Das Problem ist ein bisschen, dass man im Laden meistens nicht sieht, ob das Gerät nun IGMP snooping kann oder nicht. Hier muss man sich im Internet schlau machen oder auf einen kompetenten Verkäufer hoffen.&lt;/p&gt;
&lt;p&gt;Hier noch die Originalverpackung des GS105E:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.steffr.ch/wp-content/uploads/2014/01/GS105E.jpg"&gt;&lt;img loading="lazy" class="alignnone wp-image-1535 size-thumbnail" src="https://www.steffr.ch/wp-content/uploads/2014/01/GS105E-150x150.jpg" alt="Swisscom GS105E" width="150" height="150" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Gleich danach hat alles inkl. WLAN wieder wunderbar funktioniert. Das Netzwerk bleibt aufgeräumt und der Multicast-Stream wird nur dort verteilt, wo er auch gebraucht wird.&lt;/p&gt;
&lt;p&gt;HINWEIS: Diese Anwendung wird nur gebraucht, wenn die Swisscom-TV Box NICHT direkt an den Centro Grande angeschlossen werden kann!&lt;/p&gt;
&lt;p&gt;Hier noch ein entsprechendes Schema zum besseren Verständnis:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.steffr.ch/wp-content/uploads/2014/04/SwisscomTV.pdf"&gt;&lt;img loading="lazy" class="alignnone wp-image-1822 size-thumbnail" src="https://www.steffr.ch/wp-content/uploads/2014/01/SwisscomTV-150x150.png" alt="Swisscom TV" width="150" height="150" /&gt;&lt;/a&gt;&lt;/p&gt;</content></item><item><title>DNS forwarder on Qnap NAS</title><link>https://www.steffr.ch/dns-forwarder-on-qnap-nas/</link><pubDate>Fri, 01 Mar 2013 19:00:40 +0100</pubDate><guid>https://www.steffr.ch/dns-forwarder-on-qnap-nas/</guid><description>&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;First install ipkg, if you haven't already (see &lt;a href="http://wiki.qnap.com/wiki/Optware_IPKG" target="_blank"&gt;http://wiki.qnap.com/wiki/Optware_IPKG&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Access your NAS with ssh as "admin". If you haven't already activated ssh, see &lt;a href="http://wiki.qnap.com/wiki/How_to_SSH_into_your_QNAP_device" target="_blank"&gt;http://wiki.qnap.com/wiki/How_to_SSH_into_your_QNAP_device&lt;/a&gt;.&lt;/p&gt;</description><content>
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;First install ipkg, if you haven't already (see &lt;a href="http://wiki.qnap.com/wiki/Optware_IPKG" target="_blank"&gt;http://wiki.qnap.com/wiki/Optware_IPKG&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Access your NAS with ssh as "admin". If you haven't already activated ssh, see &lt;a href="http://wiki.qnap.com/wiki/How_to_SSH_into_your_QNAP_device" target="_blank"&gt;http://wiki.qnap.com/wiki/How_to_SSH_into_your_QNAP_device&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Bring your ipkg installation up to date with this command: /opt/bin/ipkg update&lt;/p&gt;
&lt;p&gt;Install the DNS-forwarder dnsmasq: /opt/bin/ipkg install dnsmasq&lt;/p&gt;
&lt;p&gt;Edit with vi or your favorite text-editor the file /opt/etc/dnsmasq.conf and add the following line:&lt;/p&gt;
&lt;pre&gt;addn-hosts=/opt/etc/dnsmasq-hosts.conf&lt;/pre&gt;
&lt;p&gt;I added also a dedicated user for dnsmasq called "dnsmasq" and modified the following lines in dnsmasq.conf:&lt;/p&gt;
&lt;pre&gt;# If you want dnsmasq to change uid and gid to something other
# than the default, edit the following lines.
user=dnsmasq
group=everyone&lt;/pre&gt;
&lt;p&gt;Create and edit the file: /opt/etc/dnsmasq-hosts.conf&lt;/p&gt;
&lt;p&gt;In this file, you define all your hosts with their names.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;192.168.0.1     firewall.mydomain.int
192.168.0.2     switch1.mydomain.int
192.168.0.5     server1.mydomain.int&lt;/pre&gt;
&lt;p&gt;After modifying and saving this file, restart the dnsmasq service:&lt;/p&gt;
&lt;pre&gt;/opt/etc/init.d/S56dnsmasq restart&lt;/pre&gt;
&lt;p&gt;All done! Now you have to set the first DNS-Server address on your computer, to the IP-Address of your NAS.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</content></item><item><title>Multicast Routing of Apple's Bonjour with FortiGate WiFi</title><link>https://www.steffr.ch/apple-timemachine-routing-with-fortigate-wifi/</link><pubDate>Thu, 28 Feb 2013 23:34:44 +0100</pubDate><guid>https://www.steffr.ch/apple-timemachine-routing-with-fortigate-wifi/</guid><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;br&gt;
The solution is very simple, but you have to find it because it is not activated by default:&lt;/p&gt;</description><content>
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;br&gt;
The solution is very simple, but you have to find it because it is not activated by default:&lt;/p&gt;
&lt;p&gt;1. Go to "&lt;strong&gt;System&lt;/strong&gt;" -&amp;gt; "&lt;strong&gt;Admin&lt;/strong&gt;" -&amp;gt; "&lt;strong&gt;Settings&lt;/strong&gt;" and activate the checkbox on "&lt;strong&gt;Multicast Policy&lt;/strong&gt;", then click "&lt;strong&gt;Apply&lt;/strong&gt;" to save the changes.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.steffr.ch/wp-content/uploads/2013/02/Settings.png"&gt;&lt;img loading="lazy" class="alignnone size-thumbnail wp-image-1350" alt="Settings" src="https://www.steffr.ch/wp-content/uploads/2013/02/Settings-150x150.png" width="150" height="150" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. Go to "&lt;strong&gt;Policy&lt;/strong&gt;" and click on the new entry "&lt;strong&gt;Multicast Policy&lt;/strong&gt;".&lt;/p&gt;
&lt;p&gt;3. Click on "&lt;strong&gt;Create new&lt;/strong&gt;" to add a multicast policy from LAN to WLAN and one from WLAN to LAN with the destination "Bonjour".&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.steffr.ch/wp-content/uploads/2013/02/Multicast-Policy.png"&gt;&lt;img loading="lazy" class="alignnone size-thumbnail wp-image-1349" alt="Multicast-Policy" src="https://www.steffr.ch/wp-content/uploads/2013/02/Multicast-Policy-150x145.png" width="150" height="145" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The destination "Bonjour" is already configured on the FortiGate. If not, Bonjour uses the multicast-address 224.0.0.251.&lt;/p&gt;
&lt;p&gt;That's all, you should now be able to find your TimeMachine Backup and all your other Apple-things like AirPlay, iTunes remote etc...&lt;/p&gt;</content></item></channel></rss>