Configurer la DMZ sur une BBox Sensation

Un petit article, plus pour le troll qu’autre chose … Depuis que je suis passé à la fibre Bouygues je dévouvre la bbox sensation et son niveau de bug jamais atteind par ce type d’équipement … Aujourd’hui après un reset factory default (seul moyen pour réactivé le Wifi une fois désactivé), j’ai souhaité configuré la DMZ pour ne pas avoir à recommencer la configuration NAT un peu plus longue.

J’avais précédemment rencontré des problèmes que j’avais attribué au fait d’avoir changer l’adresse IP par défaut. Il n’en est en fait rien : la fonctionnalité ne mache simplement pas, tout du moins sur firefox ou safari. Le Javascrit executé ne savant visiblement pas lire le champ prérempli contenant l’IP cible. Ainsi un joli message vous indique que tous les champs ne sont pas rempli et la validation est impossible.

J’en suis donc passé par FireBug : la methode est simple (enfin si l’on veut)

1. Aller sur la page DMZ, se loguer en lançant firefox et activant l’onglet JS

2. Recherche la fonction OnSubmit()

function onSubmit()
{
   if (element('displayIP').style.display == '') { 
      var ip = '';
      writeConfig(false,ip);
   } else { 
      var ip = checkInput(false);
      if (ip)
            writeConfig(true,ip);
   }
}

3. Mettre un point d’arret dessus
4. Exécuter jusqu’à la ligne if(ip)
5. Modifier la variable IP pour lui mettre l’IP cible ex : “192.168.1.253”
6. Continuer l’exécution

Après l’exécution de la fonction, si vous revenez sur l’onglet DMZ, vous verez que celle-ci est activée.

Après, si ca ne marche pas, il ne faut peut etre pas jeter la pierre à Bouygues … ils ont peut etre testé avec IE6, qui sait !

 

 

PirateBox upgrade to Forban

I’m looking to upgrade my two pirate box to test the mesh network forban between the two. Apparently, this will slow down the device as the TP Link small devices are not so powerful, but i like the idea to be able to create mesh network between piratebox. In my point of view it is the right way to make this project real.

I actually have my two piratebox configured in version 0.5, i’ll firstly update them to the latest version, then add the Forban tool following Matthias’s materials.

I’ll upgrade my TP Link Mr3020 and TP Link MR3040.

Continue reading

Search strings in a binary file

A simple way to get strings from a binary file on Linux, use the od command with -S option.

od -S 6 file.bin

will print all the strings with at least 6 printable chars

 

Understand Oracle Fusion Application topology

Oracle fusion application is based on a large group of components like weblogic servers, databases, identity modules and so one. I’ll try in this article to explain how they are used and for what purpose.

Continue reading

WordPress can’t establish connection with DB

I just got an error message coming from wordpress saying on the index page that the connection to the database is not possible. I expected a problem in the connection chain but the real issue was related to a corrupted table in the database.

This as been fixed by repairing this table. So take care of the messages that can be wrong in the index page. The message in the admin index page was better concerning this point.

Restoring a grub2 bootloader broken

After I had to change a hard drive for another my linux Opensuse 12.2 grub bootloader was broken, here are some of the learning of this debugging phase :

– Restore grub to the new disk

– Start kernel manually

– Fix hard drive references

At the end, the process to recreate the bootloader and particularly to recreate the initrd file was broken, and I assume bugged. To really make it works, I had to update the whole Linux and again at the end of the process the booloader based on grub2 was impossible to execute. The solution was to select Grub (version 1) and it worked. I assume it was possible before update the whole distribution to use yast2 booloader and choose grub instead of grub2.

When you get a message like waiting for device … to apear at boot, it may be because of the initrd does not contain the right modules to access the hard drive. It appears when the motherboard has been changed.

This article is mostly notes taken during this debugging phase … so do not consider it as an howto but as a list of command and possible way to debug this kind of issues…

Continue reading

Promiscious mode wifi capture on iMac with Atheros 5416

Sound a old hardware, but as it is not the first time I have issue to dump (tcpdump or wireshark) wifi connection on promiscuous mode, I prefer to write it once of all … It is not working !!!

If any of you have a solution to make it works, I’ll be happy to update this post. For the others, I expect you will loss less time searching and trying.

I’ve try to change the rights on the /dev/bfp* devices

I’ve try to use tcpdump -i en1 host xx.xx.xx.xx instead of wireshark

And at the end, I finally just got the broadcast traffic and the local traffic.

 

HowTo synchronize two Linux server using rsync over ssh

When your need to replicate data from one server to another, the rsync solution is usefull. It works over ssh and you do not really have any specific thing to configure. Here are the options to be used to get a full copy with all the rights and ownership replicated :

 rsync -P -azc src_files_or_dir user@dest_server_ip:/dest_server_dir/

This works if the destination server have ssh open on port 22. If it is not the case another set of options is required :

rsync -P -azc -e "ssh -p dest_port" src_files_or_dir user@dest_server_ip:/dest_server_dir/

Hope it’ll help ! fro sure it will be a good reminder for me 😉