Add support for user-agent and IP forwarding