Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Blackhole DNAT Question

Hi All,

 

I have been asked to look at implementing an IP blacklist on out Sophos UTM as this was a feature we had on our old appliance which the UTM replaced. I can see that there is no exact feature for this in the UTM but a my research leads me to believe that a Blackhole DNAT rule might accomplish what we are looking for. With that in mind i have put together the following plan which i am looking to implement. I just want to make sure my logic is sound before i put the change request in with my manager. What i am proposing is as follows:

  • Create a new network group object that will contain all the IP we want to black list (lets call it IPBlacklist)
  • Create another network group object (ExtAddresses) that contains all the Address Objects of our external IP addresses (we have 2 IP ranges connected to the UTM)
  • Create a network host object as a "Blackhole address"
  • Create a NAT rule like so
    • Source Address = IPBlacklist
    • Destination Port = any
    • Destination address = ExtAddresses
    • Translated address = "blackhole address"
    • Translasted port = "blank"
    • Automatic firewall disabled
    • Logging enabled (To begin with to ensure the rule is working as expected)

 

I suppose what i am looking to get confirmation on is the following:

  • The rule i have proposed will actually do what is intended (i.e. block traffic from the blacklisted IPs)?
  • That a single rule will work using the group containing the interface address objects or will i have create a rule for each one?

 

Any help on this would be appreciated.

 

Thanks,

Andrew



This thread was automatically locked due to age.
Parents
  • Hi Andrew,

    Your NAT rule should work for blocking incoming traffic from the blacklisted IP's, but make sure to have the NAT rule as the first NAT rule, since NAT-rules stop processing once the first match is made, so if you first DNAT traffic to an internal server and in a later NAT rule send to blackhole, the 2nd rule will never be evaluated.

    I'm not quite sure whether or not the incoming DNAT would work on a network group however, never tried that.

  • Hi apijnappels,

     

    Thanks for coming back to me and for the input. i'll make sure to put the rule as the first NAT rule like you suggest.

     

    I suppose i can give it a try and see with the network group as my thinking is if the traffic doesn't match then it will just move on until it finds a matching rule. The only other thought i had was to possibly the use the "External - Network" object create by the UAT and have 2 rules (one for each IP range).

     

    Thanks,

    Andrew

Reply
  • Hi apijnappels,

     

    Thanks for coming back to me and for the input. i'll make sure to put the rule as the first NAT rule like you suggest.

     

    I suppose i can give it a try and see with the network group as my thinking is if the traffic doesn't match then it will just move on until it finds a matching rule. The only other thought i had was to possibly the use the "External - Network" object create by the UAT and have 2 rules (one for each IP range).

     

    Thanks,

    Andrew

Children