aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2 3

Author Topic: Ip Filter  (Read 13254 times)

s0undt3ch

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 200
    • http://ufsoft.org
Ip Filter
« on: December 10, 2004, 01:34:05 AM »

I've sent this mail to aMule developers:
Quote
Hi there!

I have a big favor to ask. I've been an emule fan for almost 2 years now on my old platform (WinXP).
Recently I moved to Linux, so the  emule I was using stop working for me ("eMule bowlfish" http://pwp.netcabo.pt/deepsea).

Why was I using this eMule, well, I live in Portugal and ADSL is a bit recent here (1/2 years), and our (stupid)ISP's have a strange defenition of ADSL traffic, ie, national and international, so, in my case, I'm allowed to download what ever I want as long as it's comming from portugal, if it's a foreign country, I can only download 4 GIG's, go figure, Internet Network being deferentiated Nationaly, and Internationally. Internet IS a world network!

Well, the eMule I used had a "filter" wich allowed the user to select if it would download only from national sources or all arround the world sources, wich Is great for US(not U.S.) Portuguese, we could also define schedules for the "happy hours" that some ISP's provide, special times of the day were traffic(national or international) was free.

For some days now, I've been trying to get it to work on top of wine, and the first couple of hours, it works great, but then it crashes.
I've also tried to contact the mantainer to provide us Portuguese Linux Users growing community, a version for linux, but with no luck, cant even seem to find a direct email to him.

So, I remembered something, he makes it's source code available, so someone with the now how could make a linux version out of it!

Then another great thought crossed my mind also!
Since I've already had your aMule working here, and I noticed that It worked faster and more stable than the one I ran on my WinXP (old) times. Could it be implemented to aMule, letting the user do the dirty work of gathering the "National IP's" of course? I'm sure that there must be users all arround the world with the same stupid ISP problems, if not, I'm sure ALL the linux Portuguese users would use your aMule, there are lots of people searching for this!!!

Sure, I could setup my IPTABLE to allow only national IP's for some times of the day, but what was so great about that filter is that we could select to filter or not, on a file to file basis, ie, the first only DL nationaly while the second DL worldwide!!!

Please help out the Portuguese Linux community!

A simple answer, Yes or No, would be fine for me, but I'd really like to get some feedback from you!

Thanks in advance just for reading this testament.

Pedro Algarvio.

Why am I posting it here, well I guess I'll be needing some help so It can be implemented, so anyone interested leave a message on this thread, this way THESE GREAT DEVELOPERS can know how much it is wanted!!!

I'll be informing all Portuguese Users to post a message here, If you know someone that is searching for this, let him know....

Thanks!

s0undt3ch
Logged
s0undt3ch[/B]
[ AMD Athlon @ 1GHz / 768 RAM on Gentoo [SERVER] ]
[ P4 @ 2.8 GHz / 1Gig Ram on Gentoo ]

s0undt3ch

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 200
    • http://ufsoft.org
Another Option!!!!
« Reply #1 on: December 10, 2004, 02:05:18 AM »

Perhaps a better option is to enable right clicking on a file and enable the IPFILTER.DAT of that file only.

Meaning, on a per file basis, this way we could select wich files ran trough the IPFILTER.DAT
Of course, the user has to define their own IPFILTER.DAT.

Any opinions?
« Last Edit: December 10, 2004, 02:06:13 AM by s0undt3ch »
Logged
s0undt3ch[/B]
[ AMD Athlon @ 1GHz / 768 RAM on Gentoo [SERVER] ]
[ P4 @ 2.8 GHz / 1Gig Ram on Gentoo ]

s0undt3ch

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 200
    • http://ufsoft.org
RE: Another Option!!!!
« Reply #2 on: December 10, 2004, 04:38:29 AM »

Also, on eMule bowlfish, there is ipblock.dat that contains some suposedly dangerous IP's.

This could also be implemented, leaving the IPFILTER.dat aside from any changes for those who already use it, or to my sugestion ;)

Please consider it, It would be great!!!!

s0undt3ch.
Logged
s0undt3ch[/B]
[ AMD Athlon @ 1GHz / 768 RAM on Gentoo [SERVER] ]
[ P4 @ 2.8 GHz / 1Gig Ram on Gentoo ]

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: Ip Filter
« Reply #3 on: December 10, 2004, 07:29:02 AM »

Soundtech:
> Perhaps a better option is to enable right clicking on a file and enable the IPFILTER.DAT of that file only.

yes, this has been already asked for and iirc it was accepted ;-) but yet has to be implemented. you'll have to wait until 2.0.0 final _at least_ since current work is focues in bug fixing only :-(
make no doubt we are on helping and improving wherever and however we can though :)

about ipblock.dat, could you provide a valid url? :)
the above one isnt' working.
anyway, if it is ipfilterstyle, then yuo can just apply it to aMule. AFAIK, all ipfilters applied in aMule are merged if there already was an ipfilter applied during the current execution (please check it and report).

Greetings!
Logged

s0undt3ch

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 200
    • http://ufsoft.org
Bad Link!
« Reply #4 on: December 10, 2004, 03:21:23 PM »

Sorry about the bad link, but since I burned my bios :] on my P4, I'm using my home server until the other is fixed, and since it's in my room, there are some hours of the day in wich I have to sleep ;) , so I have to shut it down, too much noise.

You should keep trying.
Mostly is on during 13H to 1AM, at least (GMT+0).

s0undt3ch.

P.S. I can also mail it to who want's it.
« Last Edit: December 10, 2004, 03:24:43 PM by s0undt3ch »
Logged
s0undt3ch[/B]
[ AMD Athlon @ 1GHz / 768 RAM on Gentoo [SERVER] ]
[ P4 @ 2.8 GHz / 1Gig Ram on Gentoo ]

djtm

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
Re: Ip Filter
« Reply #5 on: December 10, 2004, 03:34:53 PM »

The fastest and easiest way would be, if you use the ipfilter.dat

Option A:
Get a list of portugese IP address ranges. Then create an ipfilter.dat file, which filters all non-portugese IPs.
This would save many hours of developing something few people would use.
The time could then be spend on the implementation of the :)) webserver :D ;) :P :rolleyes:

Option B:
Change ISP.

Option C:
Find out, why the eMule crashed, then contact the WINE-team and let them know. It should be able to be fixed, if a program crashes, and it looks like it's WINEs fault. If it always crashes, then it is a bug that will surely interest them!


Good luck!
« Last Edit: December 10, 2004, 03:38:13 PM by djtm »
Logged
"If you laid all of our laws end to end, there would be no end."
Mark Twain
"Linux is like a wigwam: No Gates, no Windows, but Apache inside!"

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Ip Filter
« Reply #6 on: December 10, 2004, 03:42:12 PM »

There are lots of people using aMule with ipfilter, a lot being portuguese users that filter non-portuguese ips except on the called 'happy hours'.


So  I fail to see what more we need. Ask them.
Logged

s0undt3ch

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 200
    • http://ufsoft.org
Re: Ip Filter
« Reply #7 on: December 10, 2004, 03:47:33 PM »

Well thank you djtm, here's one person who only thinks to him self.

Your susgestion was already taken and donne ages ago by the ones that wanted your behaviour, but the purpose of mine is not to block all foreign IP's for all files, just some!!!!

If you had read carefully you would understood.

Link For IPBLOCK.DAT (mirror)[/FONT][/COLOR]

For the ones interested...

s0undt3ch.
Logged
s0undt3ch[/B]
[ AMD Athlon @ 1GHz / 768 RAM on Gentoo [SERVER] ]
[ P4 @ 2.8 GHz / 1Gig Ram on Gentoo ]

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: Ip Filter
« Reply #8 on: December 10, 2004, 03:57:12 PM »

thanks for mailing me the file.
it is a normal ipfilter.dat file so you can just apply it in Preferences once you have started aMule. it will be merged in memory with the previous ipfilter.dat file loaded, so both will be blocked.
I guess the best will eb to allow many ipfilter.dat files to be loaded on startup, sthi way files such as ipfilter.dat ipblock.dat firewall.dat etc can be used without need to merge them on every start not having to merge them into a single file.

anyway, as I said, after 2.0.0 final release ;)

Greetings!
Logged

s0undt3ch

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 200
    • http://ufsoft.org
Re: Ip Filter
« Reply #9 on: December 10, 2004, 03:57:55 PM »

I for one don't have happy hours, just international limits. Changing ISP is no good, they are all more or less the same here.

And please NOTE:
The purpose of my enhancement is to enabble the ipfilter.dat on only SOME of the downloads!!!!
This way, the ones, that have limits, could mantain their traffic bellow limits, in a better way.

SURE, I could use IPFILTER.DAT with a cron, but, with this behaviour, imagine:
I have 5 downloads of 500Mb on queue and I have 500Mb left of international traffic, 4 of them are available complete only with National sources, the 5th is a rare file and I only can get it with international sources.
So, why should I make all five download internationaly, disabling the ipfilter.dat with cron?
It would low up my ISP limits!!!!

Get it Now?

s0undt3ch.
Logged
s0undt3ch[/B]
[ AMD Athlon @ 1GHz / 768 RAM on Gentoo [SERVER] ]
[ P4 @ 2.8 GHz / 1Gig Ram on Gentoo ]

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Ip Filter
« Reply #10 on: December 10, 2004, 04:01:07 PM »

Well, then try to read Jacobo221's reply :)

Seriously, I didn't mean to be rude. It has just been discussed lot of times and using Search button on the forum can lead you to those threads. Discussing it over and over again leads nowhere. I'm not willing to implement a special file for those filters: files will have a right-click option to enable or disable ipfilter, and that's all. Except of course you can't filter out a source until you know which file it requests, so you will  have external connections indeed, tho not file transfers, only control packets (what's marked as overhead).
Logged

djtm

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
Re: Ip Filter
« Reply #11 on: December 10, 2004, 04:10:03 PM »

Quote
the purpose of mine is not to block all foreign IP's for all files, just some!!!!
If you had read carefully you would understood.
s0undt3ch.

Well, the less you write, the more of it is read!  :P
Logged
"If you laid all of our laws end to end, there would be no end."
Mark Twain
"Linux is like a wigwam: No Gates, no Windows, but Apache inside!"

s0undt3ch

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 200
    • http://ufsoft.org
Re: Ip Filter
« Reply #12 on: December 10, 2004, 04:23:12 PM »

Quote
Originally posted by Kry
Well, then try to read Jacobo221's reply :)

Seriously, I didn't mean to be rude. It has just been discussed lot of times and using Search button on the forum can lead you to those threads. Discussing it over and over again leads nowhere. I'm not willing to implement a special file for those filters: files will have a right-click option to enable or disable ipfilter, and that's all. Except of course you can't filter out a source until you know which file it requests, so you will  have external connections indeed, tho not file transfers, only control packets (what's marked as overhead).

Well, It will do the work!
P.S. The rude part wasn't you!

s0undt3ch
Logged
s0undt3ch[/B]
[ AMD Athlon @ 1GHz / 768 RAM on Gentoo [SERVER] ]
[ P4 @ 2.8 GHz / 1Gig Ram on Gentoo ]

s0undt3ch

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 200
    • http://ufsoft.org
Re: Ip Filter
« Reply #13 on: December 10, 2004, 04:26:32 PM »

Quote
Originally posted by s0undt3ch
Well, It will do the work!
s0undt3ch

Well, I think it will also remember wich ones were enabled and wich were not everytime we shut down aMule, right?

s0undt3ch
Logged
s0undt3ch[/B]
[ AMD Athlon @ 1GHz / 768 RAM on Gentoo [SERVER] ]
[ P4 @ 2.8 GHz / 1Gig Ram on Gentoo ]

djtm

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
Re: Ip Filter
« Reply #14 on: December 10, 2004, 04:36:57 PM »

Quote
P.S. The rude part wasn't you!
s0undt3ch

Who was rude actually? ?(
Logged
"If you laid all of our laws end to end, there would be no end."
Mark Twain
"Linux is like a wigwam: No Gates, no Windows, but Apache inside!"
Pages: [1] 2 3