configure a passive or active connection