OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: chocapic on March 07, 2018, 11:42:36 am

Title: CF for opnsense + HDD for log squid
Post by: chocapic on March 07, 2018, 11:42:36 am
Hi, I have an opnsense image that works on my cf,
I would like to add a disk hdd to keep the logs for 365 days.

I have several questions:

1 how to change the directory / var / log / squid / towards the HDD and that it remains during the next updates?

2 how to change the logrodate?

3 When I mount a partition it is deleted at the next reboot.

Thanks for your help
Title: Re: CF for opnsense + HDD for log squid
Post by: franco on March 07, 2018, 05:31:55 pm
/etc/fstab will put your disk under /var/log/squid/ if you add it. It will be mounted very early on boot automatically.


Cheers,
Franco
Title: Re: CF for opnsense + HDD for log squid
Post by: chocapic on March 07, 2018, 06:50:51 pm
Thanks Franco,
i add line:
mount /dev/ada1s1a /var/log/squid
It's that?
Title: Re: CF for opnsense + HDD for log squid
Post by: slemoal@tiscom.fr on March 08, 2018, 09:46:59 am
No, add:
/dev/ada1s1a /var/log/squid ufs rw,async 1 2

doc:
https://debian-facile.org/doc:systeme:fstab

:)