Monthly Archives: January 2012

modding “das keyboard” #2

Here is a status update of my previous post modding “das keyboard”: After my order of the soft landing pads got lost on its way from America to Munich I gave the o-ring mod a try. It works like a charm and o-rings are available in Germany so shipping was not a problem this time.

In case someone is interested in the details: I used the default rubber o-rings sized 4.76 x 1.78 mm. I ordered them in a German web shop which sells them under the following title: “Präzisions-O-Ring 4.76 x 1.78 mm NBR70″.

new design for justinbieberweb.com

Yesterday someone told me about the new design of justinbieberweb.com. So here is the old design:

google website preview

google website preview

And here comes the new one:

webiste screenshot

webiste screenshot

Google has already updated some of its indexes…

updated google website preview

updated google website preview

updated google website preview

updated google website preview

How to prevent this in the future: OWASP Top 10.

disable ipv6 on debian squeeze

There should be 3 different ways to disable IPv4 but unfortunately only one of them works: The boot command line one. It works by adding a simple ipv6.disable=1 to the linux boot parameters. Here is how to do it using grub 2:

  • edit the file
    /etc/default/grub
  • find the line starting with
    GRUB_CMDLINE_LINUX
  • if you never changed anything it will look like this:
    GRUB_CMDLINE_LINUX=""
  • change this line to contain the
    ipv6.disable=1

    parameter

  • if you never changed anything it should look like this:
    GRUB_CMDLINE_LINUX="ipv6.disable=1"
  • type the following into the command line as root :
    update-grub
  • Reboot your machine

yaf iptables reset script

Even after 3 minutes googling I was not able to find a complete iptables reset script. This post tries to change this situation:

#!/bin/bash
echo "Disabling IPv4 packet forwarding..."
echo 0 > /proc/sys/net/ipv4/ip_forward

echo "Flushing chains..."
iptables -F
iptables -t nat -F
iptables -t mangle -F

echo "Deleting user defined chains..."
iptables -X
iptables -t nat -X
iptables -t mangle -X

echo "Setting default chain policies..."
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -P OUTPUT ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t mangle -P INPUT ACCEPT
iptables -t mangle -P FORWARD ACCEPT
iptables -t mangle -P OUTPUT ACCEPT
iptables -t mangle -P PREROUTING ACCEPT
iptables -t mangle -P POSTROUTING ACCEPT

Anybody interested in building a simple NAT gateway will find the following lines quite helpful:

echo "Enabling IPv4 packet forwarding..."
echo 1 > /proc/sys/net/ipv4/ip_forward

echo "Enabling SNAT of outgoing packages..."
iptables -t nat -A POSTROUTING -o XXX -j MASQUERADE

Don’t forget to replace XXX with your outgoing interface name eg. ppp0.

This site is protected by Comment SPAM Wiper.