Line 237: |
Line 237: |
| | | |
| When using Filter Groups, a typical situation may have: | | When using Filter Groups, a typical situation may have: |
− | Filter Group 1 - standard users (standard access rights) | + | Filter Group 1 - blocked users (no access) - See [http://contentfilter.futuragts.com/wiki/index.php?title=Group_Configuration#Typically_Set_Default_Group_.28f1.29_To_No_Web_Access_At_All] |
− | Filter Group 2 - blocked users (no access) | + | Filter Group 2 - standard users (standard access rights) |
| Filter Group 3 - guest users (limited access rights) | | Filter Group 3 - guest users (limited access rights) |
| Filter Group 4 - power users (more generous access & file download rights) | | Filter Group 4 - power users (more generous access & file download rights) |
Line 250: |
Line 250: |
| cp /etc/dansguardian/dansguardianf1.conf /etc/dansguardian/dansguardianf5.conf | | cp /etc/dansguardian/dansguardianf1.conf /etc/dansguardian/dansguardianf5.conf |
| | | |
− | mkdir -p /etc/dansguardian/lists/f1 | + | Because the Filter Group 1 (default) uses the configuration files located at the root of "/lists" directory, it is only necessary to create the rest of the directories f2, f3, f4 and f5 to host the configuration files for each Filter Group. |
− | cp /etc/dansguardian/lists/* /etc/dansguardian/lists/f1 | + | |
− | cp -R /etc/dansguardian/lists/f1 /etc/dansguardian/lists/f2 | + | Each filter directory (f2, f3, etc.) will house all the configuration files located at the root of "/lists" directory unless filtergroupslist, bannediplist and exceptioniplist, because they are not used for filtering because only they are called (logically) from the general configuration file dansguardian.conf. |
− | cp -R /etc/dansguardian/lists/f1 /etc/dansguardian/lists/f3 | + | |
− | cp -R /etc/dansguardian/lists/f1 /etc/dansguardian/lists/f4 | + | Because the configuration files are modified, is a smart idea to create a "virgin" copy of the files and then use it to create new filters directory. This directory will named "virgin" or something similar. |
− | cp -R /etc/dansguardian/lists/f1 /etc/dansguardian/lists/f5 | + | |
| + | mkdir -p /etc/dansguardian/lists/virgin |
| + | cp /etc/dansguardian/lists/* /etc/dansguardian/lists/virgin |
| + | rm -f /etc/dansguardian/lists/virgin/filtergroupslist |
| + | rm -f /etc/dansguardian/lists/virgin/bannediplist |
| + | rm -f /etc/dansguardian/lists/virgin/exceptioniplist |
| + | cp -R /etc/dansguardian/lists/virgin /etc/dansguardian/lists/f2 |
| + | cp -R /etc/dansguardian/lists/virgin /etc/dansguardian/lists/f3 |
| + | cp -R /etc/dansguardian/lists/virgin /etc/dansguardian/lists/f4 |
| + | cp -R /etc/dansguardian/lists/virgin /etc/dansguardian/lists/f5 |
| (which will include all subfolders and files) | | (which will include all subfolders and files) |
| | | |
| Then edit & save the various main configuration files | | Then edit & save the various main configuration files |
| pico -w /etc/dansguardian/dansguardianf2.conf | | pico -w /etc/dansguardian/dansguardianf2.conf |
− | and change all instances of f1 to f2 in filename locations | + | and change all instances of /lists/ to /lists/f2/ in filename locations |
| | | |
| | | |
| pico -w /etc/dansguardian/dansguardianf3.conf | | pico -w /etc/dansguardian/dansguardianf3.conf |
− | and change all instances of f1 to f3 in filename locations | + | and change all instances of /lists/ to /lists/f3/ in filename locations |
| | | |
| | | |
| pico -w /etc/dansguardian/dansguardianf4.conf | | pico -w /etc/dansguardian/dansguardianf4.conf |
− | and change all instances of f1 to f4 in filename locations | + | and change all instances of /lists/ to /lists/f4/ in filename locations |
| | | |
| | | |
| pico -w /etc/dansguardian/dansguardianf5.conf | | pico -w /etc/dansguardian/dansguardianf5.conf |
− | and change all instances of f1 to f5 in filename locations | + | and change all instances of /lists/ to /lists/f5/ in filename locations |
| | | |
| | | |
Line 293: |
Line 302: |
| Configure the following settings as shown | | Configure the following settings as shown |
| #Filter group mode | | #Filter group mode |
− | groupmode = 1 | + | groupmode = 0 |
| | | |
| #Filter group name | | #Filter group name |
− | groupname = 'Standard Users' | + | groupname = 'Blocked Users' |
| | | |
| | | |
Line 304: |
Line 313: |
| Configure the following settings as shown | | Configure the following settings as shown |
| #Filter group mode | | #Filter group mode |
− | groupmode = 0 | + | groupmode = 1 |
| | | |
| #Filter group name | | #Filter group name |
− | groupname = 'Blocked Users' | + | groupname = 'Standard Users' |
− | | |
− | | |
− | Content filtering files location
| |
− | | |
− | change all these to show f2 in the location path
| |
− | | |
− | change all other occurrences of f1 to f2 in file paths
| |
− | | |
| | | |
| | | |
Line 327: |
Line 328: |
| #Filter group name | | #Filter group name |
| groupname = 'Guest Users' | | groupname = 'Guest Users' |
− |
| |
− |
| |
− | Content filtering files location
| |
− |
| |
− | change all these to show f3 in the location path
| |
− |
| |
− | change all other occurrences of f1 to f3 in file paths
| |
| | | |
| | | |
Line 345: |
Line 339: |
| #Filter group name | | #Filter group name |
| groupname = 'Power Users' | | groupname = 'Power Users' |
− |
| |
− |
| |
− | Content filtering files location
| |
− |
| |
− | change all these to show f4 in the location path
| |
− |
| |
− | change all other occurrences of f1 to f4 in file paths
| |
| | | |
| | | |
Line 363: |
Line 350: |
| #Filter group name | | #Filter group name |
| groupname = 'Admin Users' | | groupname = 'Admin Users' |
− |
| |
− |
| |
− | Content filtering files location
| |
− |
| |
− | change all these to show f5 in the location path
| |
− |
| |
− | change all other occurrences of f1 to f5 in file paths
| |
| | | |
| | | |