Link to home
Start Free TrialLog in
Avatar of bhomass
bhomass

asked on

allow remote access to postgres from the same subnet

I am creating a virtual appliance which will pick up an ip address in the Bridged mode, so that it will share the subnet of the host.

I would like to allow remote postgres access by the host based on the fact it is on the same subnet. What can I put down in the pg_hba.conf file (in the host line) to specify that restriction?
Avatar of gheist
gheist
Flag of Belgium image

You need to generate pg_hba.conf from your network configuration before (re)starting it.
Avatar of bhomass
bhomass

ASKER

I will not be there to do this manually. this advice is only good if you have a way to make it happen automatically.
ASKER CERTIFIED SOLUTION
Avatar of l4ncel0t
l4ncel0t

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bhomass

ASKER

to gheist, that is one heavy solution! maybe there is not other way to work pg_hba.conf.
there is no zeroconf support
also setting interface TTL to 1 you keep it in subnet etc...