Koozali.org: home of the SME Server

Service Name for WAN access

Offline mdrum

  • 7
  • +0/-0
Service Name for WAN access
« 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

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Service Name for WAN access
« Reply #1 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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mdrum

  • 7
  • +0/-0
Re: Service Name for WAN access
« Reply #2 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

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Service Name for WAN access
« Reply #3 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 ?
« Last Edit: September 21, 2013, 12:19:52 AM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Service Name for WAN access
« Reply #4 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

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Service Name for WAN access
« Reply #5 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.

Offline mdrum

  • 7
  • +0/-0
Re: Service Name for WAN access
« Reply #6 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

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Service Name for WAN access
« Reply #7 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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!