We help IT Professionals succeed at work.

allow remote access to postgres from the same subnet

bhomass
bhomass asked
on
471 Views
Last Modified: 2013-05-07
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?
Comment
Watch Question

Top Expert 2015

Commented:
You need to generate pg_hba.conf from your network configuration before (re)starting it.

Author

Commented:
I will not be there to do this manually. this advice is only good if you have a way to make it happen automatically.
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Top Expert 2015
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
to gheist, that is one heavy solution! maybe there is not other way to work pg_hba.conf.
Top Expert 2015

Commented:
there is no zeroconf support
also setting interface TTL to 1 you keep it in subnet etc...
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.