read up on tcp wrappers and use it.
thanx,
bill