This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
access_restrictions [2023/07/02 01:45] – Incorrect information fixed, thanks to brodrigueznu for reporting techie007 | access_restrictions [2023/07/02 01:52] – Removed extraneous blank lines techie007 | ||
---|---|---|---|
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 -> | + | |
- | nvram get rrule0 | + | |
- | </ | + | |
\\ | \\ | ||
- | |||
- | \\ | ||
The returned string might look something like this: | The returned string might look something like this: | ||
- | + | <code -> | |
- | \\ | + | |
- | + | ||
- | <code -> | + | |
- | 1|540|1140|62|||block-site.com$|0|New Rule 1 | + | |
- | </ | + | |
\\ | \\ | ||
Line 40: | Line 28: | ||
It is coded in binary: | It is coded in binary: | ||
- | |||
* 1 = Sunday | * 1 = Sunday | ||
* 2 = Monday | * 2 = Monday | ||
Line 48: | Line 35: | ||
* 32 = Friday | * 32 = Friday | ||
* 64 = Sunday | * 64 = Sunday | ||
- | |||
- | \\ | ||
For multiple days, add 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 // | + | 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 // |
**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 113: | Line 98: | ||
done | done | ||
</ | </ | ||
- | |||
- | \\ | ||
\\ | \\ | ||
Line 120: | Line 103: | ||
If you have JFFS enabled in FreshTomato, | If you have JFFS enabled in FreshTomato, | ||
- | \\ | ||
- | |||
- | \\ | ||
Line 128: | Line 108: | ||
[[http:// | [[http:// | ||
- | |||
- |