Home > computers > linux > cmdline > grepcidr | About

To grep on more than one range, simply separate the ranges with comas, like so :


root@messagerie[10.10.10.19] ~ # grepcidr -v 192.168.0.0/16,10.10.10.0/24 /var/www/roundcubemail-1.2.4/logs/userlogins | head
[02-Apr-2018 15:26:02 +0100]: <7vpkf1rr> Access denied for dzapioudza from <69.30.218.150> : not in the whitelist
[02-Apr-2018 15:29:15 +0100]: <7vpkf1rr> Access denied for dzapioudza from <69.30.218.150> : not in the whitelist
[02-Apr-2018 15:31:36 +0100]: <elrdbnsa> Access denied for xxx@mydomain.tld from <105.96.64.9> : not in the whitelist
[02-Apr-2018 15:32:58 +0100]: <7vpkf1rr> Access denied for dza from <69.30.218.150> : not in the whitelist
[02-Apr-2018 15:35:12 +0100]: <h30p3srm> Access denied for xxx@mydomain.tld from <197.201.15.44> : not in the whitelist
[02-Apr-2018 15:36:01 +0100]: <v3cvunq9> Access denied for xxx@mydomain.tld from <105.96.73.64> : not in the whitelist
[02-Apr-2018 15:37:59 +0100]: <ml050082> Access denied for xxx@mydomain.tld from <41.101.210.106> : not in the whitelist
[02-Apr-2018 15:38:36 +0100]: <7vpkf1rr> Access denied for dza from <69.30.218.150> : not in the whitelist
[02-Apr-2018 15:38:50 +0100]: <7svfqi94> Access denied for xxx@mydomain.tld from <196.20.114.58> : not in the whitelist
[02-Apr-2018 15:48:40 +0100]: <7vpkf1rr> Access denied for dzaezaa from United States <69.30.218.150> : not in the whitelist
root@messagerie[10.10.10.19] ~ #


—-

contact : @ychaouche yacinechaouche at yahoocom


QR Code
QR Code grepcidr (generated for current page)