Configuring port security features