#!/bin/sh # I believe I originally heard of this here: # http://seclists.org/lists/focus-ids/2003/Oct/0028.html kldload ng_ether ifconfig fxp1 promisc -arp up ifconfig fxp2 promisc -arp up ngctl mkpeer . eiface hook ether ngctl mkpeer ngeth0: one2many lower one ngctl connect fxp1: ngeth0:lower lower many0 ngctl connect fxp2: ngeth0:lower lower many1 ifconfig ngeth0 -arp up