This tutorial is written for 7.0.1, it will work on any Untangle installation that is operating Postgres 8.3. That is to say, anything 6.2 or newer that was done with a fresh install.
Consider yourself warned, performing this procedure on your Untangle server is rife with security implications. This is meant for development purposes only and not to be put into production.
So now on to business...
By default Untangle's packet filter is a block all configuration given a destination to the local server. As such, before we can go anywhere we need to define a packet filter rule to allow our local network access to the postgres port. The following will allow only the internal network access.
Enabled: Checked
Description: Pass Postgres
Action: Pass
Source Interface: Internal
Destined Local
Protocol: TCP
Destination Port: 5432
Now that IPTables is out of the way let's get on to configuring postgres.
First stop the UVM and Postgres services.
Now, editCode:/etc/init.d/untangle-vm stop /etc/init.d/postgresql-8.3 stop
Find the line that saysCode:/etc/postgresql/8.3/main/postgresql.conf
And change it toCode:#listen_addresses = 'localhost'
Now editCode:listen_addresses = '*'
Find the line that saysCode:/etc/postgresql/8.3/main/pg_hba.conf
and change it toCode:host all all 127.0.0.1/32 trust
Now that postgrest is configured, we need to restart it and the UVM.Code:host all all 0.0.0.0/0 trust
Get a copy of pgAdmin from http://www.pgadmin.org/download/windows.phpCode:/etc/init.d/postgresql-8.3 start /etc/init.d/untangle-vm start
I'm using version 1.10.0 at this time
Once it is installed, click the plug icon in the top left to open the new server registration window.
Fill the box:
Name: Untangle
Host: Internal IP of your Untangle here
Port: 5432
SSL: allow
Maintenance DB: postgres
Username: postgres
Password: uvm
The rest of the window leave blank and click OK.
You should now be able to navigate the uvm database from your windows station.