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 revisionBoth sides next revision
access_restrictions [2023/07/02 01:52] – Removed extraneous blank lines techie007access_restrictions [2023/07/02 16:23] – [Scripting Access Restrictions] -formatting hogwild
Line 4: Line 4:
  
 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:
-<code ->nvram get rrule0</code>+ 
 + \\ 
 + 
 +<code -> 
 +nvram get rrule0 
 +</code>
  
 \\ \\
  
 The returned string might look something like this: The returned string might look something like this:
-<code ->1|540|1140|62|||block-site.com$|0|New Rule 1</code>+ 
 + \\ 
 + 
 +<code -> 
 +1|540|1140|62|||block-site.com$|0|New Rule 1 
 +</code>
  
 \\ \\
Line 28: Line 38:
  
 It is coded in binary: It is coded in binary:
 +
   * 1 = Sunday   * 1 = Sunday
   * 2 = Monday   * 2 = Monday
Line 36: Line 47:
   * 64 = Sunday   * 64 = Sunday
  
-For multiple days, add the corresponding numbers for each day.+For multiple days, simply add together 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 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.
  
 **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 103: Line 114:
 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. 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