Invisible gateway - bridge

Bridge: machine with no IP address of its own, between the Internet and a local network

/etc/hostname.ep0

up

/etc/hostname.ep1

up

/etc/bridgename.bridge0

  add ep0 add ep1 blocknonip ep0 blocknonip ep1 up

/etc/pf.conf

ext_if = ep0
int_if  = ep1
interesting-traffic = { ... }
block all
pass quick on $extern all
pass log on $int_if from $internal_net to any port $interesting-traffic keep state

Se also bridge(4), brconfig(8)

On NetBSD, needs custom kernel