Old 01-22-2012, 09:06 AM   #1 (permalink)
Newbie
 
Join Date: Jan 2012
Location: UK
Posts: 13
Tala is on a distinguished road
Default Writing your own reports

I would like to access the database to write my own reports, is this possible and where will i find the admin username and passwords?

T
Tala is offline  
Old 01-22-2012, 09:17 AM   #2 (permalink)
Untangle Junkie
 
dmorris's Avatar
 
Join Date: Nov 2006
Location: San Mateo, CA
URLs submitted: 10
Posts: 10,613
dmorris is on a distinguished road
Default

Hi Tala,

Yes there are a couple posts around explaining how to make postgres externally accessible.

http://forums.untangle.com/reports/2...html#post68640

If you do any of this stuff make sure you disable auto-upgrade.

have fun.
__________________
Attention: Support and help on the Untangle Forums is provided by
volunteers and community members like yourself.
If you need Untangle support please call or email support@untangle.com
dmorris is online now  
Old 01-22-2012, 09:39 AM   #3 (permalink)
Newbie
 
Join Date: Jan 2012
Location: UK
Posts: 13
Tala is on a distinguished road
Default Thanks

Hi DM,

Thanks for your speedy post I will take a look, I hadn't realised I would have to disable updates, but this makes sense if I have to edit your files.

The only thing I need to do is this. In Captive Portal the reports in there display a user login along with the IP, this allows me to track the IP and cross ref against the name.

So I want to edit the reports to produce a login authentication against an IP and even possibly a MAC as well.

PS: Its just me in my company no budget so using LITE which I find great, though the web filter doesn't block all the adult sites, which was embarassing when showing my friends how good it was as it loaded the web page from google

T
Tala is offline  
Old 01-22-2012, 11:21 AM   #4 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 8
Posts: 15,463
sky-knight is on a distinguished road
Default

Web Filter is such a massive improvement over Web Filter Lite that it's hard to express it. I almost want Web Filter Lite to be renamed to Web Filter Limited, because it would be closer to the truth.

1 million sites vs over 900million sites?

If you're going to dig into the code, I'd suggest you take a look at the report exports that have csv files in them. You'll likely find a way to get the data you're after, but doing it in a way that doesn't require customizing the underlying platform. Which preserves updatability of the installation and leaves you with a solution that is also more portable.

If you want to access postgres remotely it's a simple matter of reconfiguring postgres to listen on a LAN IP address. It's configured for localhost only by default. And then making a packet filter rule to allow access to the appropriate port.

I have a how to around here somewhere for an old version. The instructions are still valid, but the versions of things have changed so you may have to research some syntax changes.
__________________
Rob Sandling, BS:SWE, MCP
Intouch Technology
Phone: 480-272-9889
rob@intouchtechllc.com

UntangleAppliances.com
Phone: 866-794-8879
sky-knight is online now  
Old 01-22-2012, 11:30 PM   #5 (permalink)
Newbie
 
Join Date: Jan 2012
Location: UK
Posts: 13
Tala is on a distinguished road
Default Thanks

Hi Sky-Knight,

Thanks for the information, I will take a look for your Postgres remote instructions and have a play.

Thank you so much for your help.

Tala
Tala is offline  
Old 01-23-2012, 03:25 AM   #6 (permalink)
Newbie
 
Join Date: Jan 2012
Location: UK
Posts: 13
Tala is on a distinguished road
Default Captive Portal Database

From what I can see the database only contains 3 tables for Captive Portal Lite.

n_cpd_block_evt
n_cpd_host_database_entry
n_cpd_login_evt

The Lite version isn't capturing the MAC address but it does capture the IP, which is what I needed, to save an IP against a logged in username.

All I have to do now is

shutdown Untangle
access the database
send the data to a remote mysql server
clear down the untangle logs
restart untangle

This is going to be fun.

have you any plans for adding another open source app to do this
Tala is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 08:46 AM.


© 2010 Untangle, Inc. All Rights Reserved.   SEO by vBSEO 3.6.0 PL2