simplistic gatekeeper limiting access to apache2-based proxy

i had to expose some web-based application hosted on a windows server to the internet. i don’t put too much trust in the developers of that particular application so i did not want to make it reachable from the public internet. while i could not use ip address based whitelist i could count on the …

Continue reading ‘simplistic gatekeeper limiting access to apache2-based proxy’ »

posting a file from command line with CURL

i needed to write a .bat script for windows to upload a log file. quick and nasty hack.. on the sending end: looks straightforward, worked when i tested; but failed to upload in the production setup. on the http server/PHP i was getting: turned out that the log file was growing. curl at the beginning …

Continue reading ‘posting a file from command line with CURL’ »

extracting attachments from unix mail files

i log some of the messages passing by Postfix-based relay using always_bcc = bcc@somewhere.com in main.cf. Sometimes – to track spam or problems – i need to check content of the attachments. this comes handy if content is embedded inline i have to edit the file and replace or just add the 2nd part if …

Continue reading ‘extracting attachments from unix mail files’ »

bind9 on debian jessie ignores -4 in /etc/default/bind9 and tries to make lookups via ipv6

while checking one of the servers running debian jessie i’ve noticed that logs are full of: strange… didn’t i put “-4” in the /etc/default/bind9 ages ago? apparently i did but ps shows that it was ignored: a bit of googling told me it’s a known problem with systemd [sic!] – the /etc/default/bind9 is ignored. workaround? …

Continue reading ‘bind9 on debian jessie ignores -4 in /etc/default/bind9 and tries to make lookups via ipv6’ »

sphinx search 2.2.11 – column count does not match schema (expected 3, got 2)

i have a real-time sphinx that was configured in this way:\ it was updated using REPLACE INTO myrt VALUES(?,?)… until the day i’ve upgraded to 2.2.11. the update command started to give me: after a bit of investigation i’ve discovered that: with RT index it’s obligatory to have at least one attribute [not id], even …

Continue reading ‘sphinx search 2.2.11 – column count does not match schema (expected 3, got 2)’ »

dlink DXS-1210-12TC – web interface hanging

i’ve made a mistake again and bought a ‘cheap’, smart-managed network switch. dlink DXS-1210-12TC with 12 10gbase-t ports. and i got punished nearly immediately – the web interface of the device would hang on me after few days of uptime. sometimes it wasn’t even possible to log in, other times – i could log in …

Continue reading ‘dlink DXS-1210-12TC – web interface hanging’ »

“operator or administrator has refused the request (0x800710E0)” in the windows task scheduler

at work we have a Windows 2012 server [ more than one. sadly… ]. one of them had few nightly batch jobs started from the task scheduler. a certain task would fail occasionally and give us the “operator or administrator has refused the request (0x800710E0)” error. googling did not help much – it’s a server, …

Continue reading ‘“operator or administrator has refused the request (0x800710E0)” in the windows task scheduler’ »

tuning spmassasin to treat more harshly mails with forged sender’s address claiming to come from us

once in a while we get e-mails with spoofed sender’s address claiming to come from @ourorg.com. this can fool some of our users; outlook displaying an image of sender solely based on the From: field does not help here. some of those messages have different Return-Path pointing to @someotherscammy.site, other have it also pointing to …

Continue reading ‘tuning spmassasin to treat more harshly mails with forged sender’s address claiming to come from us’ »

drac5 / 6 with latest java 1.8.73

new java – new problems. “Error when reading form SSL socket connection” showed again after the upgrade to new java follow the steps from the earlier post and edit those in the C:\Program Files (x86)\Java\jre1.8.0_73\lib\security\java.security: also: go to the Control panel > java in the General tab: Settings > Delete files – mark all the …

Continue reading ‘drac5 / 6 with latest java 1.8.73’ »

Tenerifa

i’ve spent two weeks traveling around Tenerifa with my parents. we’ve seen a bit of the commercial-heavy south near Los Cristianos, rocky west coast in Los Gigantes, semi-rural areas of Icod de Vinos, a bit of Puerto de la Cruz and post-volcanic Teide and Puerto de Guimar. our hiking routes – below.

Dell’s 10gbase-t network cards on Intel’s x540 chips

we’re upgrading few servers at work to have 10gbit/s connectivity. to keep things familiar i’ve decided to stick with [power hungry and latency-inducing] cat7 copper cabling and 10gbase-t. there are few dell poweredge r620 and r630 to be upgraded. currently those have proprietary broadcom-based daughter-cards with 4x 1000base-t ports. i preferred to replace them with …

Continue reading ‘Dell’s 10gbase-t network cards on Intel’s x540 chips’ »

10 days in Albania

i’ve spent nearly two weeks traveling around Albania. i’ve started and ended the journey on a Greek island – Corfu [ i could not find any reasonably-priced flight from Berlin to Tirana ] and from there travelled with a ferry to Sarandë.

esxi 6.0: “create virtual machine snapshot” “a general system error occurred”

i’ve upgraded from esxi 5.5 to 6.0 a couple of servers. soon after i’ve discovered that ghettoVCB would fail on some of VMs while it worked fine on the others. i’ve started poking around and found out that for those VMs where backup failed i creation of snapshot would fail with the following error: while …

Continue reading ‘esxi 6.0: “create virtual machine snapshot” “a general system error occurred”’ »

“Waiting for TUN/TAP interface to come up” in OpenVPN logs under windows 10

i run windows 10 on one of the computers, it also has a ‘dial up’ openvpn – started from openvpn gui. it worked fine for a few days but then i started to see repeting in the logs and tunnel would not get up for 20-60 seconds. and sometimes even after that the right entries …

Continue reading ‘“Waiting for TUN/TAP interface to come up” in OpenVPN logs under windows 10’ »

more smaller icons in the windows 8 alt+tab / cool switch

recently i’ve moved from win7 to win8. i tend to have dozens of applications open and the default number of programs displayed after pressing alt+tab in win8 is too low. this registry change brings the win7-alike layout and adds more columns and rows: you might want to log off and log on for all the …

Continue reading ‘more smaller icons in the windows 8 alt+tab / cool switch’ »