如何伪造 udp 数据包的源 IP 地址? [英] How to fake source ip-address of a udp-packet?

查看:61
本文介绍了如何伪造 udp 数据包的源 IP 地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑以下几点:
您的 ISP 为您提供动态 IP 地址(例如 123.123.123.123).

Think about the following:
Your ISP offers you a dynamic ip-address (for example 123.123.123.123).

我的问题很简单(答案可能不是):

My question is simple (the answer may not be):

是否可以将带有外部源 ip(例如 124.124.124.124)的单个 udp 数据包发送到固定 ip 服务器?我不需要从服务器得到答案.我只想知道是否/如何使用伪造的源 IP 地址来完成这种一种方式的通信.

Is it possible to send a single udp-packet with an outer source-ip (for example 124.124.124.124) to a fixed-ip server? I don't need to get an answer from the server. I just want to know if/how this one way communication can be done, using a faked source-ip address.

服务器和其他任何人都应该无法找到真正的客户端 IP.

The server and no one else should not be able to find out the real client ip.

推荐答案

UDP 数据包实际上没有源(您的)IP 地址.源 IP 地址是发送它的数据包的一部分.因此您必须修改它包含在其中的数据包.因此,虽然它很重要,但它是可能的.UDP封闭数据包以供参考.

The UDP packet does not actually have the source (your) IP address. The source IP address is part of the packet it is sent in. So you would have to modify the packet it is enclosed in. So while it is non-trivial, it is possible. The packet structure for UDP, and the enclosing packets for reference.

这篇关于如何伪造 udp 数据包的源 IP 地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆