Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
a6ca7de3
Commit
a6ca7de3
authored
Feb 01, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Feb 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(proxy) fix template errors when nothing is configured
(cherry picked from commit
6c2e1467
)
parent
ff37598f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
newsyslog.conf
src/opnsense/service/templates/OPNsense/Proxy/newsyslog.conf
+1
-1
rc.conf.d
src/opnsense/service/templates/OPNsense/Proxy/rc.conf.d
+1
-1
squid.conf
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
+3
-1
No files found.
src/opnsense/service/templates/OPNsense/Proxy/newsyslog.conf
View file @
a6ca7de3
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
{%
if
OPNsense
.
proxy
.
general
.
enabled
|
default
(
"0"
) ==
"1"
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.general.enabled'
)
and
OPNsense
.
proxy
.
general
.
enabled
|
default
(
"0"
) ==
"1"
%}
/
var
/
log
/
squid
/
access
.
log
squid
:
squid
644
14
* @
T00
ZB
/
var
/
run
/
squid
/
squid
.
pid
30
/
var
/
log
/
squid
/
access
.
log
squid
:
squid
644
14
* @
T00
ZB
/
var
/
run
/
squid
/
squid
.
pid
30
/
var
/
log
/
squid
/
cache
.
log
squid
:
squid
644
2
* @
T00
ZB
/
var
/
run
/
squid
/
squid
.
pid
30
/
var
/
log
/
squid
/
cache
.
log
squid
:
squid
644
2
* @
T00
ZB
/
var
/
run
/
squid
/
squid
.
pid
30
/
var
/
log
/
squid
/
store
.
log
squid
:
squid
644
2
* @
T00
ZB
/
var
/
run
/
squid
/
squid
.
pid
30
/
var
/
log
/
squid
/
store
.
log
squid
:
squid
644
2
* @
T00
ZB
/
var
/
run
/
squid
/
squid
.
pid
30
...
...
src/opnsense/service/templates/OPNsense/Proxy/rc.conf.d
View file @
a6ca7de3
squid_enable
={%
if
OPNsense
.
proxy
.
general
.
enabled
|
default
(
"0"
)
==
"1"
%}
YES
{%
else
%}
NO
{%
endif
%}
squid_enable
={%
if
helpers
.
exists
(
'
OPNsense
.
proxy
.
general
.
enabled
'
)
and
OPNsense
.
proxy
.
general
.
enabled
|
default
(
"0"
)
==
"1"
%}
YES
{%
else
%}
NO
{%
endif
%}
squid_opnsense_bootup_run
=
"/usr/local/opnsense/scripts/proxy/setup.sh"
squid_opnsense_bootup_run
=
"/usr/local/opnsense/scripts/proxy/setup.sh"
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
View file @
a6ca7de3
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# Do not edit this file manually.
# Do not edit this file manually.
# setup listen configuration
# setup listen configuration
{%
if
OPNsense
.
proxy
.
forward
.
transparentMode
==
'1'
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.transparentMode'
)
and
OPNsense
.
proxy
.
forward
.
transparentMode
==
'1'
%}
# transparant mode, listen on localhost
# transparant mode, listen on localhost
http_port
127
.
0
.
0
.
1
:{{
OPNsense
.
proxy
.
forward
.
port
}}
intercept
http_port
127
.
0
.
0
.
1
:{{
OPNsense
.
proxy
.
forward
.
port
}}
intercept
{%
endif
%}
{%
endif
%}
...
@@ -276,7 +276,9 @@ cache_dir ufs {{OPNsense.proxy.general.cache.local.directory}} {{OPNsense.proxy.
...
@@ -276,7 +276,9 @@ cache_dir ufs {{OPNsense.proxy.general.cache.local.directory}} {{OPNsense.proxy.
{%
endif
%}
{%
endif
%}
{%
endif
%}
{%
endif
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.general.cache.local'
) %}
cache_mem
{{
OPNsense
.
proxy
.
general
.
cache
.
local
.
cache_mem
|
default
(
'256'
) }}
MB
cache_mem
{{
OPNsense
.
proxy
.
general
.
cache
.
local
.
cache_mem
|
default
(
'256'
) }}
MB
{%
endif
%}
# Leave coredumps in the first cache dir
# Leave coredumps in the first cache dir
coredump_dir
/
var
/
squid
/
cache
coredump_dir
/
var
/
squid
/
cache
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment