我有一个本地网络,希望允许远程访问另一台计算机中的postgres服务器。
PostgreSQL建议使用以下pg_hba.conf条目,但不起作用:
host all all 192.168.0.0/24 md5
我得到以下错误:
FATAL: no pg_hba.conf entry for host "192.168.137.1", user "postgres", database "postgres",
SSL on FATAL: no pg_hba.conf entry for host "192.168.137.1", user "postgres", database "postgres", SSL off
只有当我指定IP地址和掩码时,它才能工作,如下所示:
host all all 192.168.137.1 255.255.255.0 md5
服务器机器运行Ubuntu10.11/Postgre 9,客户端机器运行Windows7 x64
有人知道如何允许我的所有网络访问服务器?
发布于 2011-12-14 08:22:24
你有坏的网络面具。如果要将主机192.168.137.1添加到192.168.0.0网络,则必须使用网络掩码甚至使用/16或255.255.0.0。
https://serverfault.com/questions/341456
复制相似问题