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
abad6f99
Commit
abad6f99
authored
Apr 05, 2017
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proxy, add extended file logging option for
https://github.com/opnsense/core/issues/1507
parent
622e8dba
Changes
2
Hide 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 @
abad6f99
...
...
@@ -35,6 +35,7 @@
<Required>
N
</Required>
<BlankDesc>
File
</BlankDesc>
<OptionValues>
<file_extendend>
File (Extended)
</file_extendend>
<syslog>
Syslog
</syslog>
</OptionValues>
</target>
...
...
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
View file @
abad6f99
...
...
@@ -332,6 +332,9 @@ acl accesslog_ignore src {{ OPNsense.proxy.general.logging.ignoreLogACL.replace(
{%
endif
%}
{%
if
OPNsense
.
proxy
.
general
.
logging
.
target
|
default
(
''
) ==
'syslog'
%}
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
%}
access_log
/
var
/
log
/
squid
/
access
.
log
squid
{%
if
OPNsense
.
proxy
.
general
.
logging
.
ignoreLogACL
|
default
(
''
) %}!
accesslog_ignore
{%
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