I'd like to block unused ports on my server so I monitor the ports with CurrPorts and I understand some processes like lsass.exe
have some dynamic ports e.g 49158,49976,... These ports might change after a service restart.
I studied the Best practices for firewall rules configuration so I'd like to permit used ports and deny the others by switch ACL
(Access Control List), For example:
switch(conf)>ip access-list extended Firewall
switch(conf-ipacc)>permit tcp any(source-ip) any(source-port) 192.168.5.10(server-ip) 53(server-local-port) priority 10
switch(conf-ipacc)>permit tcp any any 192.168.5.10 49158 priority 50
.
.
switch(conf-ipacc)>deny tcp any any 192.168.5.10 any priority 1000
Question:
What can I do for dynamic ports that are constantly changing?
OS: Windows Server 2012
Server IP address: 192.168.5.10
Switch: Cisco sg-300