Solved

Log All Outgoing Connections

Posted on 2010-09-21
2
596 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 250 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 68

Assisted Solution

by:Qlemo
Qlemo earned 250 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 Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
new to networking configuration 6 33
Expand C partition 13 20
AD Replications issues 12 46
Slow internet - due to unknown uploads 9 58
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now