pfctl -sa
[status]command:/usr/local/etc/rc.d/oscrowdsec status; exit 0type: script_outputmessage: oscrowdsec status[...]
[update]command:sh -c 'curl ifconfig.me > /tmp/updated_address'parameters:type:script_outputmessage:Atualiza o ip externo do firewall no ddnsdescription:Realiza um teste de IP externo do firewall
pkg install -y os-crowdsec
cscli decisions add --type ban --ip $REMOTEHOST --reason teste-luciano --duration 1m
2024-11-08 23:22T0300 pf[101]: user="ludarkstar99" action="reject-auth" message="user ludarkstar99 has denied access to this terminal. session expired"
cscli collections install crowdsecurity/naxsicscli collections install crowdsecurity/base-http-scenarios
name: darkstar/lucianodescription: "nao bloqueia poh"whitelist: reason: "home office tiolulu" cidr: - "200.200.200.0/24" - "189.89.21.0/21" - "10.0.10.0/24"
echo '10.0.10.65 - - [09/Nov/2024:02:17:32 -0300] "GET /test/luciano HTTP/2.0" 404 92 "-" "Go-http-client/1.1" "177.70.23.45"' | cscli explain --type nginx -f-
$ cat /etc/passwd[...]root:*:0:0:System Administrator:/root:/usr/local/sbin/opnsense-shell[...]
less /usr/local/sbin/opnsense-shell[...]#!/bin/sh# Copyright (c) 2014-2018 Franco Fichtner <franco@opnsense.org># Copyright (c) 2004-2011 Scott Ullrich <sullrich@gmail.com># Copyright (c) 2003-2004 Manuel Kasper <mk@neon1.net># All rights reserved.# make sure the user can't kill ustrap : 2trap : 3[...]
# atualiza a lista de pacotes disponíveis para baixarpkg update# instala o tmux. quando perguntado, confirme com yes.pkg install tmux
FreeBSD + ":" + Versão + ":" + Arquitetura = FreeBSD:14:amd64
pkg config abi
Index of /FreeBSD:14:amd64/24.7/latest[ICO] Name Last modified Size Description[PARENTDIR] Parent Directory - [DIR] All/ 2024-11-20 13:21 - [DIR] Latest/ 2024-11-20 13:21 - [ ] meta.conf 2024-11-20 12:15 163 [ ] meta.pkg 2024-11-20 12:15 1.4K [ ] meta.txz 2024-11-20 12:15 1.4K [ ] packagesite.pkg 2024-11-20 12:15 244K [ ] packagesite.txz 2024-11-20 12:15 244K
{"name":"zip","origin":"archivers/zip","version":"3.0_2","comment":"Create/update ZIP files compatible with PKZIP","maintainer":"ler@FreeBSD.org","www":"https://infozip.sourceforge.net/Zip.html","abi":"FreeBSD:14:amd64","arch":"freebsd:14:x86:64","prefix":"/usr/local","sum":"c3021db3edcc23c1f9796714cc0775c28cc982693afdfae6fd228473e66182c4","flatsize":476414,"path":"All/zip-3.0_2.pkg","repopath":"All/zip-3.0_2.pkg", [...]
# sincronizar a lista de pacotes com o repositório$ pkg update# instalar o gping $ pkg install -y gping# testar o ping dentro da matrix$ gping 1.1.1.1
mimugmail: { url: "https://opn-repo.routerperformance.net/repo/${ABI}", priority: 5, enabled: yes}
# sincronizar a lista de pacotes$ pkg update# instalar o tema dracula$ pkg install os-theme-dracula
pkg search -g -r mimugmail \*