[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
handy script on FW
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: handy script on FW
- From: steve <steve_(_at_)_szmidt_(_dot_)_org>
- Date: Sun, 27 Apr 2003 01:10:18 -0400
Hi,
Here's a simple script to monitor connections through your firewall.
#!/bin/sh
# /usr/local/sbin/connections
# This will display all your live connections
MyIP=`ifconfig -a|grep "255.255"|cut -f2 -d" "|cut -f1,2,3 -d"."`
SleepTime=5
clear
while [ 1 = 1 ]
do
pfctl -sall | grep $MyIP
#pfctl -sall | grep $MyIP|cut -f1,2,3,6,7,8,9,13 -d" "
sleep $SleepTime
clear
done
I've also added 80x50 support when there are many connections, to
/etc/rc.local
# Change Virtual Screen F6 to have 80x50 lines
wsfontload -h 8 -e ibm /usr/share/misc/pcvtfonts/vt220l.808
wsconscfg -dF 5
wsconscfg -t 80x50 5
--
Steve Szmidt
___________________________________________________________
HTML in e-mail is not safe. It let's spammers know to spam you more,
and sets you up for online attack through IE 4.x and above.
Using HTML in e-mail only promotes it as safe to the uninitiated.
Visit your host, monkey.org