// BAIDU / UFW
baidu · UFW
UFW (Uncomplicated Firewall) shell script for baidu. 195 CIDRs, refreshed daily.
// ufw_baidu_allow.sh
#!/bin/bash # Baidu IP Ranges # Updated: 2026-07-12 03:46:25 # 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 baidu ufw allow from 42.199.240.0/22 ufw allow from 45.113.192.0/23 ufw allow from 45.113.194.0/24 ufw allow from 103.235.44.0/22 ufw allow from 104.193.88.0/23 ufw allow from 104.193.90.0/24 ufw allow from 106.12.0.0/17 ufw allow from 106.12.128.0/18 ufw allow from 106.12.192.0/19 ufw allow from 106.12.224.0/20 ufw allow from 106.12.240.0/21 ufw allow from 106.13.0.0/17 ufw allow from 106.13.128.0/18 ufw allow from 106.13.192.0/19 ufw allow from 106.13.224.0/20 ufw allow from 106.13.240.0/22 … (33 more lines)
// ufw_baidu_deny.sh
#!/bin/bash # Baidu IP Ranges # Updated: 2026-07-12 03:46:25 # 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 baidu ufw deny from 42.199.240.0/22 ufw deny from 45.113.192.0/23 ufw deny from 45.113.194.0/24 ufw deny from 103.235.44.0/22 ufw deny from 104.193.88.0/23 ufw deny from 104.193.90.0/24 ufw deny from 106.12.0.0/17 ufw deny from 106.12.128.0/18 ufw deny from 106.12.192.0/19 ufw deny from 106.12.224.0/20 ufw deny from 106.12.240.0/21 ufw deny from 106.13.0.0/17 ufw deny from 106.13.128.0/18 ufw deny from 106.13.192.0/19 ufw deny from 106.13.224.0/20 ufw deny from 106.13.240.0/22 … (33 more lines)