Archivo de la categoría: Linux

PacketFence Free and Open Source NAC

https://packetfence.org/ PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) solution. Boasting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, powerful BYOD management options, 802.1X support, layer-2 isolation of problematic devices; PacketFence can be used to effectively secure networks small to very large… Leer más »

Mount LVM filesystems in live session

Several days ago, I gave you a tutorial on how to recover from a borked glibc, using tools available inside the installed system. We mentioned booting into a live session as the last but always viable option. Then, I thought of a little snag that may come your way. What if the installed system uses LVM? Normally,… Leer más »

iotop tool.

33 If you want to monitor the disk read and write speed real-time you can use the iotop tool. This is useful to get exact information about how a disk performs for a particular application or task. The output will show you read/write speed per process, and total read/write speed for the server, much similar to top. To… Leer más »

rsync copy

Note that if you’re on a slow link, or the server is under heavy load, the tool used for copying won’t be the bottleneck, and any way of copying will be slow anyway. This should give you the basic usage for copying between your local computer and the remote server: http://oreilly.com/pub/h/38 To copy from local computer… Leer más »

Remove all ZFS snapshots

#!/bin/bashfor snapshot in `zfs list -H -t snapshot | cut -f 1`dozfs destroy $snapshotdone

nginx monitoring prtg

If you’re merely interested in recording the connection information from the status page, you can use the embedded variables that the status module exposes, and format them for consumption by the HTTP Content sensor directly in the NGINX configuration: location /prtg { return 200 [$connections_active][$connections_reading][$connections_writing][$connections_waiting]; access_log off; allow x.x.x.x/y; deny all; } Reference: https://nginx.org/en/docs/http/ngx_http_stub_status_module.html

security online

https://www.acunetix.com/vulnerability-scanner/online-scanner/ https://www.tenable.com/products/nessus/nessus-professional https://www.tenable.com/products/tenable-io/web-application-scanning

fio some benchmarks iops

130 nvmeread: iops=37457write: iops=12491-bash-4.4# fio –randrepeat=1 –gtod_reduce=1 –name=test –filename=test –bs=4k –iodepth=64 –size=4G –readwrite=randrw –rwmixread=75 test: (g=0): rw=randrw, bs=4K-4K/4K-4K/4K-4K, ioengine=sync, iodepth=64 fio-2.0.14 Starting 1 process Jobs: 1 (f=1): [m] [100.0% done] [197.2M/67756K/0K /s] [50.7K/16.1K/0 iops] [eta 00m:00s] test: (groupid=0, jobs=1): err= 0: pid=39865: Tue Oct 30 16:47:38 2018 read : io=3071.7MB, bw=149830KB/s, iops=37457 , runt= 20993msec… Leer más »

Postfix Monitoring With Mailgraph And pflogsumm

https://www.howtoforge.com/postfix-monitoring-with-mailgraph-and-pflogsumm-on-debian-lenny     To install pflogsumm, we run aptitude install pflogsumm We want pflogsumm to be run by a cron job each day and send the report to [email protected]. Therefore we must configure our system that it writes one mail log file for 24 hours, and afterwards starts the next mail log so that we… Leer más »