Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: mgb on May 15, 2012, 08:37:45 AM
-
Hello I want to set the re-ports of dansghardian
I am interested in two ports pass through the dansghardian
3128 8080
The proxy to pass in 8090
Thank you
-
mgb
Dansguardian listens on port 8080 by default, and I think that cannot be changed.
As far as I understand it you have to use port 8080, so you cannot use port 8090 for dansguardian.
You may be able to re-engineer & recompile dansguardian but that would be a big task I assume.
You can probably create custom templates (which are based on those provided with the contrib), to redirect other ports to port 8080.
I think you will need to change your approach to the issues you are trying to resolve.
I think I have interpreted your question correctly, but please restate your question in clear english as I am not totally sure what you want to achieve.
Refer also to
http://dansguardian.org/
and
http://dansguardian.org/?page=dgflow
-
Thanks for the response, exactly the answer
It's not complicated to change the ports
Changed squid = 8090
dansguardian = 3128
With squid.conf
And with dansguardian.conf
Restart the service
Problem to add another port to dansguardian
Port 8080 to dansguardian
Basic settings
# The port that DansGuardian listens to.
# Filterport = 8080 3128
filterport = 8080
# The ip of the proxy (default is the loopback - ie this server)
proxyip = 127.0.0.1
# The port DansGuardian connects to proxy on
proxyport = 8090
The problem
Not working
filterport = 8080 3128 ?????
-
mgb
Modifying dansguardian.conf directly is OK,
but I think you should modify the squid.conf template fragments, or more correctly create custom template fragments to change the squid.conf settings.
I'm guessing you will also need to modify the template fragments that the smeserver-dansguardian rpm adds.
You can view that rpm using mc then press F3 to see which templates and fragments are added to the system at install time, as these will probably need copying to the custom template tree and modifying in keeping with your changed port requirements.
Then expand & restart as usual
-
Thanks for the response
I have not changed it works smeserver-dansguardian
It works
Change of ports
In question
Create a situation of supporting two ports 8080 3128 dansguardian
And also the location of squid.conf
Permanent changes in
-
mgb
See
/etc/e-smith/templates/etc/squid/squid.conf
Also read this for the correct way to make changes to templates by creating custom templates
http://wiki.contribs.org/Template_Tutorial
Did you also make necessary changes as per
http://wiki.contribs.org/Dansguardian#Configuring_your_system_to_force_Dansguardian_usage_.26_prevent_bypassing
I suggested that you may need to change the templates that are created when smeserver-dansguardian is installed, to reflect the alternative ports you wish to use.
Refer to the rpm for their location (see extracted details below of files that smeserver-dansguardian-2.9-7.el4.sme.noarch.rpm affects {from smecontribs repo}).
-rwxr-xr-x 1 root root 490 Oct 15 2006 /etc/cron.weekly/dansguardian-logrotate
drwxr-xr-x 2 root root 0 Jun 9 2009 /etc/e-smith
drwxr-xr-x 2 root root 0 Jun 9 2009 /etc/e-smith/db
drwxr-xr-x 2 root root 0 Jun 9 2009 /etc/e-smith/db/configuration
drwxr-xr-x 2 root root 0 Jun 9 2009 /etc/e-smith/db/configuration/defaults
drwxr-xr-x 2 root root 0 Jun 9 2009 /etc/e-smith/db/configuration/defaults/dansguardian
-rw-r--r-- 1 root root 8 Jun 9 2009 /etc/e-smith/db/configuration/defaults/dansguardian/status
-rw-r--r-- 1 root root 8 Jun 9 2009 /etc/e-smith/db/configuration/defaults/dansguardian/type
drwxr-xr-x 2 root root 0 Oct 2 2005 /etc/e-smith/templates
drwxr-xr-x 2 root root 0 Oct 2 2005 /etc/e-smith/templates/etc
drwxr-xr-x 2 root root 0 Oct 2 2005 /etc/e-smith/templates/etc/rc.d
drwxr-xr-x 2 root root 0 Oct 2 2005 /etc/e-smith/templates/etc/rc.d/init.d
drwxr-xr-x 2 root root 0 Jun 9 2009 /etc/e-smith/templates/etc/rc.d/init.d/masq
-rw-r--r-- 1 root root 638 Jun 9 2009 /etc/e-smith/templates/etc/rc.d/init.d/masq/90local_chk40networks
drwxr-xr-x 2 root root 0 Oct 2 2005 /etc/e-smith/templates/etc/squid
drwxr-xr-x 2 root root 0 Mar 8 2006 /etc/e-smith/templates/etc/squid/squid.conf
-rw-r--r-- 1 root root 288 Nov 6 2005 /etc/e-smith/templates/etc/squid/squid.conf/15AuthProgramNCSA
-rw-r--r-- 1 root root 269 Mar 12 2006 /etc/e-smith/templates/etc/squid/squid.conf/15AuthProgramPamAuth
-rw-r--r-- 1 root root 132 Oct 3 2005 /etc/e-smith/templates/etc/squid/squid.conf/20ACL05ProxyAuth
-rw-r--r-- 1 root root 117 Mar 8 2006 /etc/e-smith/templates/etc/squid/squid.conf/20ACL06IdentAuth
-rw-r--r-- 1 root root 126 Oct 3 2005 /etc/e-smith/templates/etc/squid/squid.conf/39http_access00pwdprotect
-rw-r--r-- 1 root root 116 Mar 8 2006 /etc/e-smith/templates/etc/squid/squid.conf/39http_access01ident
drwxr-xr-x 2 root root 0 Jun 9 2009 /etc/rc.d/rc0.d
lrwxrwxrwx 1 root root 32 Jun 9 2009 /etc/rc.d/rc0.d/K24dansguardian -> /etc/rc.d/init.d/e-smith-service
drwxr-xr-x 2 root root 0 Jun 9 2009 /etc/rc.d/rc1.d
lrwxrwxrwx 1 root root 32 Jun 9 2009 /etc/rc.d/rc1.d/K24dansguardian -> /etc/rc.d/init.d/e-smith-service
drwxr-xr-x 2 root root 0 Jun 9 2009 /etc/rc.d/rc6.d
lrwxrwxrwx 1 root root 32 Jun 9 2009 /etc/rc.d/rc6.d/K24dansguardian -> /etc/rc.d/init.d/e-smith-service
drwxr-xr-x 2 root root 0 Jun 9 2009 /etc/rc.d/rc7.d
lrwxrwxrwx 1 root root 32 Jun 9 2009 /etc/rc.d/rc7.d/S91dansguardian -> /etc/rc.d/init.d/e-smith-service
drwxr-xr-x 2 root root 0 Jun 9 2009 /usr/share/doc/smeserver-dansguardian-2.9
-rw-r--r-- 1 root root 18329 Aug 3 2000 /usr/share/doc/smeserver-dansguardian-2.9/COPYING