Oct
25
Setting lost routes
October 25, 2009 | Leave a Comment
Sometimes VPN softwares between untrusted sites (common in short companies) face the problem of loosing routes when one or other side has the link broken.
The script below help us to register these routes again and can be scheduled.
It makes use of arrays, and not necessarily the list of gateways needs to be in numerical order. Click on the image below to visualize it in a friendly size.

I have tested the script under Linux and OpenVPN.
You will need to make changes (perhaps) if intend run it in other systems (e.g.: FreeBSD), because the route command can present different stdout messages.
Oct
25
How to convert .vdi image files to .vmdk
October 25, 2009 | Leave a Comment
I think that this proceeding will be useful for anyone desiring analyse the performance of a system under VMWare.
If you have already setup your environment to run with VirtualBox and intend to test it under VMWare, the tasks consist of: a) convert .vdi image file to raw format; b) convert the resulting file in raw format to .vmdk.
I have used two tools: vboxmanage.exe (native of VirtualBox) and qemu-img.exe (native of qemu Project). The first tool permits to convert a .vdi file to raw format. The second tool permits to convert a file in raw format to .vmdk (used in VMWare). The command lines follow below:
- vboxmanage internalcommands image.vdi image.raw
- qemu-img convert image.raw -O vmdk image.vmdk
PS: considering I have executed all commands using Windows, I believe that they will be functional under other systems too because qemu and VirtualBox run on other architectures. There is a qemu implementation for Windows available here.
Other related links:
Oct
21
WSH and scheduled tasks
October 21, 2009 | Leave a Comment
Some days ago in my work a costumer needed a solution based on WSH(Windows Script Host). The main objetive was to test a established IPSec tunnel. Because the firewall was not part of VPN Domains, ICMP tests would reveal if the tunnel was active or not. Observe the code below:

Save the code under a .vbs name extension and get the results with cscript or wscript interpreters. Click on the image to visualize it in a friendly size.
Not necessarily SMTP service needs to run on a localserver. You can authenticate yourself in any other place if you have an account.
Oct
18
Selo para produção em série de foguete nacional
October 18, 2009 | Leave a Comment
A Aeronáutica anunciou dia 16/10/2009 a certificação do foguete VSB-30, usado para testes cientÃficos em ambiente de microgravidade. A idéia é que a empresa selecionada para produzir o foguete repasse ao governo uma porcentagem dos lucros obtidos com a comercialização.
Esta certificação é um selo de qualidade que permite negociações em âmbito internacional. O VSB-30 é resultado de uma parceria entre o Brasil e a Agência Espacial Alemã iniciada em 2001. Ele tem carga útil de 400kg e atinge até 250km de altura.

Oct
10
Youssou N’Dour - 7 Seconds
October 10, 2009 | Leave a Comment
To watch please Click Here or above because the owner has applied restrictions.
Oct
3
Amy Winehouse - Tears dry on their own
October 3, 2009 | Leave a Comment
To watch please Click Here or above because the owner has applied restrictions.