Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: mdrum on September 14, 2013, 11:58:32 PM
-
Quick question
I want to shutdown internet access through the home server during the night . I see that there are commands to start and stop services (noted below). I was going to run a stop and start service command via cron to do this. What is the name of the service I should be stopping/starting to achieve this?. I also assume that any manual entries for cron get lost on an upgrade.
start
sv u /service/servicename
stop
sv d /service/servicename
Thanks
Mike Drummond
-
mdrum
config show |more
then press space bar to scroll through by page
config show wan
You can put a cron job in /etc/cron.d or /etc/cron.daily & so on & AFAIK it will be retained.
-
Must have got this one wrong :-)
It looks like stopping the wan service does not affect internet access through the server.
Cheers
Mike Drummond
-
mdrum
It would be better if you specify more fully what type(s) of Internet access you want to stop, ie what you are trying to achieve in a practical sense, rather than proposing the answer.
People here could advise you more effectively then.
It would also help if you tell us what mode your sme server is in ie gateway & server, server only, & a description of your home network arrangement, are you using a seperate router & firewall etc ?
-
enable squid and create a rule to enable web access only during office hours (google will tell you more about squid's syntax and the wiki will help you to understand fragment/template concepts)
easier to do than to say
-
It looks like stopping the wan service does not affect internet access through the server.
If so, that's a bug. Please report details via the bug tracker! Thanks.
-
Noted I assumed it was my poor skills rather than a bug . I have better documented the issue and submitted a bug report it may be similar to Bug 7047? but I am not knowledgable enough to make a call on that.
Thanks for the ideas I will look into the other option
Regards
Mike Drummond
-
For those who want to follow this topic
http://bugs.contribs.org/show_bug.cgi?id=7861