In "html">Detection and removal of Microsoft's "webshells""This article describes how to use the Windwos firewall to close the port in"Terminal Port Limited IP"This article explains how to use WIndows Firewall to limit the possibility of only connecting to your terminal.
How to record logs?
Record discarded connections. Otherwise, the log cannot be installed on a 1 TB hard disk.
Open log
You will see this
# Version: 1.5
# Software: Microsoft Windows Firewall
# Time Format: Local
# Fields: date time action protocol src-ip dst-ip src-port dst-port size tcpflags tcpsyn tcpack tcpwin icmptype icmpcode info path
14:45:44 drop tcp 121.14.11.62 192.168.1.100 80 35106 40 A 3456172238 1370391300 27---RECEIVE
14:45:52 drop tcp 219.133.60.173 192.168.1.100 443 65124 169 AP 2086682883 794527494 24480---RECEIVE
Needless to say, the previous 14:45:44 is of course a date.
DROP means to discard data packets.
TCP connection in TCP Mode
121.14.11.62 192.168.1.100 80
This 121.14.11.62 is the connector IP address 192.168.1.100 is the local IP address 80 is the port
35106 40 A 3456172238 1370391300 27
These are the ports of the other party.
RECEIVE refers to the inbound package. If it is SEND, it is your outbound package.
By analyzing these logs, you can find potential threats, such as who tries to connect to your terminal port
The connection terminal is purposeful.
1. Bored people blind
2. You have successfully obtained the permission (or a social worker) and want to access the server through the terminal.