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

Title: Service Name for WAN access
Post 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
Title: Re: Service Name for WAN access
Post by: janet on September 15, 2013, 03:25:34 AM
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.
Title: Re: Service Name for WAN access
Post by: mdrum on September 20, 2013, 11:06:43 PM
 Must have got this one wrong :-)

It looks like stopping the wan service does not affect internet access through the server.

Cheers

Mike Drummond
Title: Re: Service Name for WAN access
Post by: janet on September 21, 2013, 12:15:36 AM
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 ?
Title: Re: Service Name for WAN access
Post by: Stefano on September 21, 2013, 12:18:20 AM
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
Title: Re: Service Name for WAN access
Post by: CharlieBrady on September 21, 2013, 05:49:31 AM
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.
Title: Re: Service Name for WAN access
Post by: mdrum on September 22, 2013, 06:41:55 AM
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
Title: Re: Service Name for WAN access
Post by: stephdl on September 22, 2013, 02:30:58 PM
For those who want to follow this topic

http://bugs.contribs.org/show_bug.cgi?id=7861