I'm using HAproxy to load-balance HTTP between two backend nodes. HAproxy is pretty smart about doing this, backing off failing nodes, retrying failed requests on healthy nodes etc. Recently I got a rather strange request: if a node responds with HTTP 200 (which in HTTP-terms means everything's peachy) and a particular payload, that should be … Continue reading Convert HTTP response body to status code with HAproxy
Category: network
could not get netmask from lease
I'm sitting in a hotel lobby and the Ubuntu Acer Nitro 5 won't connect to the hotel wifi, although my android phone connected fine. According to syslog "could not get netmask from lease". This post isn't a fix, just an ugly workaround. This "lease" message points the unacquainted me towards a DHCP issue, which is … Continue reading could not get netmask from lease
Ubuntu 20.04 not resolving local network hostnames
An Ubuntu 20.04 laptop installation started not being able to resolve the names of hosts in the same local network. Although the host names were registered with the router, the laptop wouldn't be able to resolve those host names. Surprisingly, neither netbios resolution worked (although nbtscan would find those hosts). The solution is to bypass … Continue reading Ubuntu 20.04 not resolving local network hostnames
Samba anonymous shares
I'm currently writing up changes to the perfect, cheap NAS [1]. A major change is that I dropped support for user-level windows/samba shares and am using only a few public browsable shares. It turns out that Windows clients always ask the user for a password even though the samba share is anonymous. The reason seems … Continue reading Samba anonymous shares
Ubuntu 20.04 getting wrong IP address
Yesterday (early August 2021) my Ubuntu 20.04 installation started configuring all network interfaces (wifi, ethernet) with IPv4 addresses from the wrong network segment block, namely 192.168.0.x. IPv6 still worked fine. I didn't figure out whether that's due to a change in the router or the OS (I suspect the router, because the situation improved when … Continue reading Ubuntu 20.04 getting wrong IP address