amazon ip ranges in varnish

I just recently realized that amazon exposes all of their ip ranges in a easy to get json format here (https://ip-ranges.amazonaws.com/ip-ranges.json) you can also read the docs here (http://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html) So I made this python script to…

mtr

I just want to introduce you to nice little network diagnostic tool which combines ping and traceroute it does a traceroute and then repeatedly pings all the nodes along the route. use like this mtr 8.8.8.8…

Bash goodies

CONGRATULATIONS (insert a huge and very irritating blinking banner here) You are customer number $(zgrep /var/log/apache2/access.log*|wc -l) Today I'll share some funny and usefull bash goodies with you. Well actually to tell you the truth I really just want to document this for my future…

Restricting postfix destination domain

Postfix has alot of options and theres probably alot of other ways to do this also, but here's how I did. add this line to /etc/postfix/main.cf transport_maps = hash:/etc/postfix/transport then edit /etc/postfix/transport like this: example.com : * error: only specified destination domains are…

Setting up name server to manage .dk domain

So I have a .dk domain that I want to control and play with from bind, this is how I set it up. In order to manage a .dk domain you need your nameservers to be approved by dk-hostmaster.dk, you can apply for it here (it's free) You also…

ipcalc

A collegue of mine just recently told me about ipcalc, It's a little but usefull subnet calculator. Before ipcalc I used to do subnet calculations the analogue way (pen & paper) but this is just so much easier and its in color. Check it out :)…