I know that using IPSEC can only allow access from an IP address. Using netstat-an, you can see that an IP address is accessing port 3389 of my machine, I want to monitor and enable access from an IP address, and then trigger an alarm or input> *. txt...
Can you set up a firewall to allow a single IP address to connect to you by 3389?
Scripts are not omnipotent ......
I just read it. Indeed, windows Firewall can be recorded .. Close thank you...
Here is a work und.
1. Save the following code as a vbs file.Copy codeThe Code is as follows: Set obji = GetObject ("winmgmts: {impersonationLevel = impersonate }! Win32_Service = 'termservice '")
If obji. TotalSessions> 0 then
Wscript. echo "Warning: a remote user connection is in! "
End if
2. Place the above script in the scheduled task and run it every 10 minutes;
3. The principle of this method is very simple. If a user connects to the system, the total number of sessions will be greater than 1. An alarm is reported!