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

Bulk adding network definitions

Hi.

Does anybody knows if there is any way to add network definitions in bulk? In the CLI, I mean. I can't find any place where the definitions are stored.


This thread was automatically locked due to age.
  • Hi, they're stored in a PostGreSQL database, and there's no documented way to load in bulk. 
    Please take a look at the feature request at
    Export / import definitions
    and add a vote.

    Barry
  • This is a huge benefit in Sendmail (or postfix...).

    I export the LACNIC, APNIC, country, ISP range...anything in fact, and using simple text manipulation I can quickly assimilate various IP ranges to block.

    a.b.c.d - w.x.y.z     REJECT      :  for example

    Either a documented procedure, or GUI is welcomed.

    -stoomaroo
  • If you are using V7.4 or newer, I don't see the benefit of doing this anymore.  Commtouch does a great job of tracking IP reputation.
  • Hi Bob, some of us want to block things other than smtp from certain countries. e.g. I see a LOT of scans and worms from China which I don't really need filling up my logs etc., and would rather keep the hackers off our website entirely in case they were to find an SQL injection problem etc. (our site is for local businesses, so residents of foreign countries would have little use for it.)

    Barry
  • True, I did stop about half of the scans and such by blocking 221.224.78.0/24 and 222.93.240.0/22 from China.

    Barry, it seems like it would be easier for your site to allow only local traffic.

    Cheers - Bob
    PS I just added 'Any -> CIFS -> Any : Drop' at the bottom of my PF rules, and the log now is virtually empty.