2004-02-14

An alle verängstigten Windows-User

Nachdem die aktuelle Viren-Welle gerade wieder ein wenig vorüber ist, hier ein Gedanke an alle von den Medien verunsicherten und verängstigten Windows-User:

Es gibt eine Welt ausserhalb von Microsoft-Produkten!

Schaut euch doch mal den Mozilla-Browser inklusive Mail und Chat an, oder, wers lieber einfacher mag, Firefox, den Browser, und Thunderbird, den Mail-Client; oder The Bat!, ein exzellenter Mail-Client!

Die Software-Welt ist voll von Alternativen, die ausserhalb der Microsoft-Monokultur leben und deshalb auch nicht unter deren Problemen leiden und trotzdem genau so gut oder besser funktionieren und Viren, Würmern und Trojanern usw. keine Angriffsfläche bieten!

Wer ganz wagemutig ist, kann sich ja vielleicht sogar einmal Knoppix herunterladen und erste Gehversuche mit Linux machen…

22:00 [/netz] Google Trackback

Setting up a 6to4 IPv6 tunnel with Debian

This entry in the changelog explains how to set up a 6to4 IPv6 tunnel. The article assumes that your computer has a static IPv4 address, which isn’t true in my case. That’s why I wrote the following script to generate the configuration dynamically:

#!/bin/sh -e

# Set up a 6to4 tunnel

# set -x
set -e

# Set the following to 'n' if you don't need routing
ROUTER=y

# Interface names
INTIF=eth0
EXTIF=eth1
TUNIF=sit1

# Network mask (Yay for 1.844E20 hosts on one IPv4 address!)
MASK=64

# Address mangling
IPv4="$(ifconfig $EXTIF | grep 'inet addr' | cut -d : -f2 | cut -d ' ' -f1)
PREFIX="$(printf '2002:%x%02x:%x%02x' $(echo $IPv4 | tr . ' '))"

EXTIPv6="$PREFIX::2"
INTIPv6="$PREFIX:1::1"

TUNNEL=192.88.99.1

echo "Local external IPv4 address: $IPv4, tunnel at $TUNNEL"
echo "IPv6 prefix: $PREFIX::, IPv6 address: $EXTIPv6/$MASK"

# Enable IPv6
lsmod | grep -q ^ipv6 || modprobe ipv6

# Delete the old tunnel
ifconfig | grep -q "$TUNIF" && ip tunnel del $TUNIF

# Create and activate a sit tunnel to our default endpoint
ip tunnel add $TUNIF mode sit remote $TUNNEL local $IPv4 ttl 64
ip link set $TUNIF up

# Give it an address
ip addr add $EXTIPv6/$MASK dev $TUNIF

# Declare the tunnel to be our IPv6 route to the outside
ip -6 route add 2000::/3 dev $TUNIF

# The rest is for routers only
if [ "$ROUTER" = y ]; then

    # Add an IPv6 address for the internal interface
    ip -6 addr add $INTIPv6/$MASK dev $INTIF

    # Create /etc/radvd.conf
    # Get $0's full pathname
    arg0=$(which ${0##*/})
    echo "# Auto-generated by $arg0 on $(date -Im)
#
# Do not edit, modify $arg0 instead

interface $INTIF
{
	AdvSendAdvert on;

	# Advertise at least every 45 seconds
	MaxRtrAdvInterval 45;

	prefix $INTIPv6/$MASK
	{
		# Very short lifetimes for dynamic addresses
		AdvValidLifetime 300;
		AdvPreferredLifetime 120;
	};
};" >/etc/radvd.conf

    # (Re)start radvd
    /etc/init.d/radvd restart || /etc/init.d/radvd start

    # Configure the kernel's IPv6 behaviour
    echo 0 > /proc/sys/net/ipv6/conf/all/autoconf
    echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra
    echo 0 > /proc/sys/net/ipv6/conf/all/accept_redirects
    echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
    echo 0 > /proc/sys/net/ipv6/conf/all/router_solicitations

else

    # Stop radvd
    /etc/init.d/radvd stop || true

    # Stop forwarding IPv6 packets
    echo 0 > /proc/sys/net/ipv6/conf/all/forwarding

fi

# show our addresses and routes
ip -6 addr show
ip -6 route show

15:40 [/software/debian] Google Trackback