Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
CF for opnsense + HDD for log squid
« previous
next »
Print
Pages: [
1
]
Author
Topic: CF for opnsense + HDD for log squid (Read 5368 times)
chocapic
Newbie
Posts: 18
Karma: 1
CF for opnsense + HDD for log squid
«
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
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: CF for opnsense + HDD for log squid
«
Reply #1 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
Logged
chocapic
Newbie
Posts: 18
Karma: 1
Re: CF for opnsense + HDD for log squid
«
Reply #2 on:
March 07, 2018, 06:50:51 pm »
Thanks Franco,
i add line:
mount /dev/ada1s1a /var/log/squid
It's that?
Logged
slemoal@tiscom.fr
Newbie
Posts: 42
Karma: 2
Re: CF for opnsense + HDD for log squid
«
Reply #3 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
Logged
----------------------------------------------------------
Sébastien Le Moal
Directeur Technique de la société Tiscom
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
CF for opnsense + HDD for log squid