?
Solved

Log All Outgoing Connections

Posted on 2010-09-21
2
Medium Priority
?
656 Views
Last Modified: 2012-05-10
I need to know what external connections (WAN) a server is using over a period of a day. I thought of using Wireshark or netstat >textfile or even windows firewall but am not sure how the best way would be. Once I have a days worth I can then create static routes for these connections and remove the default gateway to restrict the servers outbound connections.
0
Comment
Question by:DowntownIT
2 Comments
 
LVL 38

Accepted Solution

by:
Rich Rumble earned 1000 total points
ID: 33731715
You can certainly use
netstat -abnt 10 |findstr /rv 127.0.0.1 | findstr ESTABLISHED >somefile.txt
 to query netstat every 10 seconds breaking down ip:port. Creating static routes and removing the gateway are not how you would allow/restrict access to these sites. Wireshark may better suited for the task as you can use better expressions to filter what you want to capture.

You can use a wireshark capture filter of:
tcp or udp and not dst net 10.0.0.0/8
if your network is using 10.x.x.x, or 192.168.0.0/16 if your using that rfc1918 subnet.
-rich
0
 
LVL 71

Assisted Solution

by:Qlemo
Qlemo earned 1000 total points
ID: 33732291
To deny/allow traffic you usually configure the integrated firewall. And even that will not help you much when you allow only based on IP address, as IP addresses might change (eg. automated update services use akamai servers, which are *a lot*). You will need to allow all traffic from particular services and executables for that reason.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question