Configuring JAJC to work through an ssh tunnel
Valid HTML 4.01!

LINKS

Jabber
it's new, it's hot, and it rocks... It's the new protocol for IM that

JAJC
One of the many jabber clients around, but this is one of my favourites because of the many functions and a nice user interface.
Welcome...        : BLOG home : Palm :
Introduction

For those of you who don't already know what JAJC is, or even what jabber is, it may be useful to check out the links on the right side of this page. What this page is really intended for is people with a strict firewall configuration (mostly at school or at work) who can't connect to their favourite IM service.
I will give an example of a basic setup with the following parameters:
  • username: gorby
  • server: amessage.info
  • server port: 5222
Requirements

For this to work you need the following:
  • ssh client (I suggest putty)
  • unix/linux box outside the firewall where you have a shell account with ssh access
  • the firewall must allow outgoing ssh connections (you can also try alternate port numbers, as the higher numbered ports are often open for outgoing traffic.
Step one - configure putty for port forwarding.
  1. After finishing the basic configuration of the connection, you have to go to Connection --> SSH --> Tunnels.
  2. Enter the port the ssh client will use for forwarding in the 'Source port' field. I use the same port as the one the jabber server I'm using is listening to (5222).
  3. Enter the name of the server you want to connect to and the port that server is listening on in the destination field, separated by a colon. In my example, this is 'amessage.info:5222'.
  4. Click on the Add button
The result should now look like this
    screenshot of the putty configuration
Don't forget to go to Session, and save your configuration for this connection!

Step two - configure JAJC
  1. start JAJC, and create a new account or edit the current one.
  2. enter your username in the corresponding field
  3. enter the name of the server you will be connecting to
    JAJC screenshot - account configuration

And then the final step... the connection tab
  1. make sure the 'connect by IP' checkbox is checked
  2. set the 'Server IP' to 127.0.0.1
  3. set the 'Server port' to the one the ssh client is listening on (the number in the Lxxxx, whic in my putty screenshot is 5222)
  4. click on OK
     JAJC screenshot - connection setup

Well, that should do the trick. If it doesn't... try to get your config as closely as possible to mine, and fee free to email me if you can't get it to work

Greetz,
    GORby



Apache2 Logo