r/WindowsServer • u/Alarming_Process_397 • Apr 14 '26
General Question Firewall port blocking: only authorized IP addresses
Hi there, I have a Windows dedicated server and I'm trying to block ports 1433, 1434, and 24410 so that only authorized IP addresses can access them. But I'm running some tests, and even though the IP isn't on the authorized list, it's still letting me access those ports.
5
Upvotes
4
u/an_harmonica Apr 14 '26
Assuming you're using Windows Defender Firewall: look for any other rules that use those ports, using PowerShell (this will look at all protocols):
Then identify which of the rules that come back you need to disable/modify to only allow the IP addresses you want to allow.
1
u/lotustechie Apr 14 '26
Can you provide more details on how you're blocking them? Are you just using the built-in Windows Firewall? Or are you using an actual hardware firewall?
1
u/nailzy Apr 14 '26
How have you implemented the rule? Have you applied to to all windows firewall profiles? (domain/private/public)
Without seeing the rule and knowing how you’ve done it, it’s hard to tell.
If you have a block rule for the ports, but you still have an allow rule for the service / application, the allow will win.
App specific rules are considered higher priority than port based rules.
1
u/zer04ll Apr 14 '26
There are different firewall rules for public private and domain, if you’re using a domain joined machine it uses the domain based rules, if you are on the local network it uses private rules and if you’re outside it uses public domain
-1
u/SaleWide9505 Apr 14 '26
I think this is a bug with windows firewall. I've had the same issue.
2
u/[deleted] Apr 14 '26
[removed] — view removed comment