Link to home
Start Free TrialLog in
Avatar of Pawel_Kowalski
Pawel_Kowalski

asked on

Using Windows Firewall On SBS2011 To Only Accept Port 25 Access For Certain IPs

Hello, I run SBS 2011 which uses Server 2008 R2 and Exchange 2010.

I am using Exchange Online Protection to protect spam from getting to our network.

As is expected spam is getting through still since spammers can send directly to our server using port 25.

So I am trying to figure out how to deny access to this port for all addresses except the following ones:

http://technet.microsoft.com/library/dn163583(v=exchg.150).aspx

I can not find the SMTP port under "Windows Firewall with Advanced Security" so I'm not sure how Exchange configured the firewall there.

However, I did try to change the IP ranges in the network tab under the receive connector in the hub transport role of the server configuration. This broke everything, I could no longer get email, I got the following error:

#5.7.1 smtp;530 5.7.1 Client was not authenticated> #SMTP#

I am attaching the file "network_cap_1.JPG" to show what I have before I change anything. "network_cap_2.JPG" shows the EOP IP ranges added and when I add those I get the above error.

I checked the IP that EOP is using to deliver mail to me and that IP currently is  207.46.163.210, so that should be covered by the 207.46.163.0/24 scope, shouldn't it?

Also since I am leaving the default 10.1.1.0-10.1.1.0 & 10.1.1.2-10.1.1.255 entries alone I'm not understanding two things:

1) Why does adding the EOP IPs break everything
2) Why is any email coming in since those IP ranges are local and not external.

Help would be greatly appreciated.

Thanks.
network-cap-1.JPG
network-cap-2.JPG
Avatar of Asif Bacchus
Asif Bacchus
Flag of Canada image

I have not used EOP before, but it sounds like you may not have the correct settings on the receive connector's Authentication and Permission Groups tabs.  What do you have selected on those tabs? IIRC, the firewall is setup by default to allow Exchange full access and the address/ports/IPs, etc. that is uses are controlled via Exchange itself using either the EMC or the EMS depending on your preferences.
ASKER CERTIFIED SOLUTION
Avatar of VB ITS
VB ITS
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Personally I never make these lock downs on my Exchange Server but rather on my perimeter firewall. If you do want to make these on Exchange versus a perimeter firewall I would follow VB ITS instructions.
@Gareth, I totally agree.  I usually do this on my firewall also.  
@OP, I was not sure if you were using a separate firewall and was under the impression you were just using the Windows firewall.  Could you post-back with that information?  Thanks.
Avatar of Pawel_Kowalski
Pawel_Kowalski

ASKER

Thanks! That was the exact problem.

In regards to a perimeter firewall this location doesn't have one, very small office and essentially the SOHO router serves as the firewall (only ports 25 and 443 are forwarded). Doesn't have anything fancy like allowable IP for certain ports. Probably not the most secure method but the budget isn't there to do anything about it.

Thanks again.