CLOUD-IP // v2026.07
UPDATED 2026-07-12 PROVIDERS 62 LIVE
// MICROSOFT365 / UFW

microsoft365 · UFW

UFW (Uncomplicated Firewall) shell script for microsoft365. 93 CIDRs, refreshed daily.

// ufw_microsoft365_allow.sh

DOWNLOAD ↓  · 
#!/bin/bash
# Microsoft365 IP Ranges
# Updated: 2026-07-12 03:46:18
# Source: https://github.com/rezmoss/cloud-provider-ip-addresses
# License: https://github.com/rezmoss/cloud-provider-ip-addresses/LICENSE
# This file is generated automatically. Do not edit it directly.
# Updates daily at 02:00 UTC
# UFW allow rules for microsoft365

ufw allow from 13.107.6.152/31
ufw allow from 13.107.6.171/32
ufw allow from 13.107.6.192/32
ufw allow from 13.107.9.192/32
ufw allow from 13.107.18.10/31
ufw allow from 13.107.18.15/32
ufw allow from 13.107.128.0/22
ufw allow from 13.107.136.0/22
ufw allow from 13.107.140.6/32
ufw allow from 20.20.32.0/19
ufw allow from 20.190.128.0/18
ufw allow from 20.231.128.0/19
ufw allow from 23.103.160.0/20
ufw allow from 40.92.0.0/15
ufw allow from 40.96.0.0/13
ufw allow from 40.104.0.0/15
… (66 more lines)

// ufw_microsoft365_deny.sh

DOWNLOAD ↓  · 
#!/bin/bash
# Microsoft365 IP Ranges
# Updated: 2026-07-12 03:46:18
# Source: https://github.com/rezmoss/cloud-provider-ip-addresses
# License: https://github.com/rezmoss/cloud-provider-ip-addresses/LICENSE
# This file is generated automatically. Do not edit it directly.
# Updates daily at 02:00 UTC
# UFW deny rules for microsoft365

ufw deny from 13.107.6.152/31
ufw deny from 13.107.6.171/32
ufw deny from 13.107.6.192/32
ufw deny from 13.107.9.192/32
ufw deny from 13.107.18.10/31
ufw deny from 13.107.18.15/32
ufw deny from 13.107.128.0/22
ufw deny from 13.107.136.0/22
ufw deny from 13.107.140.6/32
ufw deny from 20.20.32.0/19
ufw deny from 20.190.128.0/18
ufw deny from 20.231.128.0/19
ufw deny from 23.103.160.0/20
ufw deny from 40.92.0.0/15
ufw deny from 40.96.0.0/13
ufw deny from 40.104.0.0/15
… (66 more lines)