OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: gaurovsoni on March 24, 2017, 08:07:31 pm

Title: squid.conf reset to default, on reboot only at access_log point.
Post by: gaurovsoni 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

Title: Re: squid.conf reset to default, on reboot only at access_log point.
Post by: fabian 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).
Title: Re: squid.conf reset to default, on reboot only at access_log point.
Post by: gaurovsoni 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  :-X :-X :-[ :'( :'( :'(
Title: Re: squid.conf reset to default, on reboot only at access_log point.
Post by: gaurovsoni on March 25, 2017, 03:50:04 pm
Figure It out :
/usr/local/opnsense/service/templates/OPNsense/Proxy/squid.conf <-- edited here :)
Title: Re: squid.conf reset to default, on reboot only at access_log point.
Post by: djGrrr on March 25, 2017, 05:19:12 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.
Title: Re: squid.conf reset to default, on reboot only at access_log point.
Post by: gaurovsoni on March 25, 2017, 06:50:47 pm
Any Alternative  :'( so that even after update the log pattern remains same
Title: Re: squid.conf reset to default, on reboot only at access_log point.
Post by: fabian 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.
Title: Re: squid.conf reset to default, on reboot only at access_log point.
Post by: djGrrr 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
Title: Re: squid.conf reset to default, on reboot only at access_log point.
Post by: gaurovsoni 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 (https://github.com/opnsense/core/issues/1507)