Koozali.org: home of the SME Server

Transproxy custom template

Tim Cabana

Transproxy custom template
« on: August 08, 2002, 08:30:16 AM »
I've just installed the DansGuardian-2.4.5-2.RH72.i386.rpm from dansguardian.org contrib site.  The default operation as you probably know is for DansGuardian to listen on port 8080 and connect to squid on port 3128.

E-Smith 5.1.2 (which I'm using) has transproxy enabled redirecting everything to 3128.  In my environment using any of the 'auth' options in DansGuardian will not work because I have 20 general access (no specific login required) computers (college environment).  Now I could just enable the proxy settings in the browsers, but students would disable this quickly and regularly.

So, I had a crazy idea.  What if I created a custom template for 35transproxy and replaced the line:
my $proxyport = db_get_prop($confref, 'squid', 'TransparentPort') || "3128";
with :
my $proxyport = "8080";

Now, the question. Can this crude hack cause any problems?
This seems to be working and I just want to make sure that I haven't created any potential problems with my idea for redirecting all web connections to DansGuardian.

Thanks in advance for any replies.

Tim

jasper

Re: Transproxy custom template
« Reply #1 on: August 12, 2002, 05:49:07 AM »
Why not just change the squid TransparentPort|8080 property in the configuration database

Tim Cabana

Re: Transproxy custom template
« Reply #2 on: August 14, 2002, 04:53:58 AM »
jasper wrote:
>
> Why not just change the squid TransparentPort|8080 property
> in the configuration database

Don't mean to be a total dolt here, but to which database would you be
referring?
I looked around and couldn't find anything:-(

jasper

Re: Transproxy custom template
« Reply #3 on: August 23, 2002, 07:59:23 AM »
the e-smith configuration database (it's really a text file) where most of the system settings are kept

Charlie Brady

Re: Transproxy custom template
« Reply #4 on: August 23, 2002, 07:06:33 PM »
Tim Cabana wrote:

> I looked around and couldn't find anything:-(

You didn't find http://www.e-smith.org/custom/ then :-)

You want:

/sbin/e-smith/db configuration setprop squid TransparentPort 8080
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot

Charlie

Tim Cabana

Re: Transproxy custom template
« Reply #5 on: September 25, 2002, 01:22:51 AM »
Charlie,

Thanks, and no I didn't find http://www.e-smith.org/custom/.  sorry it took so long to get back but I've been focused elsewhere for a while.

Thanks again

 Tim