Connect middleware for IP Filtering