Tuesday, November 30, 2010

Madrid Linux User's Group Meeting

Ok, let's meet at 8 p.m. on the 2 (second) floor, Thursday in Café Comercial, Metro Bilbao, Glorieta Bilbao, 7

Monday, November 29, 2010

Quick Reference PDF

While looking for a quickly tutorial on python and glade I found something else that is quite interesting...

I'm putting a link to the quick reference guide that you can put up on the wall.


Saturday, November 27, 2010

Events That We Could Go To


I thought I would put down some event websites that I found.

Interesting Ubuntu Sticker

So I went to the UPM polytechnical university today to study in the library, they've got free WIFI there too..

The funny thing is that I saw a sticker on one of the students lockers that said:

Ubuntu, Linux for humans.

Also, there was a lot of IEEE computer society stuff there.

Interesting place!!

Friday, November 26, 2010

Multi Router Looking Glass

Objective: create a web interface for viewing routing tables and other routing commands.

I have chosen John Fraizer's Multi Router Looking Glass (a working example can be seen at RIPE's Routing Information Service page). The latest version of the software can be downloaded at: http://www.op-sec.us/ .
Basically the software consists of a cgi script to place in your apache server cgi-bin and a couple of perl & bash scripts. There is also code to make fastping, an alternative to ping. I just used plain old ping in my setup.

CPAN Perl Module: First thing we need is the Perl "Network::Telent::Cisco" module to allow the main script to communicate via telnet to our network equipment. SSH is available via the "Network::SSH::Perl" module, however I will not cover this here.

Access your CPAN shell:

$ perl -MCPAN -e shell

Note: If this is the first time you have run this command you will have to configure CPAN.

Now install "Network::Telnet::Cisco" module.

cpan> install Net::Telnet::Cisco

With this done all we need is a little file keeping to get our program into place. From our downloaded and extracted tar.gz folder issue the following commands:

cp index.cgi /usr/local/www/apache22/cgi-bin/
chmod +x /usr/local/www/apache22/cgi-bin/index.cgi
cp fping1 ztr ztraceroute /usr/local/bin
chmod +x /usr/local/bin/fping1 /usr/local/bin/ztr /usr/local/bin/ztraceroute
cp mrlg.conf.sample /etc/mrlg.conf

Note: These are for FreeBSD, your directory structure may vary.
Now, we need to edit fping1, ztr & ztraceroute to make sure all paths within these files are correct for your system. For FreeBSD I had to edit paths to bash & traceroute, also exchange fastping for ping and its's correct path.

mrlg.conf set up:
To get anything out of your index.cgi, ie. MRLG, you need to config /etc/mrlg.conf.
First, we have to tell MRLG the host details we will be running MRLG on.

## Set the URL for the location of the looking-glass....

Secondly, we can amend a router to the details of one of our local routers.

$::Routers{'Folkestone-AS2'} = {
comment => 'Cisco 2600 Series',
server => '',
use_port => '23',
login_pass => 'cisco',
full_tables => '1',
cisco => '1',
debug => "0",

That is all we need to get an interface into our routers as demonstrated below.

The conf file has lots of settings not discussed here but which can be very useful so I would advise this be your first point of call if you decide to install MRLG.

Madrid Linux User's Group's Last Meeting

We had a good meeting yesterday. Tied up some loose ends and now we can start trying to get more people together.