Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 07-10-2009, 11:06 AM   #1
LQ Newbie
Registered: Aug 2007
Location: Toulouse - France
Distribution: Fedora 11
Posts: 6

Rep: Reputation: 0
ssh port forwarding as a proxy server: how to be aware of the current connections

Here's the simple story:

- corporate proxy on host PXHOST, port PXPORT (squid server on port 3128)
- a host (INTERNHOST) in the network having access to this proxy (linux machine) with user INTERNUSER
- a desktop running WinXP but with Cygwin installed.
- to ease the configuration of all sorts of sw (firefox, wget and such), as PXHOST can change from time to time a local proxy (http/https/ftp only) on port 8080 is running in the local PC on cygwin with ssh:


- magic: everything works fine

Now the question is: as I use this proxy configuration for a lot of software running in parallel I want to be able to know which connections are currently opened : is it possible to generate a log showing which URL is requested through this ssh proxy? I want to be able to spy all outgoing connections using this proxy: some clues ?

Old 07-10-2009, 07:10 PM   #2
Registered: Jun 2009
Distribution: Slackware
Posts: 62

Rep: Reputation: 17
Isn't squid logging this info?
Old 07-15-2009, 12:22 PM   #3
LQ Newbie
Registered: Aug 2007
Location: Toulouse - France
Distribution: Fedora 11
Posts: 6

Original Poster
Rep: Reputation: 0
No it's not possible, because squid is running on a "corporate" machine and I don't have access to it.

The question is more: is there a possibility with the ssh options to display the current active connections (in the case of port forwarding). Or maybe there is a fork of ssh somewhere to do this (BTW I may have the solution by modifying ssh myself ).

Thx for the reply...


ssh, ssh forwarding

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Allowing certain ports and port forwarding without messing up current config media-c Linux - Newbie 2 01-19-2009 02:14 PM
Proxy/port forwarding meldron Linux - Networking 1 07-18-2008 02:17 PM
apache proxy and port forwarding Furlinastis Linux - Networking 0 03-26-2007 11:42 AM
SSH dynamic port forwarding -- Firefox does not see such a PROXY geokat Linux - Networking 0 05-01-2005 08:03 AM
Help! Two internet connections routing + port forwarding? lakoff Linux - Networking 2 09-29-2003 07:27 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration