chiragbiradar / DDoS-Attack-Detection-and-Mitigation

SDN networks (Software Defined Networking ) are exposed to new security threats and attacks, especially Distributed Denial of Service (DDoS) attacks. For this aim, we have proposed a model able to detect and mitigate attacks automatically in SDN networks using Machine Learning (ML)
http://www.fiverr.com/s/m5Y8Z6x
MIT License
131 stars 24 forks source link

Steps to Perform #5

Closed Dekryptxr closed 1 year ago

Dekryptxr commented 1 year ago

Step-1 install Virtual box or VM-ware workstation (Virtual box preffered) Step-2 install Mininet-VM Step-3 install Ubuntu in virtual box Step-4 install ryu-controller in ubuntu vm Step-5 Use git clone to install the code files

git clone https://github.com/chiragbiradar/DDoS-Attack-Detection-and-Mitigation-using-Machine-Learning.git

Commands for Ubuntu STEP 1. Do “ifconfig” and copy the ipaddress. STEP 2. Navigate to “controller” directory. STEP 3. Turn on ryu-controller with the command: “ryu-manager KNN_Controller.py” and then go to MininetVM

Commands for Mininet STEP 1. Navigate to the “mininet” folder. STEP 2. Edit topology.py with “nano topology.py” now go to the last section and replace the ip address with Victim’s ip address then save and exit. STEP 3. Now activate mininet with “sudo python topology.py” (check your python version if its 3 then do “python3”) Step 4. Test if your system is working with commands like “h1 ping h3” if you don’t have hping3 installed then install it with the following command “sudo apt-get install hping3” Step 5: You can also test the system with “pingall” Step 6: start the Attack, these are the following commands: Icmp flood command: hping3 -1 -V -d 120 -w 64 -p 80 --rand-source –flood SYN flood command: hping3 -S -V -d 120 -w 64 -p 80 --rand-source --flood Udp flood command: hping3 -2 -V -d 120 -w 64 -p 80 --rand-source –flood You can give anyone of these 3 And use these commands like if you want to perform attack from h2 host to h10 host then: h1 hping3 -1 -V -d 120 -w 64 -p 80 --rand-source --flood h2 here you can change hosts as you like

Now you will see in the Ubuntu VM that the attack is detected and mitigated.

Now what you just performed is a DOS attack, to make it DDOS you can create different instances of Mininet or you can use two different machine to perform or you can use remote ssh server

Shashanka-G commented 7 months ago

image

For step 2 do i need to modify controllers ip address? @chiragbiradar @Dekryptxr

chiragbiradar commented 7 months ago

Yes @Shashanka-G

cynthia-nohuje commented 5 months ago

Unable to contact the remote controller at 10.0.2.101:6653

cynthia-nohuje commented 5 months ago

please help me with this error

Screenshot 2024-04-08 104625

chiragbiradar commented 5 months ago

@cynthia-nohuje try using VM images provided in the repo

cynthia-nohuje commented 4 months ago

Hie sir please help me , after i have downloaded and imported the VMs provided in the repo my ethernet stopped working .

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free.www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, Apr 9, 2024 at 9:07 AM Chirag Biradar @.***> wrote:

@cynthia-nohuje https://github.com/cynthia-nohuje try using VM images provided in the repo

— Reply to this email directly, view it on GitHub https://github.com/chiragbiradar/DDoS-Attack-Detection-and-Mitigation/issues/5#issuecomment-2044287576, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3774JWIS2FKLSUBYYHD26TY4OHT7AVCNFSM6AAAAAAWMIXMQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUGI4DONJXGY . You are receiving this because you were mentioned.Message ID: <chiragbiradar/DDoS-Attack-Detection-and-Mitigation/issues/5/2044287576@ github.com>

cynthia-nohuje commented 4 months ago

ryu error when using the vms povided thats the error im getting somebody help