Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
17.1 Legacy Series
»
squid.conf reset to default, on reboot only at access_log point.
« previous
next »
Print
Pages: [
1
]
Author
Topic: squid.conf reset to default, on reboot only at access_log point. (Read 6806 times)
gaurovsoni
Newbie
Posts: 17
Karma: 2
squid.conf reset to default, on reboot only at access_log point.
«
on:
March 24, 2017, 08:07:31 pm »
I made a change on my --- >
/usr/local/squid/
squid.conf
basically changed :
access_log /var/log/squid/access.log
squid
---- > access_log /var/log/squid/access.log
combined
did this Just To Get squid Logs in a different format then UNIX time format, & to get a little verbose detail.
and restarted squid, every thing works fine, logs in access.logs & on webUI shown correctly...
REAL problem - when i reboot opnsense. the earlier changed reset to defaults. means
access_log /var/log/squid/access.log
combined
----> access_log /var/log/squid/access.log
squid
No more verbose logs
NOTE - me not using live CD, installed the opnsense using OPNsense17.1.iso & removed the fking CDROM , Current Firmware 17.1.3, latest i believe
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: squid.conf reset to default, on reboot only at access_log point.
«
Reply #1 on:
March 24, 2017, 08:36:27 pm »
This is how OPNsense works. The configuration files are generated and the services are managed. Your always will be undone as long as the changes are done in managed files. You need to use an included path for you file or extend the functionality of OPNsense and push your changes upstream (otherwise you cannot update your appliance).
Logged
gaurovsoni
Newbie
Posts: 17
Karma: 2
Re: squid.conf reset to default, on reboot only at access_log point.
«
Reply #2 on:
March 25, 2017, 03:19:01 pm »
can u please tellme where are the managed files for squid, ill try to manipulate , & please help me with the include process as well
Logged
gaurovsoni
Newbie
Posts: 17
Karma: 2
Re: squid.conf reset to default, on reboot only at access_log point.
«
Reply #3 on:
March 25, 2017, 03:50:04 pm »
Figure It out :
/usr/local/opnsense/service/templates/OPNsense/Proxy/squid.conf <-- edited here
Logged
djGrrr
Full Member
Posts: 112
Karma: 22
Re: squid.conf reset to default, on reboot only at access_log point.
«
Reply #4 on:
March 25, 2017, 05:19:12 pm »
Quote from: gaurovsoni on March 25, 2017, 03:50:04 pm
Figure It out :
/usr/local/opnsense/service/templates/OPNsense/Proxy/squid.conf <-- edited here
All your changes in that file will be overwritten when you upgrade opnsense.
Logged
gaurovsoni
Newbie
Posts: 17
Karma: 2
Re: squid.conf reset to default, on reboot only at access_log point.
«
Reply #5 on:
March 25, 2017, 06:50:47 pm »
Any Alternative
so that even after update the log pattern remains same
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: squid.conf reset to default, on reboot only at access_log point.
«
Reply #6 on:
March 25, 2017, 06:56:07 pm »
The file has some include directives you should be able to use. If you use a file which is included automatically, it will not be deleted but it may break you configuration file some day.
Logged
djGrrr
Full Member
Posts: 112
Karma: 22
Re: squid.conf reset to default, on reboot only at access_log point.
«
Reply #7 on:
March 26, 2017, 12:59:36 am »
If all you are looking for is that small logging change, then I would suggest a feature request to add a setting for log type at
https://github.com/opnsense/core/issues
Logged
gaurovsoni
Newbie
Posts: 17
Karma: 2
Re: squid.conf reset to default, on reboot only at access_log point.
«
Reply #8 on:
March 26, 2017, 08:39:45 pm »
Made Every Thing clear, users having similar problem can troubleshoot here,
Detailed Description with screen shots --->
https://github.com/opnsense/core/issues/1507
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
17.1 Legacy Series
»
squid.conf reset to default, on reboot only at access_log point.