• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux DDoS Protection Script For iptables

Just wondering, do I need to run this script everytime the computer restarts? (do I need to add cronjob to start it in other words)
edit: also wondering where I can access the logs if using this script?
 
Last edited:
Hello,

I tried, but:

modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.14.32-xxxx-std-ipv6-64/modules.dep.bin'
modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.14.32-xxxx-std-ipv6-64/modules.dep.bin'
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/all/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/bond0/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/default/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/dummy0/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/eth0/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/eth1/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/ip6tnl0/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/lo/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/sit0/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/tunl0/mc_forwarding: Permiso denegado
 
Yo ueed root in order to do that so run:
su
Hello,

I tried, but:

modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.14.32-xxxx-std-ipv6-64/modules.dep.bin'
modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.14.32-xxxx-std-ipv6-64/modules.dep.bin'
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/all/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/bond0/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/default/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/dummy0/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/eth0/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/eth1/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/ip6tnl0/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/lo/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/sit0/mc_forwarding: Permiso denegado
./addos.sh: línea 83: /proc/sys/net/ipv4/conf/tunl0/mc_forwarding: Permiso denegado
 
Hello,

I've get it to work but now it is blocking access to the server 7171: S
Do I have to add a rule?

Thanks
 
Many players do not have access to the server or the web with this script :s
 
i get this error !!!
-bash: ./addos.sh: /bin/bash^M: bad interpreter: No such file or directory
 
You ego is crazy bro. Just let it be we all help each other ain't no one cares.

This thread is ancient bro. And WalkingDragon hasn't logged in for two years, and hasn't made a post in four years.


And the only reason this thread even got bumped is because this guy uploaded a file from FTP software that kept DOS line endings when transferring files to a Unix box.
 
This thread is ancient bro. And WalkingDragon hasn't logged in for two years, and hasn't made a post in four years.
It just poped out on my screen for some reason lol. I had to comment. Oh well. 😝
 
This thread is ancient bro. And WalkingDragon hasn't logged in for two years, and hasn't made a post in four years.


And the only reason this thread even got bumped is because this guy uploaded a file from FTP software that kept DOS line endings when transferring files to a Unix box.
rather used text editor and never changed endings from CRLF to LF. ftp does not change endings...
 
Either way, it's an irritating holdover from OS/2, just like drive letters.
 
how i can upload files ?!
This thread is ancient bro. And WalkingDragon hasn't logged in for two years, and hasn't made a post in four years.


And the only reason this thread even got bumped is because this guy uploaded a file from FTP software that kept DOS line endings when transferring files to a Unix box.
 
Simple: When you are copy pasting a script you found online to your text editor in a new file, your text editor is gonna presume its for Windows. You must tell your text editor to use Linux line endings when you save it.
 
now this error !
Code:
./build.sh: 88: ./build.sh: cannot create /proc/sys/net/ipv4/conf/all/mc_forwarding: Permission denied
./build.sh: 88: ./build.sh: cannot create /proc/sys/net/ipv4/conf/default/mc_forwarding: Permission denied
./build.sh: 88: ./build.sh: cannot create /proc/sys/net/ipv4/conf/eth0/mc_forwarding: Permission denied
./build.sh: 88: ./build.sh: cannot create /proc/sys/net/ipv4/conf/lo/mc_forwarding: Permission denied
 
Back
Top