Avatar of 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?
PostgreSQLLinux Networking

Avatar of undefined
Last Comment

8/22/2022 - Mon

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

I will not be there to do this manually. this advice is only good if you have a way to make it happen automatically.

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.

to gheist, that is one heavy solution! maybe there is not other way to work pg_hba.conf.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.

there is no zeroconf support
also setting interface TTL to 1 you keep it in subnet etc...