Difference between revisions of "Geaiez"

From AMule Project FAQ
Jump to: navigation, search
 
Line 1: Line 1:
<code>
+
<code><nowiki>
 
#!/bin/bash
 
#!/bin/bash
  
Line 24: Line 24:
 
iptables -t filter -I INPUT 1 -s 66.117.0.0/16 -j MLDONKEY_LOGDROP
 
iptables -t filter -I INPUT 1 -s 66.117.0.0/16 -j MLDONKEY_LOGDROP
 
iptables -t filter -I INPUT 1 -s 207.234.0.0/16 -j MLDONKEY_LOGDROP
 
iptables -t filter -I INPUT 1 -s 207.234.0.0/16 -j MLDONKEY_LOGDROP
</code>
+
</nowiki></code>

Revision as of 22:12, 25 October 2004

#!/bin/bash # Create special MLDONKEY chain iptables -t filter -N MLDONKEY iptables -t filter -F MLDONKEY # Create the logdrop chain to log & drop a packet iptables -t filter -N MLDONKEY_LOGDROP iptables -t filter -F MLDONKEY_LOGDROP iptables -t filter -A MLDONKEY_LOGDROP -j LOG --log-prefix "MLDONKEY" iptables -t filter -A MLDONKEY_LOGDROP -j DROP # Jump to the special MLD chain at the end of the INPUT chain (commented out) #iptables -t nat -A INPUT -j MLDONKEY # List of ip ranges to ban iptables -t filter -I INPUT 1 -s 38.113.0.0/16 -j MLDONKEY_LOGDROP iptables -t filter -I INPUT 1 -s 38.115.0.0/16 -j MLDONKEY_LOGDROP iptables -t filter -I INPUT 1 -s 38.117.0.0/16 -j MLDONKEY_LOGDROP iptables -t filter -I INPUT 1 -s 38.118.0.0/15 -j MLDONKEY_LOGDROP iptables -t filter -I INPUT 1 -s 65.19.175.0/24 -j MLDONKEY_LOGDROP iptables -t filter -I INPUT 1 -s 66.54.0.0/16 -j MLDONKEY_LOGDROP iptables -t filter -I INPUT 1 -s 66.117.0.0/16 -j MLDONKEY_LOGDROP iptables -t filter -I INPUT 1 -s 207.234.0.0/16 -j MLDONKEY_LOGDROP