Docker IPv6

There are diffrent ways to support IPv6 in Docker. The easiest is to enable ipv6 on the docker host and simply use the docker proxy to forward ipv6 via ipv4 to the containers. But one disadvantage of this method is, that your container is unable to see the clients remote address. Each request seems to be send from the docker host. Especially nginx and php or a spam filter for your mailserver are depending on a correct client ip....

August 18, 2018 Â· 2 min Â· Anton Bracke

Browsersync

Stop reloading your browser by hand anytime your css, js or template re-renders. Try using Browsersync. I really started loving this tool. Everytime your sass or js gets compiled or you simply changed one thing in your template, browsersync detects the file change and simply reloads your page. One nice extra is that css is reloaded without reloading the complete page. To use it just install it via npm: npm install -g browser-sync I just created a small helper script for my Silverstripe projects, but you could simply change the folder and use it with everything else:...

August 8, 2018 Â· 1 min Â· Anton Bracke

Deutsche Glasfaser: VoIP

VoIP ISDN Funktionalitäten Die Deutsche Glasfaser offeriert in all ihren Tarifen die Telefonie mit VoIP. Es ist grundsätzlich eine “Leitung” und eine Rufnummer enthalten. Wenn man den Komfort eines “ISDN”-Anschlusses (Konferenz, Makeln, …) nutzen möchte wird man auf den ersten Blick die Option “Zweite Telefonleitung” buchen wollen: Screenshot: Buchungsseite Deutsche Glasfaser Premium 600 Es handelt sich hierbei jedoch nur um einen unabhängigen zweiten SIP-Account der mit einer anderen Rufnummer verknüpft ist....

August 8, 2018 Â· 2 min Â· Armin Jacob

Sniffing for Packets

tcpdump -i any tcpdump -i eth0 tcp port 80 tcpdump -i eth0 tcp port 80 or 443 tcpdump -i eth0 icmp tcpdump -i eth0 icmp6 More details Interesting blog post about tcpdump

August 1, 2018 Â· 1 min Â· Anton Bracke

Smart doorbell

A while ago I started to build a smart home integration for my door bell. The system I had to play with is a Ritto digital bus called Twinbus. But after some research I figured out that my Ritto intercom has some awesome pinouts on the circuit board. Things needed soldering iron some wires hot glue (or some tape) Shoppinglist Amount Name Price Link 1x Wemos D1 mini ~ 2,14€ [Aliexpress....

July 24, 2018 Â· 3 min Â· Anton Bracke

Serial problems with Ubuntu?

One of my main problems while connecting to a serial device was a software called ModemManager which automatically opened a connection to my devices on plug-in. The solution was to disable or remove ModemManager since I never used one of these old dialup modems with my PCs anyways. Remove ModemManager: apt-get purge modemmanager or simply stop it: systemctl stop ModemManager

July 15, 2018 Â· 1 min Â· Anton Bracke

Docker daemon enable remote access

nano /lib/systemd/system/docker.service and change ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375 [...] and restart docker with: systemctl daemon-reload service docker restart Source: [StackOverflow][1] tested on: Distributor ID: Ubuntu Description: Ubuntu 17.10 Release: 17.10 Codename: artful Distributor ID: Ubuntu Description: Ubuntu 16.04.4 LTS Release: 16.04 Codename: xenial [1]: https://stackoverflow.com/questions/26561963/how-to-detect-a-docker-daemon-port

April 4, 2018 Â· 1 min Â· Anton Bracke

SSH Tunnel

ssh -R 8080:localhost:80 user@publicip ssh -R remote-port:pc-in-local-network:port-on-pc-in-local-network user@publicip

April 4, 2018 Â· 1 min Â· Anton Bracke

Bash Prompt

The Bash Prompt is the text on your console before the actual command. echo $PS1 If you get displaying errors or just want a shorter prompt just use: PS1="# "

March 6, 2018 Â· 1 min Â· Anton Bracke

Docker

Useful commands Remove dangling images docker rmi $(docker images --quiet --filter "dangling=true") Update Composer Project Dependencies docker run --rm -ti -v $PWD:/app -v /home/anton/.ssh/:/root/.ssh composer update --ignore-platform-reqs --no-scripts echo "" > $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)

December 13, 2017 Â· 1 min Â· Anton Bracke