Re: who owns the ports?

2001-02-09 Thread John Mullee
#! /bin/sh # adaptible for upd also export TCPPRTS=`netstat -na -t | grep "^tcp" | sed "s/^[^:]*:\(.\).*/\1/g" | sort -nu` echo "Active tcp ports:" $TCPPRTS for PRT in ${TCPPRTS} ; do echo port number $PRT : `grep "[^0123456789]${PRT}\/tcp" /etc/services` export TPID=`fuser ${PRT}/tcp | c

Re: who owns the ports?

2001-02-08 Thread John Mullee
#! /bin/sh # adaptible for upd also export TCPPRTS=`netstat -na -t | grep "^tcp" | sed "s/^[^:]*:\(.\).*/\1/g" | sort -nu` echo "Active tcp ports:" $TCPPRTS for PRT in ${TCPPRTS} ; do echo port number $PRT : `grep "[^0123456789]${PRT}\/tcp" /etc/services` export TPID=`fuser ${PRT}/tcp |

Re: 'Generic' Firewall Rulesets?

2000-11-11 Thread John Mullee
This is my first-attempt, a learning experience... limitations are currently: * stateless: it doesn't conditionally enable ports when an outgoing session starts up, and disable them when session stops. ftp, irc require rather permissive filters otherwise.. * UDP ports: this version

Re: 'Generic' Firewall Rulesets?

2000-11-11 Thread John Mullee
This is my first-attempt, a learning experience... limitations are currently: * stateless: it doesn't conditionally enable ports when an outgoing session starts up, and disable them when session stops. ftp, irc require rather permissive filters otherwise.. * UDP ports: this version