如何对项目进行编程以防止DDoS攻击 [英] How to program a project to prevent a DDoS attack
问题描述
我正在尝试学习有关计算机安全性的一些知识,并且我希望编写一个项目来防止DDoS攻击.
我从理论上完全了解DDoS攻击,现在我想看看采取的措施.
我只是想问一下我应该使用哪种语言以及应该使用哪些东西来节省时间.但是我当然想写很多代码,因为教育是这里的主要内容.
您可以编写一个侦听所有端口"(或至少要尝试的端口数量)的.net控制台应用程序.在MSDN上的 https://social.msdn.microsoft.com/Forums/vstudio/zh-CN/09828be4-6ac4-45ec-a116-508314dab793/listen-on-多端口?forum = csharpgeneral
您的程序然后可能会对检查了数据包的目标服务器进行相同的调用.但是,这更像是网关,而不是适当的防火墙,因为它无法拦截最初发送给它的IP流量(防火墙就像交换机一样,所有IP流量都流经它,无论它是否是目的地).>
I am trying to learn some things about computer security and I want to program a project that prevents a DDoS attack.
I fully understand DDoS attacks in theory and now I want to see some action.
I just wanna ask about what language should I use and what things should I implement for saving time. But of course I want to write a lot of parts of the code because education is the main thing here.
You can program a .net Console application that listens on 'all ports' (or at least as many as you want to experiment with). The basic code to listen on multiple ports is here on MSDN https://social.msdn.microsoft.com/Forums/vstudio/en-US/09828be4-6ac4-45ec-a116-508314dab793/listen-on-multiple-ports?forum=csharpgeneral
Your program would then presumably make identical calls to the destination server having examined the packets. However this is more like a Gateway than a proper firewall, as it cannot intercept IP traffic that wasnt originally sent to it (a firewall acts like a Switch in that all IP traffic flows through it whether it is the destination or not).
这篇关于如何对项目进行编程以防止DDoS攻击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!