What is the syntax for the ipprofile.conf file?


This article applies to:

  • R3000

Question:

What is the syntax for the ipprofile.conf file?

Reply

You can manage your IP Groups using the Java GUI, or by uploading a text file that you create yourself. Generally, you should manage your IP Groups using only one method: the GUI, or a text file.

Currently, the disadvantage to using a text file to manage your IP Groups is that you won't be able to use Exception URLs and Time Profiles. Filtering profiles can be customized to allow/deny users access to library categories, redirect users to the Athentication Request Form or another URL instead of having the standard block page display, and enable any of the following filter options: X Strikes Blocking feature, Google/Yahoo! Safe Search Enforcement, Search Engin Keyword Filter Control, and/or URL Keyword Filter Control with/without the Extend URL Keyword Filter Control option.

Each filtering profile included in the file should be entered on a separate line. Filter options should be incuded at the end of the profile string.

Filter Option Codes

0x1 = Exception URL Query (this feature is always enabled for IP profiles)
0x2 = X Strikes Blocking
0x4 = Google/Yahoo! Safe Search Enforcement
0x100 = Search Engine Keyword
0x200 = URL Keyword
0x1000 = Extend URL Keyword Filter Control

NOTE: To enable multiple filter codes, add the codes together. For example, to enable all features for an IP profile, add 1 + 2 + 4 + 100 + 200 + 1000 = 1307, which means that 0x1307 should be added at the end of the proile string. To disable all filter codes for an IP profile, enter 0x1 at the end of the profile string.

Category Command Codes
I = Positioned after Category Codes designated as “blocked,” indicates that all other categories should be “open.”
J = Open the defined category/categories
J J = White list the defined category/categories
Q = Block all categories
R = Block the defined category/categories

NOTE: To white list one or more categories, "J" must be placed before the category codes. An entry of a second "J" character indicates that the categories are allowed to pass.

For example, the port and category filtering portion of the profile string might be set up as follows: A,J R IRADIO I or A,J J LEGAL AUTO Q Global IP

Profile Format

The syntax of the file uploaded to the Global Profile should be as follows: , {, , } , , {, , } Mobile Client Profile Format (for Mobile R3000 servers only)

The syntax of the file uploaded to the Global Profile on an R3000 Mobile server should be as follows: , , , {, , }

Master IP Profile Format The syntax of the file uploaded to the master IP group should be as follows: , , {, , } , , , {, , }

Master IP Profile Examples with Filter Options

If all features are enabled: tjones,100.10.160.136/32, A ,J R ART KDPORN GPORN I , 1, , 0x307

If only Google/Yahoo! Safe Search Enforcement is enabled: jsmith,100.10.160.142/32,A ,J J COMICS I,1,auth,0x5

If only Search Engine Keyword is enabled: pjohnson,100.10.160.9/32,Rule1, ,0x101

only X Strikes Blocking and URL Keyword Filtering are enabled: ssnetsinger,100.10.160.30/32,Rule5, auth,0x203

If all options are disabled: ajones,100.10.160.40/32,Rule5, http://www.logo.com/block.html, 0x1

If you ever want to "erase" your ipprofile.conf file and go back to managing your IP Groups via the GUI, simply upload a "blank" ipprofile.conf.

This article was previously published as:
8e6 KB 276506

Last Modified 2/25/2008.
https://support.trustwave.com/kb/KnowledgebaseArticle12325.aspx