M
M
mr_blond972016-03-07 23:26:46
iptables
mr_blond97, 2016-03-07 23:26:46

How to find out the number of current connections in windows 2012 R2?

How to solve the following tasks in windows 2012 R2:
1) find out the number of current connections on ports 443 and 80
2) find out from which IP addresses the server receives requests
3) block unwanted IP addresses from which requests come
In linux, this is done like this:

netstat -na | grep ':443 '
iptables -A INPUT -s IP-j DROP

How is this done in window 2012? Is it possible to get by with standard windows tools for these purposes, or do I need to install any programs?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey S., 2016-03-07
@mr_blond97

netstat -na | findstr ^:443;)

netsh advfirewall firewall add rule name="Block IP" dir=in interface=any action=block remoteip=192.168.1.123/32

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question