How to Monitor SSH port forwarded traffic

This is a discussion on How to Monitor SSH port forwarded traffic within the Linux Networking forums, part of the Linux Forums category; I have a box which people may use to proxy their web traffic through using SSH dynamic port forwarding (ssh -...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-18-2006
A
 
Posts: n/a
Default How to Monitor SSH port forwarded traffic

I have a box which people may use to proxy their web traffic through
using SSH dynamic port forwarding (ssh -D). Is there a way that I can
monitor/capture just that traffic, to exclude other traffic passing over
that interface?
Reply With Quote
  #2 (permalink)  
Old 10-18-2006
A
 
Posts: n/a
Default Re: How to Monitor SSH port forwarded traffic

A wrote:
> I have a box which people may use to proxy their web traffic through
> using SSH dynamic port forwarding (ssh -D). Is there a way that I can
> monitor/capture just that traffic, to exclude other traffic passing over
> that interface?

(apologies if this message appeared 3 times. My browser kept reporting
that sending failed so I kept trying, then I noticed it showed up in
google groups. I have attempted to cancel the extra messages.)
Reply With Quote
  #3 (permalink)  
Old 10-18-2006
Balwinder S \bsd\ Dheeman
 
Posts: n/a
Default Re: How to Monitor SSH port forwarded traffic

On 10/18/2006 06:33 AM, A wrote:
> A wrote:
>> I have a box which people may use to proxy their web traffic through
>> using SSH dynamic port forwarding (ssh -D). Is there a way that I can
>> monitor/capture just that traffic, to exclude other traffic passing over
>> that interface?

> (apologies if this message appeared 3 times. My browser kept reporting
> that sending failed so I kept trying, then I noticed it showed up in
> google groups. I have attempted to cancel the extra messages.)


User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1b2)
Gecko/20060823 SeaMonkey/1.1a

You have been posting all these from a Linux machine, why don't you
learn to user some real new-reader; try thunderbird, tin, slrn, pan,
knode, xnews and, or trn in addition to mozilla/seamonkey mail. The
slrnpull and, or leafnode can help you work offline.

--
Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709
Anu's Linux@HOME Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India Distros: Ubuntu, Fedora, Knoppix
Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/
Reply With Quote
  #4 (permalink)  
Old 10-18-2006
Chris Davies
 
Posts: n/a
Default Re: How to Monitor SSH port forwarded traffic

A <A@a.a> wrote:
> I have a box which people may use to proxy their web traffic through
> using SSH dynamic port forwarding (ssh -D). Is there a way that I can
> monitor/capture just that traffic, to exclude other traffic passing over
> that interface?


Well, you know what port you've assigned to -D so you can listen to it.
Is this what you're after?

ssh -D 1080 -n -N some.remote.host # Maybe also -f or -v
tshark -pi any port 1080 # Or tethereal

The ssh -v option will let you see what ssh is doing. The tshark/tethereal
command dumps the network traffic, and since it sees it's on the SOCKS
port 1080 it applies SOCKS protocol translation to the traffic for you.

Chris
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0