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
Last revisionBoth sides next revision
access_restrictions [2023/07/02 01:45] – Incorrect information fixed, thanks to brodrigueznu for reporting techie007access_restrictions [2023/10/26 17:20] – [Scripting Access Restrictions] -formatting hogwild
Line 2: Line 2:
  
 Access Restriction rules are coded as strings separated by pipe ( | ) symbols. These are stored in NVRAM as variables named //rrule0//, //rrule1//, //rrule2// and so on. Access Restriction rules are coded as strings separated by pipe ( | ) symbols. These are stored in NVRAM as variables named //rrule0//, //rrule1//, //rrule2// and so on.
 +
 + \\
  
 To see what's in the first rule, we can issue the following command at a FreshTomato shell prompt: To see what's in the first rule, we can issue the following command at a FreshTomato shell prompt:
Line 12: Line 14:
  
 \\ \\
- 
- \\ 
  
 The returned string might look something like this: The returned string might look something like this:
Line 47: Line 47:
   * 16 = Thursday   * 16 = Thursday
   * 32 = Friday   * 32 = Friday
-  * 64 = Sunday+  * 64 = Saturday
  
- \\ +For multiple days, simply add together the corresponding numbers for each day.
- +
-For multiple days, add the corresponding numbers for each day.+
  
-In the above example the fourth field is 62 which is equal to 2+4+8+16+32 . This means the rule should be active on Mon, Tue, Wed., Thu., and Fri. That is, only on weekdays. If you had checked the //Everyday// option, the value would have been 127.+In the above examplethe fourth field is 62which is equal to 2 + 4 + 8 + 16 + 32 . This means the rule should be active on Mon, Tue, Wed, Thu, and Fri. That is, only on weekdays. If you had checked the //Everyday// option, the value would have been 127.
  
 **Field 5:** shows the IP or MAC Address range on your network for which the rule should be applied. **Field 5:** shows the IP or MAC Address range on your network for which the rule should be applied.
Line 68: Line 66:
   * A "2" will block Flash.   * A "2" will block Flash.
   * A "4" will block Java.   * A "4" will block Java.
 +
 + \\
  
 **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.
Line 113: Line 113:
 done done
 </code> </code>
- 
- \\ 
  
 \\ \\
access_restrictions.txt · Last modified: 2023/10/26 17:20 by hogwild