目前,我正在编辑PostgreSQL允许远程连接的配置文件:
>> sudo nano /etc/postgresql/14/main/pg_hba.conf
#Allout or Universal connection:
#To all allow all users, from all remote places access
#to the all databases, add the following to the above script:
host all all 0.0.0.0/0 scram-sha-256
如何将此访问权限限制为只能访问我们内网内的IP.例如,IP地址的范围是:
1.1.10.0-255,
1.1.11.0-255,
1.1.12.0-255,
1.1.13.0-255
如何配置文件以允许从这些IP中的任何一个进行远程连接?