FreeBSD equivalent of lastb command?

Hello All,

Does anyone know the FreeBSD equivalent of the Linux "lastb" command or the location of the failed login attempts log file? (both would be nice)

The Server runs FreeBSD version 7.0-STABLE. What I am trying to do is to block the IP address of the failed login attempts on the server. Not sure if the iptable command below works on FreeBSD:

Code:
iptables -A INPUT -s [IP Address] -j DROP

Thanks,
Pete
 
It's called just last(1), on both Linux and FreeBSD. "lastb" on Linux is just an alias for last.

Both Linux and FreeBSD use /var/log/wtmp and /var/run/utmp to store this info. Linux also uses a bunch of other *tmp files, although who knows why. :)

/var/log/auth.log and /var/log/security and /var/log/messages are also useful.

Thankfully, no other OS uses iptables. FreeBSD uses ipfw(8) and pf(8) for packet filtering (and ipfw has been ported to Linux so there's finally a usable packet filter on Linux).
 
Back
Top