Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Tyrone Miles on September 05, 2003, 10:17:50 AM
-
Is there a way to set your server up to only allow people to connect to the internet at set times?
My brother stays up too late at night on the net so I want to set it to cut him off at say 10:30 PM every night based on his IP address.
:-)
-
try it in squid.... acl time
-
Thanks for the help. :-)
Are there any directions on how to configure this in e-smith. Has anyone made server manager plugins for squid?
-
Tyrone: I found this
http://squid.visolve.com/squid24s1/access_controls.htm
maybe you could write a "acl time" comand in a file like:
......./custom-templates/etc/squid/squid.conf/ "nn-acl-timectrl" and do the expand templates thing to get it configured on squid, and maybe your brother could disable proxy on his client pc to bypass your "two hour template research"
;-)
I have a brother too
-
Thanks for the info Alejandro. What I am hoping is that I can find something that can be put into place without having to touch his computer. I want it to seem to him like the internet connection went down or something.
That way if he asks I can say "I don't know, I think the internet connection is down. " :-)
-
Tyrone,
What Alejandro is suggesting doesn't include touching your brothers computer.
Logon to your server then do the following.
Create a directory;
mkdir -p /etc/e-smith/templates-custom/etc/squid.conf
add what you need to the file 90block_brother
vi /etc/e-smith/templates-custom/etc/squid.conf/90block_brother
(work it out from the suggested web page, make sure to allow al others on your network!)
Expand the template:
/sbin/e-smith/expand-template /etc/squid/squid.conf
If you get no errors then restart squid:
/etc/init.d/squid restart
I haven't tested this.
Craig
-
Tyrone: As per Craig comments...in that way you should get a server side connection time manager by seting up the right rules at squid.conf.
As far as I know (not really enogh at all) your brother pc is connected to the internet through the sme box acting as gateway, but if you don't use squid as a proxy server of you network, he will be able to bypass the rules.
In other words If he doesn't use proxy he doesn't follow it´s rules.
this is by not using proxy port 3128.
so if he configures his browser not to use 3128 port he will be able to use the connection.
maybe solution is aplying rules at ipchains or somewere else.
Ale
-
I am using an e-smith 5.6 server as my gateway.