my @ipfiles = (
'ipranges.netcabo.txt',
'ipranges.Adsl.Telepac.Sapo.txt',
);
3 1 * * * /usr/local/bin/amulecmd -f -c "IPLevel 50" > $HOME/amule.log 2>&1
5 1 * * * /usr/local/bin/amulecmd -f -c "Connect 195.245.244.243:4661" >> $HOME/amule.log 2>&1
55 6 * * * /usr/local/bin/amulecmd -f -c "IPLevel 127" >> $HOME/amule.log 2>&1
57 6 * * * /usr/local/bin/amulecmd -f -c "Connect 81.84.84.38:4661" >> $HOME/amule.log 2>&1
2) Para verificar se foi bem adicionado: crontab -lOriginally posted by geeko
Ainda hj vou postar aki essa correccao e outras mais se conseguir terminar ainda a tempo (a inclusao do Razorback sera atraves d 1 parametro - isto para n ter 2 versoes diferentes :D )
Obrigado a tds :D
--geeko
Originally posted by livebrain
"Se colocar o ipfilter level a 50, consigo entrar no razor com high ID"
ao por o nivel do ipfilter a 50, esta a permitir trafego internacional, ao permirit trafego internacional esta a permitir o ip do razorback (192.245.244.240 - 192.245.244.243 axo)
com o ipfilter "standard" para blokear o trafego internacional todos os ip's (inclusive os ips dos servidores) sao blokeados, dando lowid
Originally posted by s0undt3ch
Agora pergunto ao geeko, a opção do razor na vs 0.2, permite HighID mesmo com level 127?
Originally posted by geeko
s0undt3ch,
Sim - Mas se tiveres outros servidores que aches uma boa ideia adicionar e' so dizeres... ficam ja disponiveis numa proxima versao... :)
--geeko
Loaded ipfilter with 82630 new IP addresses.
Mas hoje quando corri o aMule vi:Loaded ipfilter with 82534 new IP addresses.
Já desconfiava que o aMule tinha comido algums IP's...Originally posted by |Syrius|
Em vez de colocares a opção para adicionar so o server razorback, porque não fazer algo genérico..
do tipo "./ipfilter.pl --addserv 62.241.53.16" que é o ip do DonkeyServer No.2 (acho)
198.004.144.000 - 198.004.159.255 , 000 , Simon & Schuster Inc.
ou assim?198.004.144.000 - 198.004.159.255 , 000 , Simon & Schuster Inc.
Originally posted by s0undt3chQuoteOriginally posted by |Syrius|
Em vez de colocares a opção para adicionar so o server razorback, porque não fazer algo genérico..
do tipo "./ipfilter.pl --addserv 62.241.53.16" que é o ip do DonkeyServer No.2 (acho)
Acho que a opção do razor deve ser mantida. Porquê? Porque lí algures nos forums do aMule que o Razorback divide a carga por vários servidores, daí ter que se que se abrir para vários ip's, 195.245.244.240-195.245.244.243. Isto como eu lí, embora tive a ver o ipfilter.dat gerado pela 0.2 e o razor está assim:
195.245.244.000 - 195.245.244.255 , 200 , RAZORBACK2[SERVER-HIGHID]
portanto vai do 000 ao 255. O razor ocupa assim tantos?
É assim que vão ser adicionados os servidores com a opção --addserv?
Use of uninitialized value in substitution (s///) at ./ipfilter.pl line 402, line 5.
Originally posted by geeko
85093 ipranges para netcabo
85465 ipranges para adsl
geeko
Loaded ipfilter with 85400 new IP addresses.
Para:./ipfilter -adsl -extra
Loaded ipfilter with 85378 new IP addresses.
Originally posted by geeko
Ja esta disponivel e' a versao 1.02,
peco desculpa... pois disse k iria disponibiliza-la no sabado, mas fiquei sem tempo disponivel para o fazer :))
geeko
/usr/local/bin/amulecmd -f -c "IPLevel 50" > $HOME/amule.log 2>&1
E no log:Creating client...
Now, doing connection....
Using host 'zorba.___MEU_URL___' port:4712
Trying to connect (timeout = 10 sec)...
Connection Failed. Unable to connect to the specified host
/usr/local/bin/amulecmd --remote-host=localhost -f -c "IPLevel 50" > $HOME/amule.log 2>&1
e o log é o mesmo...3 1-6 * * * /usr/local/bin/amulecmd -pw "" -c "IPLevel 50" >> $HOME/amule.log 2>&1
5 1 * * * /usr/local/bin/amulecmd -pw "" -c "Connect 195.245.244.243:4661" >> $HOME/amule.log 2>&1
55 0,6-23 * * * /usr/local/bin/amulecmd -pw "" -c "IPLevel 127" >> $HOME/amule.log 2>&1
57 6 * * * /usr/local/bin/amulecmd -pw "" -c "Connect" >> $HOME/amule.log 2>&1
descricao:Acho que as mensagens do cron deviam ser adicionadas, em vez de limpar o ficheiro todo.As mensagens ja estao a ser adicionas ao cron.... se so quiseres apagar o log entao tens que alterar 1 pouco o cron pk ele vai ser limpo tds os dias
Já agora criar outro cron para limpar o amule.log de semana a semana?
* * * * 0 echo -n > $HOME/amule.log 2>&1
Já agora, o -f é equivalente a --file-config e no help diz Read configuration (password/port) from file., mas QUE file, onde o crio, como o crio, qual o conteúdo?O ficheiro onde tens as passwords e criado pelo amule e tem o nome .eMule
Achei o prob, tinha que re-iniciar o aMule, porque da primeira vez que o corri, como tinhas as passes em branco ele deligou as external connections...Pois... tambem e' 1a verificacao que posso fazer :D
Ja agora aviso que o amule (2.0.0rc8) com o level a 127 ta a deixar passar este ip: 65.95.50.228 no ipfilter a linha desse ip é: 065.093.246.128 - 065.100.038.023 , 100 , ******************************* esse ip n devia ser bloqueado?Sim isso e' 1 problema conhecido da rc8, usa antes 1a versao cvs pois esse e outro problemas ja estao corrigidos
(...) /usr/local/bin/amulecmd -pw "" (...)devias usar a opcao -f em vez de escrever a password porque assim estas a deixa-la no log sem necessidade ;)
Originally posted by geekoSerá assim?
As mensagens ja estao a ser adicionas ao cron.... se so quiseres apagar o log entao tens que alterar 1 pouco o cron pk ele vai ser limpo tds os dias
mudas a linha que faz o set para o level 50 /usr/local/bin/amulecmd -f -c "IPLevel 50" >> $HOME/amule.log 2>&1
e depois adicionas 1a nova entrada para apagar o log todos os domingos(por exemplo)Code: [Select]* * * * 0 echo -n > $HOME/amule.log 2>&1
# aMule's crontab settings
# Set IPLevel to 50 and Connect to Razorbach every hour at min 10 and 15
10 1-6 * * * /usr/local/bin/amulecmd -f -c "IPLevel 50" > $HOME/amule.log 2>&1
15 1-6 * * * /usr/local/bin/amulecmd -f -c "Connect 195.245.244.243:4661" >> $HOME/amule.log 2>&1
# Set IPLevel to 127 and Connect to Sado[Max PT] every hour at min 50 and 55
50 0,6-23 * * * /usr/local/bin/amulecmd -f -c "IPLevel 127" >> $HOME/amule.log 2>&1
55 0,6-23 * * * /usr/local/bin/amulecmd -f -c "Connect 81.84.96.18:4661" >> $HOME/amule.log 2>&1
# Delete aMule's log every Sunday at 14:30
30 14 * * sun echo -n > $HOME/amule.log 2>&1
10 1-6 * * * /usr/local/bin/amulecmd -f -c "IPLevel 50" >> $HOME/amule.log 2>&1
Outra situacao k estou a ver no teu crontab e' que estas a ligar ao servidor e a mudar o level tds as horas?? e' isso mesmo que keres?55 0,6-23 * * * /usr/local/bin/amulecmd -f -c "Connect" >> $HOME/amule.log 2>&1
Relativamente a linha que estas a usar para apagar o log esta' correcta (os weekdays tb podem ser usados com o small name, mas eu gosto mais de numeros :D)/bin/bash: line 1: root: command not found
Instalei o cron e só modifiquei o que queria..# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/etc/crontab installed on Tue Feb 8 02:34:48 2005)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=cron@blablabla
HOME=/home/vampas
# run-parts
01 * * * * root nice -n 19 run-parts /etc/cron.hourly
02 4 * * * root nice -n 19 run-parts /etc/cron.daily
22 4 * * 0 root nice -n 19 run-parts /etc/cron.weekly
42 4 1 * * root nice -n 19 run-parts /etc/cron.monthly
# aMule's crontab settings
# Set IPLevel to 50 and Connect to Razorbach every hour at min 10 and 15
10 1-6 * * * /usr/local/bin/amulecmd -f -c "IPLevel 50" >> $HOME/amule.log 2>&1
15 1-6 * * * /usr/local/bin/amulecmd -f -c "Connect 195.245.244.243:4661" >> $HOME/amule.log 2>&1
# Set IPLevel to 127 and Connect to Sado[Max PT] every hour at min 50 and 55
50 0,6-23 * * * /usr/local/bin/amulecmd -f -c "IPLevel 127" >> $HOME/amule.log 2>&1
55 0,6-23 * * * /usr/local/bin/amulecmd -f -c "Connect" >> $HOME/amule.log 2>&1
# Delete aMule's log every Sunday at 14:30
30 14 * * sun echo -n > $HOME/amule.log 2>&1
Originally posted by geeko
confirmaste se tinhas essas linhas dentro do /etc/crontab? se tiveres nao precisas delas no user root
geeko
$./ipfilter.pl -a -e -r
/bin/sh: /usr/local/bin/amulecmd: No such file or directory
# ln -s /usr/bin/amulecmd /usr/local/bin/amulecmd
$ ./ipfilter.pl -a -e -r
Using: ADSL ranges
Downloading... [[URL]http://koizo.sourceforge.net/updates/ipfilter.dat[/URL]]
[========================>] Got 3391482 bytes of 3391482 (100.00%)
Downloading... [[URL]http://pwp.netcabo.pt/deepsea/ipranges/ipranges.Adsl.Telepac.Sapo.txt[/URL]]
[========================>] Got 9576 bytes of 9576 (100.00%)
Loading: IPRanges to block... 48354 found
Loading: Portuguese IPRanges... 322 found
Loading: Extra IPRanges... 0 found
Checking for duplicates, inner ranges or invalid blocks ranges...
Populating "ipfilter.dat" with Internacional IPRanges(HappyHours)
Sorting IPRanges...
Creating: /home/dude/ipfilter.dat
Replacing your current "ipfilter.dat" with this /home/dude/ipfilter.dat [N|y]? yReplaced...(old "ipfilter.dat" => "ipfilter.dat.backup")
Reloading the new "ipfilter.dat" file [N|y]? y
Reload... Complete!!
Setting the crontab for the HappyHours [N|y]? y
The crontab is already set!?!?
$ crontab -l
3 1 * * * /usr/local/bin/amulecmd -f -c "IPLevel 50" > $HOME/amule.log 2>&1
5 1 * * * /usr/local/bin/amulecmd -f -c "Connect 195.245.244.243:4661" >> $HOME/amule.log 2>&1
55 6 * * * /usr/local/bin/amulecmd -f -c "IPLevel 127" >> $HOME/amule.log 2>&1
57 6 * * * /usr/local/bin/amulecmd -f -c "Connect 81.84.84.38:4661" >> $HOME/amule.log 2>&1
/bin/sh: /usr/local/bin/amulecmd: No such file or directory
/bin/sh: /usr/local/bin/amulecmd: No such file or directory
Creating client...
Now, doing connection....
Using host 'netstorm' port:4712
Trying to connect (timeout = 10 sec)...
Succeeded! Connection established to aMule 2.0.0rc8
---------------------------------
| aMule text client |
---------------------------------
Use 'Help' for command list
> Operation was successful.
> IPFilter is OFF.
> Current IPFilter Level is 127.
Ok, exiting aMulecmd...
Creating client...
Now, doing connection....
Using host 'netstorm' port:4712
Trying to connect (timeout = 10 sec)...
Succeeded! Connection established to aMule 2.0.0rc8
---------------------------------
| aMule text client |
---------------------------------
Use 'Help' for command list
> Request failed with the following error: server not found: [81.84.84.38:4661].
Ok, exiting aMulecmd...
Originally posted by geekoQual era o valor anterior? Muito menor?
Nao sei se reparaste no output do script... mas...
Loading: IPRanges to block... 51941 found
root@tux ipfilter-1.02 $ ./ipfilter.pl
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.8.5/i686-linux /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.2/i686-linux /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i686-linux /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.2/i686-linux /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.4/i686-linux /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.5/i686-linux /usr/lib/perl5/5.8.5 /usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.2/i686-linux /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux .) at ./ipfilter.pl line 39.
BEGIN failed--compilation aborted at ./ipfilter.pl line 39.
root@tux ipfilter-1.02 $
$ amulecmd -f
Option 'f' requires a value.
Usage: amulecmd [--help] [-h ] [-p ] [-P ] [-f ] [-q] [-v] [-l ] [-w] [--create-config-from ] [--version] [-c ]
--help Show this help text.
-h, --host= Host where aMule is running. (default: localhost)
-p, --port= aMule's port for External Connection. (default: 4712)
-P, --password= External Connection password.
-f, --config-file= Read configuration from file.
-q, --quiet Do not print any output to stdout.
-v, --verbose Be verbose - show also debug messages.
-l, --locale= Sets program locale (language).
-w, --write-config Write command line options to config file.
--create-config-from= Creates config file based on aMule's config file.
--version Print program version.
-c, --command= Execute and exit.
$ amulecmd --create-config-from=/home/USERNAME/.aMule/amule.conf
Que nos vai gerar o remote.conf na directoria ~/.aMule[/B], e depois passamos a utilizar:$ amulecmd -f /home/USERNAME/.aMule/remote.conf
$ amulecmd -f
para$ amulecmd -f /home/USERNAME/.aMule/remote.conf
Ou melhor, podes abilitar o teu script para verificar se existe o remote.conf caso contrário criá-lo....amulecmd --create-config-from=~/.aMule/amule.conf
Originally posted by s0undt3ch:D :D :D :D :D :D :D :D :D :D :D :D :D
Loaded IPFilter with 122935 new IP adresses
:D :D :D :D :D :D :D :D :D :D :D :D :D
Isto cada vez aumenta mais!!!!
ipfilter.dat com 8.2megas
SIGA!!!!
É Sempre a Bombar!
P.S. Apesar de eu não ter colocado a opção -c aka crontab, o script perguntou se queria defenir os cron's!? É suposto ser assim só por passar a opção -HH?
perl -e "use LWP::UserAgent; print LWP::UserAgent->VERSION;"
perl -MCPAN -e 'force install Bundle::LWP'
2005-04-28 12:05:20: Servers: Trying to connect
2005-04-28 12:05:20: Connecting to Razorback 2 (195.245.244.243 - 195.245.244.243:4661)
2005-04-28 12:05:20: Connected to Razorback 2 (195.245.244.243:4661)
2005-04-28 12:05:20: Servers: Connected
2005-04-28 12:05:20: Connection established on: Razorback 2
2005-04-28 12:05:20: New client ID is 3730723921
2005-04-28 12:18:30: Lost connection to Razorback 2 (195.245.244.243:4661)
2005-04-28 12:18:30: Connection lost
2005-04-28 12:18:30: Servers: Trying to connect
2005-04-28 12:18:30: Connecting to Max[PT] Tejo (tejo.kicks-ass.net - 81.84.114.73:4661)
2005-04-28 12:18:30: Connected to Max[PT] Tejo (81.84.114.73:4661)
2005-04-28 12:18:30: Servers: Connected
2005-04-28 12:18:30: Connection established on: Max[PT] Tejo
DATE:1112644042
195.245.244.000 - 195.245.244.255 , 200 , RAZORBACK2[SERVER-HIGHID]
cat ipfilter.dat | grep RAZORBACK2
Originally posted by s0undt3ch:D :D :D :D :D :D :D :D :D :D :D :D :D
Loaded IPFilter with 122935 new IP adresses
:D :D :D :D :D :D :D :D :D :D :D :D :D
Isto cada vez aumenta mais!!!!
ipfilter.dat com 8.2megas
SIGA!!!!
É Sempre a Bombar!
P.S. Apesar de eu não ter colocado a opção -c aka crontab, o script perguntou se queria defenir os cron's!? É suposto ser assim só por passar a opção -HH?
amulecmd --create-config-from='~/.aMule/amule.conf'
Depois de correres este comando, deves conseguir entrar no 'amulecmd' sem pass.
Originally posted by lagarto...sou um alegre virgem em linux :P)....
Originally posted by s0undt3ch
Tens que gerar o ficheiro de configuração..
Originally posted by freeeee
Boas,
Gostaria de saber se existe alguma maneira de apenas realizar filtragem de tráfego internacional a determinados ficheiros, deixando os restantes sem nenhuma filtragem. Algo semelhante ao existente no eMule Blowfish.
Tks.
ping tejo.kicks-add.net
PING tejo.kicks-ass.net (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.108 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.113 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.115 ms
ping sado.kicks-ass.net
PING sado.kicks-ass.net (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.112 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.111 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.116 ms
Any big users of the eDonkey2000 network will already have noticed that huge servers such as Razorback2 seem to have disappeared. The Federal Belgian Police raided and seized the servers yesterday. For those not familiar with how an ed2k server works, it does not host any files, either copyrighted or other, but it does index their location on the network. The eDonkey2000 network consists of many servers located around the world that work in a similar way.
In addition to the servers being seized, Swiss authorities arrested the site's operator at his residence in Switzerland and searched his home. The push behind the legal action came from the Motion Picture Association (MPA). "This is a major victory in our fight to cut off the supply of illegal materials being circulated on the Internet via peer-to-peer networks," said Motion Picture Association (MPA) Chairman and CEO Dan Glickman. "By shaving the illegal traffic of copyrighted works facilitated by Razorback2, we are depleting other illegal networks of their ability to supply Internet pirates with copyrighted works which is a positive step in our international effort to fight piracy."
[ READ MORE ] (http://www.afterdawn.com/news/archive/7346.cfm)
Originally posted by To
Agora q varios servidores desapareceram, se quiser adicionar um e permitir a ligacao pelo ipfilter tenho de abrir uma classe C?
ipfilter -a 062.241.053.002 DonkeyServerNo1
ipfilter -a 062.241.053.016 DonkeyServerNo2
ipfilter -a 062.241.053.017 DonkeyServerNo3
ipfilter.pl -l
List of ALLOWED IPRanges :
001> 062.241.053.002 - 062.241.053.002 , 200 , DonkeyServerNo1
002> 062.241.053.016 - 062.241.053.016 , 200 , DonkeyServerNo2
003> 062.241.053.017 - 062.241.053.017 , 200 , DonkeyServerNo3
004> 195.245.244.245 - 195.245.244.245 , 200 , RazorBack2
005> 195.245.244.244 - 195.245.244.244 , 200 , RazorBack2
$ ./ipfilter.pl -N -Ecerto?
Correndo o script com estes argumentos
./ipfilter.pl -A -P -B -w
dá um ficheiro ipfilter.dat de quase 25 MB. é normal ser tão grande? Se bem me lembro os do Bowlfish eram de cerca de 11 ou 12 MB