Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've got a cheap VPS running Ubuntu 12.04 that I sometimes proxy web traffic through via SSH when I don't trust the network I'm on. I'd like to have a closer look at some of that traffic on occasion. Is there an easy way to log extra information about HTTP requests passing through sshd?

There's nothing else running on the server, so logging all the OS's incoming and outgoing traffic is also a viable solution. I don't really need the actual data itself logged, mostly just the headers.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You can install a proxy server like nginx on your vps to accept request from local port 8080. Then setup your ssh tunnel to nginx port. Then check nginx access log whenever you like.

share|improve this answer
    
Does an HTTP proxy still support remote DNS lookups? I tried Googling and wasn't quite able to tell from what I saw. One of the places I frequently connect from messes with DNS traffic, so proxies don't work properly unless they tunnel DNS lookups as well. –  Dan Dec 31 '12 at 21:42
    
If you are using firefox, you can give this a try. It is quite old though. It show you how to configure firefox proxy for both http(s) and dns. –  John Siu Dec 31 '12 at 22:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.