Archive

Archive for the ‘Network/Web’ Category

v4l2grab Version 0.2

June 9th, 2009 2 comments

A few weeks ago, I published my v4l2grab program to grab JPEGs from V4l2 devices.

Today I got an request by email to include support for integer conversion from YUV422 to RGB as descriped by Wikipedia. So I included it and did some style adjustments, too.

You can download it here: v4l2grab Version 0.2 Read more…

Categories: Linux, Software, twam.info Tags: ,

Ethernet bonding with Linux and 802.3ad

May 6th, 2009 No comments

2 NIC + SwitchNowadays, most desktop mainboards provide more than one gigabit ethernet port. Connecting them both to the same switch causes most Linux distros by default to get a individual IP on each device and route traffic only on the primary device (based on device metric) or round-robin. A single connection always starts at one IP and so all traffic goes through one device, limiting maximum bandwidth to 1 GBit.

Here comes bonding (sometimes called (port) trunking or link aggregation) to play. It connects two ore more ethernet ports to one virtual port with only one MAC and so mostly one IP address. Wheres earlier only two hosts (with the same OS running) or two switches (from the same vendor) could be connected, nowadays there’s a standard protocol which makes it easy: LACP which is part of IEEE 802.3ad. Read more…

commenting iptables rules

April 7th, 2009 1 comment

I often use iptables (or ip6tables, the IPv6 version of iptables) to implemented firewall rules on my linux systems.

In earlier times I used a commented bash script to setup the rules after booting, but using Gentoo nowadays there is a nice init script saving and restoring my tables. Using this I stopped commenting the firewall rules, but yesterday I found a very nice solution for this problem.

Iptables has a special “match” for comments. Read more…

Categories: Gentoo, Linux, Network/Web Tags: ,

wget and IPv6

April 5th, 2009 No comments

wget is THE standard Linux tool to download files via http(s) or ftp on console and of course Gentoo’s emerge is using wget as well.

But wget prefers IPv4 over IPv6, meaning if your download mirror supports IPv6, wget doesn’t use it by default. You can change this behavior by setting

prefer-family = IPv6

either in /etc/wgetrc for everybody or in $HOME/.wgetrc for a user only.

So enable it and tell portage to use an IPv6 enabled mirror, by setting GENTOO_MIRROR in /etc/make.conf. You’ll find a list of IPv6 capable mirrors on gentoo.org (look for mirrors marked with *).

Categories: Network/Web, Software Tags: , , ,

twam.info via IPv6

April 4th, 2009 No comments

Dank eines SiXXs Static-Tunnels ist jetzt auch twam.info per IPv6 erreichbar. Alle wichtigen Dienste sollten erreichbar sein.

server ~ # dig AAAA twam.info
; <<>> DiG 9.6.0-P1 <<>> AAAA twam.info
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58653
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;twam.info.                     IN      AAAA

;; ANSWER SECTION:
twam.info.              600     IN      AAAA    2a01:198:200:436::2

Ich bin gespannt, wieviele der Verbindungen jetzt über IPv6 kommen.

Categories: Network/Web, twam.info Tags: ,

Das Ende des Internets …

April 3rd, 2009 No comments

… wie wir es kennen naht. :) Das die IPv4-Adresse knapp sind ist unter Computer-Experten weitläufig bekannt.

Heute habe ich ein nettes Skript entdeckt, welches das Datum berechnet, an dem alle IPv4 Adressen belegt sind. Das will ich natürlich nicht vorenthalten :)

Das die IANA wie im Februar letztes Jahres wieder alte unbenutzte Netze findet und frei gibt ist unwahrscheinlich. Also wird es wirklich dringend Zeit auf IPv6 zu migrieren.

Categories: Network/Web Tags:

ShowIP Plugin

April 2nd, 2009 1 comment

Um Websurfer auf IPv6 aufmerksam zu machen habe ich heute mein erstes Wordpress Plugin geschrieben. Es zeigt Client-Informationen wie IP-Adresse, Ort, Browser und System an. Ich hab zwar ein paar wenige Plugins gefunden, die das schon machen, allerdings binden sie nur ein Bild von einem Server ein, der die ganze Ausgabe übernimmt und meist auch noch irgendwelche Powered-By Links einblendet.

Außer der reinen Darstellung der Information kann das Addon auch auf bestimmte Dinge reagieren. So kann es z.B. warnen falls der Browser nicht aktuell ist oder noch IPv4 verwendet wird. Bei was gewarnt werden soll und was überhaupt angezeigt werden soll, kann einfach im Administrationsbereich eingestellt werden.

Zur Bestimmung des Browser habe ich dazu Browscap verwendet. Die Bestimmung des Ortes aus der IP-Adresse übernimmt GeoIP.

Das Plugin läßt sich rechts oben in Aktion sehen. Es warnt im Moment bei alten Browsern. Die IPv4 Warnung ist im Moment noch deaktiviert, solange die IPv6 Anbindung des Servers noch nicht vollständig ausgetestet ist.

Categories: Network/Web, Software Tags: , , ,

Google over IPv6

April 2nd, 2009 No comments

Google’s Websuche ist bisher via ipv6.google.com auch über IPv6 zu erreichen. Alle anderen Services haben allerdings noch keinen AAAA Eintrag im DNS.

Im Rahmen des Google over IPv6 Programms bietet Google aber größeren IPv6-Providern die Möglichkeit ihren DNS als “trusted tester” zu registrieren und dann für alle Google Services AAAA Records bereit zustellen.

SiXXs bietet nun seit gestern die Möglichkeit, dies über ihre DNS Server zu nutzen, wenn man sie aus einem SiXXs-Subnet anfragt. Das musste natürlich sofort getestet werden und siehe da:

server ~ # dig AAAA www.google.de
; <<>> DiG 9.6.0-P1 <<>> AAAA www.google.de
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32996
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 13, ADDITIONAL: 12

;; QUESTION SECTION:
;www.google.de.                 IN      AAAA

;; ANSWER SECTION:
www.google.de.          303016  IN      CNAME   www.google.com.
www.google.com.         391617  IN      CNAME   www.l.google.com.
www.l.google.com.       284     IN      AAAA    2001:4860:a005::68

Ich bin gespannt, wann andere große Websiten nachziehen.

Categories: Network/Web, Software Tags: , , ,

IPv6 @ Home

March 31st, 2009 No comments

Via SiXXs können auch Privatpersonen ohne natives IPv6 Internet Zugang zum “neuen” Netz erhalten. Registriert man sich auf der Seite kann ein IPv6 Tunnel unter anderem via AYIYA realisiert werden, welches sogar NAT unterstützt und somit auf fast allen PC funktionieren sollte.

Das Programm AICCU initialisiert die Tunnel und benötigt als Konfiguration lediglich SiXXs-Benutzername und Passwort sowie eine Tunnel Nummer. Das Programm gibt es als net-misc/aiccu als Ebuild für Gentoo.

Ist der Tunnel erfolgreich eingerichtet kann auch ein IPv6 Subnet beantragt werden und weitere PCs im Heimnetz ans IPv6 Netz zu bekommen. Der Gentoo-IPv6-Router-Guide erklärt wie man radvd und dhcpv6 konfiguriert.

Categories: Gentoo, Network/Web, Software Tags: , ,

Blog Launch

March 31st, 2009 No comments

Hallo allerseits!

Seit heute gibt es twam.info in neuem Look und in Blog-Form. Die meisten alten Einträge habe ich konvertiert.

Viel Spaß damit!

Categories: twam.info Tags: