LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-10-2009, 11:06 AM   #1
Gozer404
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:


ssh -N -a -2 -C -x -L 8080:PXHOST:PXPORT INTERNUSER@INTERNHOST


- 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 ?

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

Rep: Reputation: 17
Isn't squid logging this info?
 
Old 07-15-2009, 12:22 PM   #3
Gozer404
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...
 
  


Reply

Tags
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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