Article View: mailing.unix.ipfilter
Article #1trying to understand ipfilter
From: Steve Fabac
Date: Sat, 09 Jan 2021 00:22
Date: Sat, 09 Jan 2021 00:22
47 lines
2618 bytes
2618 bytes
I have ipfilter set up on a SCO UNIX system and have scripted lock_sshd that monitors all ssh connection attempts and blocks failed log in for hackers scanning public IP for an open SSH port to hack. Lock_sshd add a rule to the /etc/ipf.conf file for the offending IP and generates a syslog entry for the block: Jan 7 22:07:01 host1 SSHCHECK: Added ipf block on port 22 from 185.143.223.136 for SSH abuse As part of the reporting lock_sshd populates /var/adm/logipf file from the command: date >> /var/adm/logipf /etc/ipfstat -i -h 2>/dev/null | grep -v "^0 " >> /var/adm/logipf echo >> /var/adm/logipf Recently I see an appalling number appearing in logipf: Thu Jan 7 21:24:01 CST 2021 1254 pass in on net1 from any to any head 300 Thu Jan 7 21:33:04 CST 2021 276 pass in on net1 from any to any head 300 Thu Jan 7 21:54:01 CST 2021 515 pass in on net1 from any to any head 300 Thu Jan 7 22:07:01 CST 2021 1200118 pass in on net1 from any to any head 300 Thu Jan 7 22:43:00 CST 2021 810 pass in on net1 from any to any head 300 Thu Jan 7 22:57:00 CST 2021 425 pass in on net1 from any to any head 300 Thu Jan 7 23:07:02 CST 2021 379 pass in on net1 from any to any head 300 The rule in /etc/ipf.conf for head 300: pass in on net1 all head 300 block in from 127.0.0.0/8 to any group 300 block in from 192.168.10.66/32 to any group 300 block in from 0.0.0.0/0xff000000 to any group 300 WTF 1.2 million packets received between Jan 7 21:54:01 and Jan 7 22:07:01?
Technical Details
Message-ID:
<6bcb5d67-3736-461f-aac5-168c5d698482n@googlegroups.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <6bcb5d67-3736-461f-aac5-168c5d698482n@googlegroups.com> Subject: trying to understand ipfilter Date: Sat, 09 Jan 2021 00:22:21 +0000 From: Steve Fabac <smfabac@att.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mail X-Received: by 2002:ac8:5745:: with SMTP id 5mr6052002qtx.131.1610151741717; Fri, 08 Jan 2021 16:22:21 -0800 (PST) X-Received: by 2002:a25:e708:: with SMTP id e8mr9392565ybh.174.1610151741510; Fri, 08 Jan 2021 16:22:21 -0800 (PST) Newsgroups: mailing.unix.ipfilter Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=136.35.137.98; posting-account=Mop4qwkAAAB2LvHoLA3QxH7YPUwo8v2T Nntp-Posting-Host: 136.35.137.98 User-Agent: G2/1.0 Mime-Version: 1.0 Injection-Date: Sat, 09 Jan 2021 00:22:21 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 46