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

Sophos UTM SG210 web protection exceptions cidr format to regex

Hello,

I try to get office 365 to work in our network with the web protection (standard mode) proxy enabled.

Therefore i had to create a huge exception list based on a json file from microsoft.

I can handle the url exceptions so far.

But i am stuck with the ip entries.

My list for importing looks like this (very small selection)

13.107.6.152/31
13.107.18.10/31
13.107.128.0/22
23.103.160.0/20
40.96.0.0/13
40.104.0.0/15
52.96.0.0/14
131.253.33.215/32
132.245.0.0/16
150.171.32.0/22
204.79.197.215/32

I know that the sophos can't handle CIDR format.

If i check the CIDR via Website, 150.171.32.0/22 is 150.171.32.1 to 150.171.35.254

I have no clue what roulset i could implement for converting this CIDR to regex.

Do anyone know any solutions?


This thread was automatically locked due to age.
Parents
  • Hallo Erik,

    For example, 13.107.6.152/31 would be 13\.107\.6\.15[2-3], 204.79.197.215/32 would be 204\.79\.197\.215 and 132.245.0.0/16 would be 132\.245\..

    I wonder if there's an online conversion tool for CIDR to REGEX.... !!!  https://d-fault.nl/cidrtoregex - You will likely want to remove the leading ^( and trailing )$ in each.

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Reply
  • Hallo Erik,

    For example, 13.107.6.152/31 would be 13\.107\.6\.15[2-3], 204.79.197.215/32 would be 204\.79\.197\.215 and 132.245.0.0/16 would be 132\.245\..

    I wonder if there's an online conversion tool for CIDR to REGEX.... !!!  https://d-fault.nl/cidrtoregex - You will likely want to remove the leading ^( and trailing )$ in each.

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children