/usr/local/etc/rc.restart_webgui
11) Restart web interface
Kann ich die logs per serial löschen? Habe keinen Befehl gefunden, weder ein Verzeichnis wechseln geht noch löschen.
root@opnsense:/var/log # cd /root@opnsense:/ # ls -ltotal 109-rw-r--r-- 2 root wheel 1152 Sep 13 12:21 .cshrc-rw-r--r-- 1 root wheel 0 Oct 14 15:56 .probe.for.readonly-rw-r--r-- 2 root wheel 507 Sep 13 12:21 .profile-r--r--r-- 1 root wheel 6109 Sep 13 12:22 COPYRIGHTdrwxr-xr-x 2 root wheel 47 Oct 12 13:50 bindrwxr-xr-x 15 root wheel 71 Oct 12 13:59 boot-rw-r--r-- 1 root wheel 12 Oct 14 15:57 boot.configdrwxr-xr-x 4 root wheel 9 Oct 14 15:56 confdr-xr-xr-x 14 root wheel 512 Oct 14 15:56 dev-rw------- 1 root wheel 4096 Oct 12 13:40 entropydrwxr-xr-x 29 root wheel 103 Oct 14 20:34 etcdrwxr-xr-x 2 root wheel 2 Oct 12 13:35 homedrwxr-xr-x 5 root wheel 65 Oct 12 13:50 libdrwxr-xr-x 3 root wheel 4 Oct 12 13:50 libexecdrwxr-xr-x 2 root wheel 2 Sep 13 12:21 mediadrwxr-xr-x 2 root wheel 2 Sep 13 12:21 mntdrwxr-xr-x 2 root wheel 2 Sep 13 12:21 netdr-xr-xr-x 2 root wheel 2 Jul 27 12:50 procdrwxr-xr-x 2 root wheel 2 Sep 13 12:21 rescuedrwxr-x--- 3 root wheel 13 Oct 16 15:34 rootdrwxr-xr-x 2 root wheel 144 Oct 12 13:50 sbinlrwxr-xr-x 1 root wheel 11 Sep 13 12:21 sys -> usr/src/sysdrwxrwxrwt 4 root wheel 29 Oct 16 20:21 tmpdrwxr-xr-x 13 root wheel 13 Oct 12 13:50 usrdrwxr-xr-x 32 root wheel 32 Oct 12 14:06 vardrwxr-xr-x 2 root wheel 2 Oct 12 13:37 zrootroot@opnsense:/ # cd varroot@opnsense:/var # ls -ltotal 79drwxr-x--- 2 root wheel 2 Sep 13 12:21 accountdrwxr-xr-x 2 root wheel 2 Oct 12 13:56 agentxdrwxr-xr-x 4 root wheel 4 Sep 13 12:21 atdrwxr-x--- 4 root audit 4 Sep 13 12:21 auditdrwxrwx--- 2 root authpf 2 Sep 13 12:21 authpfdrwxr-x--- 2 root wheel 13 Oct 16 03:13 backupsdrwxr-xr-x 5 root wheel 5 Sep 13 12:21 cachedrwxr-x--- 2 root wheel 2 Jul 27 12:51 crashdrwxr-x--- 3 root wheel 3 Sep 13 12:21 crondrwxr-xr-x 20 root wheel 29 Oct 16 19:57 dbdrwxr-xr-x 8 dhcpd dhcpd 8 Oct 12 13:36 dhcpddrwxr-xr-x 2 bind bind 2 Oct 12 14:06 dumpdr-xr-xr-x 2 root wheel 2 Sep 13 12:21 emptydrwxr-xr-x 4 root wheel 18 Oct 12 14:06 etcdrwxrwxr-x 2 root games 2 Sep 13 12:21 gamesdrwx------ 2 root wheel 2 Sep 13 12:21 heimdaldrwxr-xr-x 3 root wheel 3 Oct 12 13:35 libdrwxr-xr-x 23 root wheel 35 Oct 16 03:01 logdrwxrwxr-x 2 root mail 5 Oct 14 15:49 maildrwxr-xr-x 2 daemon wheel 2 Sep 13 12:21 msgsdrwxr-xr-x 3 root wheel 4 Oct 14 15:57 net-snmpdrwxr-xr-x 2 root wheel 2 Sep 13 12:21 preservedrwxr-xr-x 11 root wheel 47 Oct 16 03:13 rundrwxrwxr-x 2 root daemon 2 Sep 13 12:21 rwhodrwxr-xr-x 8 root wheel 8 Oct 12 13:57 spooldrwxr-xr-x 3 squid squid 3 Oct 11 05:47 squiddrwxr-xr-x 2 bind bind 2 Oct 12 14:06 statsdrwxrwxrwt 3 root wheel 3 Oct 16 19:54 tmpdrwxr-xr-x 10 unbound unbound 22 Oct 12 14:06 unbounddrwxr-xr-x 2 root wheel 2 Sep 13 12:21 yproot@opnsense:/var # cd logroot@opnsense:/var/log # ls -ltotal 925drwx------ 2 root wheel 8 Oct 16 20:01 audit-rw-r--r-- 1 root wheel 6910 Oct 14 15:57 boot.logdrwx------ 2 root wheel 8 Oct 16 20:01 configddrwxr-x--- 2 root wheel 5 Oct 12 18:55 crowdsecdrwx------ 2 root wheel 8 Oct 16 20:01 dhcpd-rw------- 1 root wheel 94597 Oct 16 03:01 dmesg.today-rw------- 1 root wheel 94564 Oct 15 03:01 dmesg.yesterdaydrwx------ 2 root wheel 8 Oct 16 20:01 filterdrwx------ 2 root wheel 5 Oct 16 20:01 firewall-rw-r--r-- 1 root wheel 5904447 Oct 12 13:39 installer.logdrwx------ 2 www www 5 Oct 16 20:01 lighttpd-rw------- 1 root wheel 648 Oct 13 03:01 mount.todaydrwxr-xr-x 2 bind bind 8 Oct 16 18:31 nameddrwxr-xr-x 2 root wheel 2 Oct 12 13:43 ntpdrwx------ 2 root wheel 5 Oct 16 20:01 ntpd-rw------- 1 root wheel 1111 Oct 16 03:01 pf.today-rw------- 1 root wheel 786 Oct 15 03:01 pf.yesterdaydrwx------ 2 root wheel 5 Oct 16 20:01 pkgdrwx------ 2 root wheel 5 Oct 16 20:01 portalauthdrwx------ 2 root wheel 5 Oct 16 20:01 postfixdrwx------ 2 root wheel 5 Oct 16 20:01 pppsdrwx------ 2 root wheel 4 Oct 16 20:01 resolverdrwx------ 2 root wheel 5 Oct 16 20:01 routing-rw------- 1 root wheel 2979 Oct 13 03:01 setuid.today-rw-r--r-- 1 root wheel 23 Oct 14 15:57 snmpd.logdrwxr-x--- 2 squid squid 2 Oct 12 13:39 squiddrwx------ 2 root wheel 2 Oct 12 13:39 suricatadrwx------ 2 root wheel 8 Oct 16 20:01 systemdrwxr-x--- 2 telegraf telegraf 3 Oct 14 20:17 telegraf-rw------- 1 root wheel 1977 Oct 14 20:34 userlog-rw-r--r-- 1 root wheel 197 Oct 16 20:21 utx.lastlogin-rw-r--r-- 1 root wheel 2846 Oct 16 20:21 utx.logdrwx------ 2 root wheel 5 Oct 16 20:01 wireguardroot@opnsense:/var/log #
hmm... hat bei mir nur 5 files angezeigt