Info
Help
Forums
Old Login
Anonymous |
Login
|
Signup for a new account
2010-09-07 08:29 EDT
Project:
All Projects
ClarkConnect
Gateway Services
Upstream
Main
|
My View
|
View Issues
|
Change Log
|
Roadmap
Viewing Issue Simple Details
[
Jump to Notes
]
[
View Advanced
]
[
Issue History
]
[
Print
]
ID
Category
Severity
Reproducibility
Date Submitted
Last Update
0000868
[ClarkConnect] Firewall
trivial
always
2008-04-15 06:33
2008-07-14 16:00
Reporter
hskwirblies
View Status
public
Assigned To
peter
Priority
normal
Resolution
fixed
Status
closed
Product Version
4.2
Summary
0000868: /etc/rc.d/rc.firewall : grep: /etc/squid/squid.conf: No such file or directory
Description
On our system without squid proxy the firewall-script reports an error if executed via cli:
[root@gateway rc.d]# ./rc.firewall
grep: /etc/squid/squid.conf: No such file or directory
[root@gateway rc.d]# echo $?
0
Script exitcode is 0, which seems fine. I test -f /etc/squid/squid.conf before the grep now.
Additional Information
--- rc.firewall.bak-20080415 2008-04-15 12:02:27.000000000 +0200
+++ rc.firewall 2008-04-15 12:23:04.000000000 +0200
@@ -87,14 +91,15 @@
fi
# TODO: A quick hack to determine proxy user authentication mode
-USERAUTH=`grep "http_access.*webconfig_lan.*password" /etc/squid/squid.conf`
-if [ -n "$USERAUTH" ]; then
- SQUID_USER_AUTHENTICATION="on"
-else
- SQUID_USER_AUTHENTICATION="off"
+if [ -f /etc/squid/squid.conf ]; then
+ USERAUTH=`grep "http_access.*webconfig_lan.*password" /etc/squid/squid.conf`
+ if [ -n "$USERAUTH" ]; then
+ SQUID_USER_AUTHENTICATION="on"
+ else
+ SQUID_USER_AUTHENTICATION="off"
+ fi
fi
-
# Export firewall configuration
export MODE EXTIF LANIF HOTIF DMZIF WIFIF BANDWIDTH_QOS BANDWIDTH_UPSTREAM \
BANDWIDTH_UPSTREAM_BURST BANDWIDTH_UPSTREAM_CBURST BANDWIDTH_DOWNSTREAM \
Tags
No tags attached.
Attached Files
Relationships
Relationships
Notes
(0000826)
peter
(administrator)
2008-04-15 15:34
Thanks for the bug report!
Notes
Issue History
Date Modified
Username
Field
Change
2008-04-15 06:33
hskwirblies
New Issue
2008-04-15 15:34
peter
Status
new => assigned
2008-04-15 15:34
peter
Assigned To
=> peter
2008-04-15 15:34
peter
Status
assigned => resolved
2008-04-15 15:34
peter
Fixed in Version
=> 4.3
2008-04-15 15:34
peter
Resolution
open => fixed
2008-04-15 15:34
peter
Note Added: 0000826
2008-07-14 16:00
peter
Status
resolved => closed
Issue History
Copyright © 2000-2009, Point Clark Networks