jgmdev / ddos-deflate

Fork of DDoS Deflate with fixes, improvements and new features.
Other
763 stars 262 forks source link

view ip #9

Closed mostafa5688 closed 5 years ago

mostafa5688 commented 8 years ago

hello this script have problem to show ips for example if i use ddos -v this is displayed ::ffff:xxx.xxx.xxx.xxx and after blocking in csf isee this ::ffff:

this script cant block real ip

thank you

jgmdev commented 8 years ago

I haven't been able to test ipv6 but I guess it should be something easy to fix, at least for ipv4 it works correctly. The original script didn't even worked with ipv6 addresses returned on netstat. I fixed some of those issues but since I don't have an ipv6 setup to test it seems I let some bugs fly around :). Would be nice if you could test the script and echo the ip value that is been passed to csf, maybe there's some place where the last part of the ip is been stripped.

mostafa5688 commented 8 years ago

hello this problem is for ipv4 ( not for ipv6) for example i use this command [www@user ddos]# ./ddos.sh -v 5 ::ffff:111.111.11.111 1 ::ffff:11.11.11.1 1 ::ffff:222.222.222.222 1 ::ffff:222.222.122.222 1 333.333.333.333 ==> this is correct 1 333.333.333.333 ===> this is correct

my ip is ipv4 but i see in ::ffff first my ip this mean all ipv4 ip have ::ffff in first (before real ip)

best regards

mostafa5688 commented 8 years ago

i checked again this is for cloudflare problem.

jgmdev commented 8 years ago

It seems the pull #11 from @mean-cj should fix this issue, or at least part of it.

angristan commented 8 years ago

So for now it's not compatible with IPv6 ?