Entries Tagged as ‘apple’

November 29, 2007

Compiling tcpdstat on Mac OSX (quick fix)

Quick fix for compiling tcpdstat on Mac OSX (Leopard, although probably works for Tiger too).
If you get this error:
cc -I. -I../libpcap-0.7.1 -DLINUX -D__FAVOR_BSD -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -L../libpcap-0.7.1 -c stat.c
cc -I. -I../libpcap-0.7.1 -DLINUX -D__FAVOR_BSD -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -L../libpcap-0.7.1 -c net_read.c
net_read.c:74:1: warning: “__FAVOR_BSD” redefined
<command line>:1:1: warning: this is the location of the previous definition
net_read.c:149: error: static declaration [...]

November 16, 2007

A good set of baseline ipfw firewall rules for Mac OSX

I want to point out the excellent baseline firewall rules posted by rmogull over on his blog. Check them out if you’re looking for a starting point for ipfw rules on OSX. Thanks rmogull!

November 15, 2007

Compile Ettercap-NG-0.7.3 natively on Leopard Fix

UPDATE 2:
njstaticuser mentioned he would like to know where to get this file below: I believe the file should be in /opt/local/var/macports/build/ – there should be a folder called _opt_local_var_macports_sources_rsync.macports.org_release_ports_<ettercap-ng> where <ettercap-ng> will be something like “net_ettercap-ng” (I don’t know the exact name because it has been cleaned from that directory). Under this directory there [...]

November 13, 2007

Fix for being unable to bootstrap fink on Leopard

If you run into the following error trying to bootstrap fink (I was using version 0.27.8) on Leopard:
./Command/failure………………….ok 1/0
./Command/failure………………….NOK 24/0# Failed test at ./Command/failure.t line 85.
# ”
# !=
# ‘0′
./Command/failure………………….ok 41/0# Looks like you failed 1 test of [...]

November 13, 2007

Error installing arpwatch on Mac OSX Fix

Another quickie,
Anyone running into the following error:
$ sudo make install
Password:
/usr/bin/install -c -m 555 -o bin -g bin arpwatch /usr/local/sbin
install: bin: Invalid argument
make: *** [install] Error 67
When trying to install arpwatch, edit the Makefile and replace all the occurrences of “-o bin” with “-o root” and all the occurrences of “-g bin” with “-g wheel“
Hope this [...]