CF for opnsense + HDD for log squid

Started by chocapic, March 07, 2018, 11:42:36 AM

Previous topic - Next topic
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

/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

Thanks Franco,
i add line:
mount /dev/ada1s1a /var/log/squid
It's that?

No, add:
/dev/ada1s1a /var/log/squid ufs rw,async 1 2

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

:)
----------------------------------------------------------
Sébastien Le Moal
Directeur Technique de la société Tiscom