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
d02f17c5
Commit
d02f17c5
authored
Apr 05, 2017
by
Ad Schellevis
Committed by
Franco Fichtner
Apr 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proxy, add extended file logging option for
https://github.com/opnsense/core/issues/1507
(cherry picked from commit
abad6f99
)
parent
16608212
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
Proxy.xml
src/opnsense/mvc/app/models/OPNsense/Proxy/Proxy.xml
+1
-0
squid.conf
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
+3
-0
No files found.
src/opnsense/mvc/app/models/OPNsense/Proxy/Proxy.xml
View file @
d02f17c5
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
<Required>
N
</Required>
<Required>
N
</Required>
<BlankDesc>
File
</BlankDesc>
<BlankDesc>
File
</BlankDesc>
<OptionValues>
<OptionValues>
<file_extendend>
File (Extended)
</file_extendend>
<syslog>
Syslog
</syslog>
<syslog>
Syslog
</syslog>
</OptionValues>
</OptionValues>
</target>
</target>
...
...
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
View file @
d02f17c5
...
@@ -331,6 +331,9 @@ acl accesslog_ignore src {{ OPNsense.proxy.general.logging.ignoreLogACL.replace(
...
@@ -331,6 +331,9 @@ acl accesslog_ignore src {{ OPNsense.proxy.general.logging.ignoreLogACL.replace(
{%
endif
%}
{%
endif
%}
{%
if
OPNsense
.
proxy
.
general
.
logging
.
target
|
default
(
''
) ==
'syslog'
%}
{%
if
OPNsense
.
proxy
.
general
.
logging
.
target
|
default
(
''
) ==
'syslog'
%}
access_log
syslog
:
local4
.
info
{%
if
OPNsense
.
proxy
.
general
.
logging
.
ignoreLogACL
|
default
(
''
) %}!
accesslog_ignore
{%
endif
%}
access_log
syslog
:
local4
.
info
{%
if
OPNsense
.
proxy
.
general
.
logging
.
ignoreLogACL
|
default
(
''
) %}!
accesslog_ignore
{%
endif
%}
{%
elif
OPNsense
.
proxy
.
general
.
logging
.
target
|
default
(
''
) ==
'file_extendend'
%}
logformat
opnsense
%>
a
%[
ui
%>
eui
%[
un
[%
tl
]
"%rm %ru HTTP/%rv"
%>
Hs
%<
st
"%{Referer}>h"
"%{User-Agent}>h"
%
Ss
:%
Sh
access_log
/
var
/
log
/
squid
/
access
.
log
opnsense
{%
if
OPNsense
.
proxy
.
general
.
logging
.
ignoreLogACL
|
default
(
''
) %}!
accesslog_ignore
{%
endif
%}
{%
else
%}
{%
else
%}
access_log
/
var
/
log
/
squid
/
access
.
log
squid
{%
if
OPNsense
.
proxy
.
general
.
logging
.
ignoreLogACL
|
default
(
''
) %}!
accesslog_ignore
{%
endif
%}
access_log
/
var
/
log
/
squid
/
access
.
log
squid
{%
if
OPNsense
.
proxy
.
general
.
logging
.
ignoreLogACL
|
default
(
''
) %}!
accesslog_ignore
{%
endif
%}
{%
endif
%}
{%
endif
%}
...
...
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