Filtering traffic by IP and dynamic IP restrictions