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 ?