Это скорее обходной путь, чем правильное решение:
ipv4_private
использует класс _IPv4Constants._private_networks
из providers.internet
Настройка _private_networks
в class IPv4Constants
делает трюк
/ lib / python3.7 / site-пакеты / faker / provider / internet / init .py`
class _IPv4Constants:
"""
IPv4 network constants used to group networks into different categories.
Structure derived from `ipaddress._IPv4Constants`.
Excluded network list is updated to comply with current IANA list of
private and reserved networks.
"""
# Three common private networks from class A, B and CIDR
# to generate private addresses from.
_private_networks = [
# ip_network('10.0.0.0/8'),
# ip_network('172.16.0.0/12'),
# ip_network('192.168.0.0/16'),
ip_network('10.10.10.0/24'),
]