Spoofing the origination IP address of an HTTP request

前端 未结 5 1874
故里飘歌
故里飘歌 2020-12-08 05:18

This only needs to work on a single subnet and is not for malicious use.

I have a load testing tool written in Python that basically blasts HTTP requests at a URL.

5条回答
  •  忘掉有多难
    2020-12-08 05:45

    I suggest seeing if you can configure your load balancer to make it's decision based on the X-Forwarded-For header, rather than the source IP of the packet containing the HTTP request. I know that most of the significant commercial load balancers have this capability.

    If you can't do that, then I suggest that you probably need to configure a linux box with a whole heap of secondary IP's - don't bother configuring static routes on the LB, just make your linux box the default gateway of the LB device.

提交回复
热议问题