That's strange. I just tested it here, and it worked. I have IPv6 code enabled. but no IPv6 in my kernel, so there are just IPv4 connections.
Can you peek in this funciton and see where it is failing: int rangeSockAddrAF_INET(const SockAddr *addr, const SockAddr *netaddr, const SockAddr *netmask) { if (addr->sa.sa_family != AF_INET || netaddr->sa.sa_family != AF_INET || netmask->sa.sa_family != AF_INET) return 0; if (((addr->in.sin_addr.s_addr ^ netaddr->in.sin_addr.s_addr) & netmask->in.sin_addr.s_addr) == 0) return 1; else return 0; } That is the IPv4 function. --------------------------------------------------------------------------- Andreas Pflug wrote: > Trying to connect from pgadmin2, I get the message > "no pg_hba.conf entry for ..." > > I found that the ip address matching with rangeSockAdr in line 651 in > hba.c fails. > > I get access if I set ipaddr/mask to 0.0.0.0/0.0.0.0 in pg_hba.conf. > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED] > -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]