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

I have a box running Mikrotik RouterOS, which is set up to do transparent web proxying, as described here.

In short, this means that I have a firewall rule for destination NAT causing any port 80 traffic to get redirected to port 8080 on the router, which is received by the Mikrotik local web proxy. The local web proxy then makes the web request on the client's behalf, in this case to a parent web proxy server (which in turn does the real web request).

My question is, how will this two-part process get reported in the logging of traffic flow information (netflows)?

Looking at the logged information, what I seem to be seeing is this:

  • One flow recorded from client machine (private IP) to remote proxy (8080)
  • Another flow recorded from router to remote proxy (8080)

The original request that the client made to port 80 isn't recorded.

I want to write code to analyse traffic usage, so I want to be sure I'm not losing information if I discard the latter of these.

share|improve this question

1 Answer 1

You can check the URLs passed in the HTTP requests. If the URLs between the two flows match, the flows are just duplicates and you can simply discard one of them. The first flow is more meaningful to you as you said because it tells the client IP.

share|improve this answer
    
I'm not sure if I'm understanding you correctly, but the information that gets logged in the netflows doesn't tell me what was in the HTTP request, only the IP addresses that the flow was between. –  Tim Nov 28 '10 at 12:42
    
@Tim: Don't you have the URL logged also? Logging HTTP traffic usually includes the links (URLs) that the users have requested. –  Khaled Nov 28 '10 at 12:49
    
The logging here is via the Cisco netflows protocol, which as far as I'm aware only ever records the source and destination IP and port, and a couple of other such details. I could put a protocol analyser in the loop and see what's going on, but I'm not worried about the data actually being transferred (it works fine), only the data that's being logged via netflows. –  Tim Nov 28 '10 at 14:54
    
If you have the source/destination IPs and source/destination ports, this is enough to identify a unique connection. So, you can check the duplicate entries. –  Khaled Nov 28 '10 at 15:09

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.