Site Tools


access_restrictions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
access_restrictions [2023/05/10 20:11] – [Scripting Access Restrictions] condense, bullet Field 8 options hogwildaccess_restrictions [2023/07/02 01:45] – Incorrect information fixed, thanks to brodrigueznu for reporting techie007
Line 43: Line 43:
   * 1 = Sunday   * 1 = Sunday
   * 2 = Monday   * 2 = Monday
-  * = Tuesday +  * = Tuesday 
-  * = Wednesday +  * = Wednesday 
-  * = Thursday +  * 16 = Thursday 
-  * Saturday +  * 32 Friday 
-  * = Sunday+  * 64 = Sunday 
 + 
 + \\
  
 For multiple days, add the corresponding numbers for each day. For multiple days, add the corresponding numbers for each day.
Line 69: Line 71:
 **Field 9:**  stores the name that you gave to the rule being edited. **Field 9:**  stores the name that you gave to the rule being edited.
  
- \\ Now that we have a basic sense of how Access Restriction rules work, we can write shell scripts to control the rules. Below is the script which will enable or disable a rule. Two values are passed on the command line – the rule number and either a "0" or "1" to disable or enable the service, respectively. If you have **jffs** enabled in the FreshTomato menus, you can copy the script under jffs directory and schedule it to run as a cron job, if you wish.+ \\ Now that we have a basic sense of how Access Restriction rules work, we can write shell scripts to control the rules. The script below will enable or disable a rule. Two values are passed on the command line – the rule number and either a "0" or "1" to disable or enable the service.
  
 \\ \\
Line 111: Line 113:
 done done
 </code> </code>
 +
 + \\
 +
 +\\
 +
 +If you have JFFS enabled in FreshTomato, you can copy the script under the jffs directory and schedule it to run as a cron job, if you wish.
 +
 + \\
 +
 + \\
  
  
access_restrictions.txt · Last modified: 2023/10/26 17:20 by hogwild