How Can I Customize the Error Messages Given by the HTTP Security Server? These messages cannot be changed on FireWall-1 4.1 and earlier, but can be changed in NG. On the firewall module, edit the file $FWDIR/conf/cspc/cspc.en_us. This enables you to modify just about any message that any of the Security Servers generate. Some common messages to edit include:
- FW-1 at host
- Failed to connect to the WWW server
- Unknown WWW server
Each line in $FWDIR/conf/cspc/cspc.en_us is of the following format:
IDENTIFIER size string
IDENTIFIER is a unique string that identifies the message to FireWall-1. Do not change this. size is the maximum number of characters the message can be. Do not change this either. string is the actual string that FireWall-1 will display. It may contain some special words surrounded by # signs, such as #host# or #html#. For the three examples listed above, the lines look like this: CPSC_HTTP_FW_AT_HOST 1024 FW-1 at #host#:CPSC_HTTP_CONN_FAIL_ERR 1024 \n#local_host# Failed to connect to the #.40server#.CPSC_HTTP_UNKNOWN_SERVER_ERR 1024 \n#local_host# Unknown WWW server.These lines could be changed so they read:
CPSC_HTTP_FW_AT_HOST 1024 Message from firewall:CPSC_HTTP_CONN_FAIL_ERR 1024 \n#local_host# Failed to connect to the #.40server#. This may be a transient problem, in which simply reloading the page will work.If this problem persists, it may be a problem with the remote server.CPSC_HTTP_UNKNOWN_SERVER_ERR 1024 \n#local_host# Unknown WWW server. This could mean you typed an incorrect URL or there was a problem looking up the site in DNS. If the URL is correct and the problem persists, contact your administrator. --
PhoneBoy - 01 Jan 2004
FAQForm FAQs.Class:
ContentSecurityFAQs OperatingSystem?: FAQs.Version: