Postgresql 9.5 allow remote connections without editing pg_hba.conf file - postgresql-9.5

I want to allow remote connections in my Postgresql version 9.5 without editing pg_hba.conf file, is it possible ?
thanks

Related

SQLite Database not showing updates in Manager

I am running a Setup where I have a SQLite DB on my Raspberry Pi and I would like to open it remotely via a Database Manager like SQLiteStudio. I have setup a samba server on my raspberry and shared the .db file. Now I want to open the file on my PC. So far I have tried it and if I open the Database I can see all the entrys, but if I change anything in the database I dont see the changes in SQLiteStudio. Even after a refresh. It works just fine if I have the file on my PC. To see the changes I made in the Database I have to delete the db from SQLiteStudio and add it again. Any clues or other Management programs that worked for you?
It is strongly recommended against using SQLite databases over samba shares. See this answer for more details: Sqlite over a network share
It is known to cause inconsistent results and issues.

Does the postgres Database contains/maintain the details of remote access like ip addresses?

We have the pg_hba.conf entries for the remote access in PostgreSQL. Does PostgreSQL stores those data in the database itself?

error connection to postgresql

I am trying to connect to PostgreSQL with ArcCatalog. But I do not think that does matter. I can't connect even with pgAdmin. The connection work well on localhost, the problem is only with connection from remote PC.
Every time I am getting error:
Failed to connect to the specified server.
Underlying DBMS error [Fatal: missing or erroneous pg_hba.conf file HINT: See server log for details.
SQL state:]
I can't understand the reason of this error. I looked at ESRI site and have found there tool named "PostgreSQL DBMS for Windows", but it's available only for arcgis 10.1 and Win x64.
I know that by default PostgreSQL disallow remote connection, so I put to pg_hba.conf next text:
host all all 127.0.0.1/32 md5
host all all 169.254.231.203 trust
host all all 0.0.0.0/0 trust
Please check 169.254.231.203 is valid ip address. You should configure pg_hba.conf for remote accessing your database.
I hope these link will help you.
http://www.postgresql.org/docs/devel/static/auth-pg-hba-conf.html
http://www.linuxtopia.org/online_books/database_guides/Practical_PostgreSQL_database/c15679_002.htm

How to configure access from clients to Firebird 2.5 in Windows 2008 Server?

I'd like to access a Firebird DB 2.5 from clients. Firebird is installed in Windows 2008 Server, running and operational. There's no connection problems when trying to do it in the server itself. But I'm not reaching do the same when in clients. I've opened 3050 port in Win 2008 Firewall, but nothing happens. When I test the conection using IBExpert, for example, the following erro message appears:
Attempting to connect to:
XX.XXX.XXX.XX:SuperFireBD\SuperFireDB.FDB
Connecting... Failed!
------------------------------------
Unsuccessful execution caused by a system error that precludes successful execution of subsequent statements.
I/O error during "CreateFile (open)" operation for file "SuperFireBD\SuperFireDB.FDB".
Error while trying to open file.
The system cannot find the path specified. .
Attempting to connect to services manager... Passed!
Disconnecting from database... Passed!
I'm operating over a domain, and I'm not sure wether I have all the grants of the domain's network firewall. Thus, how can I test the 3050 port without telnet? What would I doing wrong? Thanks!
It looks to me it is connecting, but Firebird cannot open your database file.
Try an absolute path like x.x.x.x:c:\SuperFireDB\SuperFireDB.FDB
If that works, I highly suggest making use of aliases.conf located in the Firebird install directory. Then, clients only have to connect to x.x.x.x:SuperFireDB or whatever you decide to name it. If you need to move the database file later, you only have to update aliases.conf and not every client.
Hope this helps! Also if you install firebird server on your machine (no need to run it), you can try to connect through Firebird's own command line client (ISQL).
Some help here: http://www.firebirdsql.org/manual/qsg10-connecting.html.
I met the same problem.
Answer is very simple: fbserver.exe process has no permissions to read/write file *.fdb.
I added read/write permissions for the user SYSTEM on file *.fdb (fbserver.exe runs as windows service as user SYSTEM) and problems disappear.

protecting sql server database file

what is the recommendations should i do to prevent anyone from hacking or getting the sql server data base file (MDF File) ?
Note : i use sql server 2005
Some simple recommendations:
Do not expose access to your database server to the internet. It should be behind a firewall that only allows the web server to access it over a particular port (not the default).
Do not allow remote desktop or any other type of similar access from external connections. For internal connections, ensure that the passwords follow some type of policy. For example, require numbers, extended characters, etc.
Keep the database files in the normal data directory for sql server (file security is already set up for you).
Use transparent database encryption: http://msdn.microsoft.com/en-au/magazine/cc163771.aspx#S5 and How to protect the sql server 2005 MDF file
Make sure file sharing is turned off.
Make sure the only people who can access that server are the ones responsible for it.
Read up on sql injection to prevent other access mechanisms.
Use Active Directory security for database user accounts.
Use SSPI for the db connections so that you don't have a username/password stored in your web.config
Make sure that the network connection between your web and database server is encrypted via kerberos.
The same way you would protect any other file on your server.
I'd use a firewall and block every port than isn't needed.