Simple Perl script to stress apache

I’ve made this to stress this blog a little, and see how many requests could it handle.

#!/usr/bin/perl

use strict;
use LWP::Simple;
use LWP::UserAgent;
use Parallel::ForkManager;

my $pm = new Parallel::ForkManager(3);

for (1 .. 10_000) {
	my $pid = $pm->start and next;
	my $ua = new LWP::UserAgent;
	print "Request $_\n";
	$ua->timeout(120);
	my $url='http://www.rocchi.us/';
	my $request = new HTTP::Request('GET', $url);
	my $response = $ua->request($request);
	my $content = $response->content();
	#print $content;
	$pm->finish;
}

Bye

WebGL Web Graphics Library and Quake

The seems to be awesome! I’m going to include a little description from wikipedia, and a video from youtube. I’ve founded this very interesting, but I’ve some dubts about the performance… We’ll see!

From Wikipedia:

WebGL (Web Graphics Library) is an in-development standard specification defining a JavaScript API for writing web applications utilizing hardware accelerated 3D graphics.[1] It achieves this without the need for browser plug-ins, on any platform that has a compatible browser implementation.

Technical Details:

Technically it is a binding for JavaScript to native OpenGL ES 2.0 implementations, to be built in to browsers. The WebGL specification itself is designed to mirror that of OpenGL ES 2.0. It is an extension of the canvas HTML5 element.

[youtube]http://www.youtube.com/watch?v=fyfu4OwjUEI[/youtube]

Esa CryoSat-2 Earth Explorer

This is a good news for the European Space Agency, it seems that they are doing something useful, I really hope that this Sat will bring some new information about the ice melting, although this is a well described thing caused due to the temperature rise up.
Anyway, I’ve attached in the following Iframe the page of the project.

[iframe http://www.esa.int/esaLP/ESAOMH1VMOC_LPcryosat_0.html 100% 600px]

Bye

DDoS mitigation with iptables

This script that I wrote, should mitigate a little DDoS directed to the server, I made this because on Darksin we receive many attacks, and I tried to mitigate them in order to permit us to log the traffic and find the botnet’s ips.
I reduced the number of syn accepted per second to 100, disabled ICMP and put in DROP every IP of knows attacker.
There also the rules to count the traffic for IspCP, without them it doesn’t work correctly.

Here is the script:
(more…)