Why is it not possible to fake an IP address?

前端 未结 4 1453
清歌不尽
清歌不尽 2020-12-13 17:22

I know it\'s possible to change an IP address using a proxy, but I\'m interested in why is it not possible to change it by sending changed data from a single computer?

4条回答
  •  余生分开走
    2020-12-13 18:09

    It is fully possible to send data with a fake sender IP. You'll have a hard time getting replies though, since the replies will be sent to the fake IP and never reach you. Additionally, if you send data with a "from" IP that a router doesn't expect to arrive from you, the router will often simply drop it, and sometimes inform the ISP that you're up to something that violates your TOS.

    EDIT: In response to edited post.

    Any protocol (such as HTTP) that is built on top of a connection-oriented protocol (TCP) will require a valid IP. The cases where fake IPs have been prevalent mostly involve Denial Of Service attacks, using UDP, ICMP or the initial SYN packet in a TCP handshake.

提交回复
热议问题