Koozali.org: home of the SME Server

dansguardian and CoovaChilli

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
dansguardian and CoovaChilli
« on: April 09, 2009, 04:51:47 AM »
Dear all,

I'm running SME server on a school and it's running perfectly.
we are using dansguardian to be able to log and restrict internet access to the students.


we do now consider in buying an additional NIC and install CoovaChili as accesspoint feed for laptops.

Does anybody know if these 2 contribs conflict? and if not. can i use the dansguardian filter / logging on this new network?

Kind regards.
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: dansguardian and CoovaChilli
« Reply #1 on: April 09, 2009, 09:22:11 AM »
tropicalview

as you are not a SME newbie, you should know that dual eth in SME is supported only in Server & Gateway mode (or in binding mode)..

using a second nic to have a separate wi-fi lan will be, IMO, an hard work in SME

my 2c

Ciao
Stefano

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: dansguardian and CoovaChilli
« Reply #2 on: April 09, 2009, 09:31:10 AM »
as you are not a SME newbie, you should know that dual eth in SME is supported only in Server & Gateway mode (or in binding mode)..
True... but that is what the smeserver-coovachili package does for you according to http://wiki.contribs.org/CoovaChilli#Description
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: dansguardian and CoovaChilli
« Reply #3 on: April 09, 2009, 09:38:51 AM »
Yes, CoovaChilli contrib is made to support a 3rd NIC when runing in server & gateway mode (server only is not supported).

For Dansguardian I don't know, I don't use it. You'll have to do some customization to both contribs if you want it to work (redirect to port 8080 instead of 3128, open port 8080 for the clients, allow requests from 10.1.0.0/24 in dansguardian etc...). But CoovaChilli works pretty well with squid+squidGuard, I'm actually using it.

Cheers, Daniel
C'est la fin du monde !!! :lol:

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Re: dansguardian and CoovaChilli
« Reply #4 on: April 09, 2009, 12:59:51 PM »
Hi VIP-ire.
thanks for you answer, you gave me some stuff to test in a vmware / lab test.

Sorry Stefano, i should have explained my situation some better.
Indeed is the server i'm talking about already in gateway mode and i'm using dansguardian over that to filter / log the web requests.
The new NIC will be the 3th NIC in the system.

Kind regards,
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: dansguardian and CoovaChilli
« Reply #5 on: April 12, 2009, 04:42:10 AM »
I think there will be three issues:

1. Is the eth2 network regarded as "local" by SME Server? If yes, dansguardian will be available for use.
2. Can CoovaChilli be customised to redirect to port 8080 [dansguardian], rather than 3128 [squid]?
3. Does the dansguardian port blocking work on the eth2 network? Otherwise just pointing the browser to 3128 will bypass the filtering.

A little bit of testing should shed some light on these issues.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: dansguardian and CoovaChilli
« Reply #6 on: April 12, 2009, 02:26:42 PM »
1. Is the eth2 network regarded as "local" by SME Server? If yes, dansguardian will be available for use.
Of course not. Captive portal clients are not trusted (btw, the interface to look at is tun0, not eth2 as chilli will mask the traffic as incoming from tun0). You'll have to configure dansguardian to bind on tun0 (10.1.0.1 is the default IP), and to accept requests from this network.
2. Can CoovaChilli be customised to redirect to port 8080 [dansguardian], rather than 3128 [squid]?
Yes, it's possible, you'll have to customize /etc/chilli/conup.sh and /etc/chilli/condown.sh scripts. They won't be overriden on upgrades. This script will open needed ports and redirection when a clients connect, avoiding the possibility to bypass the authentication with squid.

3. Does the dansguardian port blocking work on the eth2 network? Otherwise just pointing the browser to 3128 will bypass the filtering.

No need to block squid, it's blocked by default. Depending on the key WebRequest, which can be 'direct' or 'squid', squid may be opened for clients, but only once they are authenticated (if the value is 'squid').

Hope this helps, just let me know if you can get this to work. Unfortunally, I do not use dansguardian, so I won't be able to test, but I may be able to help with some assitance.

Cheers, Daniel
C'est la fin du monde !!! :lol:

Offline ntblade

  • *
  • 252
  • +0/-0
Re: dansguardian and CoovaChilli
« Reply #7 on: June 15, 2009, 04:56:34 PM »
Hi all,
Has anyone been able to get DG and Coovachilli to work together yet?

Norrie

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Re: dansguardian and CoovaChilli
« Reply #8 on: June 15, 2009, 05:49:59 PM »
Hi,

I had installed it in a VMware machine, and have tested it with 4 private network clients and 2 hotspot users.
it worked fine.
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline ntblade

  • *
  • 252
  • +0/-0
Re: dansguardian and CoovaChilli
« Reply #9 on: June 15, 2009, 07:25:48 PM »
Hi thanks for your reply,
Do you remember what you had to do to get them both to work together?
CoovaChilli works (with guest access) but there seems to be no filtering.

Norrie

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Re: dansguardian and CoovaChilli
« Reply #10 on: June 15, 2009, 07:41:26 PM »
I had opened the rights to connect to the proxy, and configured the clients to connect via proxy.

I was searching for a way to force the clients to use the proxy settings.
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)