July 2010
M T W T F S S
« Jun    
 1234
567891011
12131415161718
19202122232425
262728293031  
86

Categories

Archives

[one-liner]: Port Forwarding Using PuTTY

Here’s a little trick that I learned how to do the other day while at work. I’ve done this before using ssh in a linux terminal but hadn’t had the chance to actually do it from a windows box using PuTTY.

Objective

To access a web server (on a remote linux box) which is listening on port 80 through an ssh connection. We want to access the web server through port 10001 on the localhost. This can be accomplished by mapping localhost’s port 10001 to port 80 on the remote host.

Here’s a diagram that attempts to represent what’s going on with the ports, the hosts, and the ssh connection.

ports diagram

ports diagram

Setup

In this scenario we have 2 hosts, the local host (i.e. localhost) and the remote host (homer). Running PuTTY on the localhost, we specify that we want to login to homer as a user on that system, i.e. root, for example. It doesn’t have to be root, this just happens to be the user that I’m using in this example.

putty dialog #1

putty dialog #1

Next in the PuTTY Configuration dialog box, expand the category SSH, and select the category Tunnels. In Tunnels’ configuration, specify the Source port, 10001, and the Destination, homer:80. Then click the Add button.

putty dialog #2

putty dialog #2


…. Continue reading → [one-liner]: Port Forwarding Using PuTTY »»

wavemon – ncurses-based Monitoring Application for Wireless Network Devices

Description

I recently came across this handy ncurses-based tool called wavemon for monitoring the status of both the wireless networks around my laptop as well as my wireless card. It offers most of the features that you’d find in any equivalent GUI. The impressive thing here is that all these features are made available in a terminal window.

Here’s a quick run down of features:

  • overview screen, displaying all important information like device configuration, encryption and power management parameters and network information at once
  • adaptive level bargraphs for link quality, signal/noise strength and signal-to-noise ratio
  • customizeable “level alarm” feature that notices the user of changes in signal level strength audibly and/or visually
  • full-screen level histogram displaying signal/noise levels and SNR
  • list of access points in range
  • menu-based configuration from within the program

Installation

On my Fedora 10 box wavemon was available from the standard repository. So installation was a snap.

1
yum install wavemon

Usage

To run wavemon, simply type wavemon in your terminal.

1
wavemon

Screenshots

wavemon Info Tab

wavemon Info Tab

wavemon Level Histogram

wavemon Level Histogram

I tend to spend a lot of time in terminal windows so I’m always glad when I find yet another ncurses-based app that gives me the same feature offerings as a heavier GUI.

mtr – A Network Diagnostic Tool

Description

I recently found out about this tool from a buddy of mine at work. It’s miles more useful than just a vanilla traceroute. It’s great for diagnosing a route between yourself and another computer that is either slow or overloaded. It is a curses based app that runs very nicely in a console or shell.

Example #1

Trace all the routes between myself and www.google.com

mtr www.google.com
screenshot #1 of mtr

screenshot #1 of mtr


…. Continue reading → mtr – A Network Diagnostic Tool »»