aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Webserver Deletes ipfilter.dat?  (Read 3491 times)

311Sam

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Webserver Deletes ipfilter.dat?
« on: May 15, 2007, 09:32:05 PM »

I have amule installed on ubuntu lamp and it runs head-less and is managed through the amuleweb feature.  How ever I can not seem to get the ip blocking feature to work.  Amule and amuleweb will start through init.d and this is the log generated:

Code: [Select]
2007-05-15 13:12:34: Credit file loaded, 6043 clients are known
2007-05-15 13:12:34: Loading ipfilter.dat files.
2007-05-15 13:12:51: Loaded 207565 IP-ranges from 'ipfilter.dat'. 0 malformed lines were discarded.
2007-05-15 13:12:51: Loaded 0 IP-ranges from 'ipfilter_static.dat'. 0 malformed lines were discarded.
2007-05-15 13:12:51: Loading server.met file: /home/lindsay/.aMule/server.met
2007-05-15 13:12:51: 9 servers in server.met found
2007-05-15 13:12:51: Found 21 part files
2007-05-15 13:12:51: *** TCP socket (ECServer) listening on 0.0.0.0:4712
2007-05-15 13:12:51: MuleUDPSocket: Created Server UDP-Socket at port 4665
2007-05-15 13:12:51: MuleUDPSocket: Created Client UDP-Socket at port 4672
2007-05-15 13:12:51: Found 52 known shared files
2007-05-15 13:12:51: Connecting
2007-05-15 13:12:51: Servers: Trying to connect
2007-05-15 13:12:51: Connecting to DonkeyServer No2 (62.241.53.16 - 62.241.53.16:4242)
2007-05-15 13:12:51: AICH Thread: Syncronization thread started.
2007-05-15 13:12:51: AICH Thread: Masterhashes of known files have been loaded.
2007-05-15 13:12:51: AICH Thread: No new files found.
2007-05-15 13:12:51: AICH Thread: Terminated.
2007-05-15 13:12:51: Read 183 Kad contacts
2007-05-15 13:12:52: webserver running on pid 9334
2007-05-15 13:12:52: General: CamuleDaemonApp::OnRun()
2007-05-15 13:12:53: Loaded 0 IP-ranges from 'ipfilter.dat'. 0 malformed lines were discarded.
2007-05-15 13:12:53: Loaded 0 IP-ranges from 'ipfilter_static.dat'. 0 malformed lines were discarded.
2007-05-15 13:12:53: New external connection accepted
2007-05-15 13:12:53: Connecting client: aMuleweb 2.1.3
2007-05-15 13:12:53: Access granted.
2007-05-15 13:12:53: Connected to Kad (firewalled)
2007-05-15 13:12:58: Connected to Kad (ok)

As you can see, when the webserver  starts "Loaded 0 IP-ranges from 'ipfilter.dat'. 0 malformed lines were discarded." is displayed where as before that it was showing that blocked ip's where loaded.  Also I can not figure out how to get  the head-less amule to automatically download and use it's own ipfilter.dat.  Instead that ipfilter.dat is copied from my amule on my desktop.  The ipfilter.dat from my desktop is about 12mb in size.  Once I upload it to the head-less amule on the server and get it running the ipfilter.dat file will be 0mb.  It's like amuleweb deleted the contents or something...

I am not sure if this is a bug or not.  I am probably just doing something wrong.  I have played with many settings in amule.conf and I cannot figure this out. 

Anyone have any ideas?  :)
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Webserver Deletes ipfilter.dat?
« Reply #1 on: May 16, 2007, 01:40:44 AM »

Which amule version is this? and you say your amule server runs headless, so when you say "Amule and amuleweb will start" I think you actually mean "Amuled and amuleweb will start" don't you?

Regards.
Logged

311Sam

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Webserver Deletes ipfilter.dat?
« Reply #2 on: May 16, 2007, 01:47:03 AM »

Oh yes I forgot that part.  Yes I am using amuled and amuleweb.  Version 2.1.3: http://packages.ubuntu.com/dapper-backports/x11/amule-daemon
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Webserver Deletes ipfilter.dat?
« Reply #3 on: May 16, 2007, 05:49:19 AM »

As you can see, when the webserver  starts "Loaded 0 IP-ranges from 'ipfilter.dat'. 0 malformed lines were discarded." is displayed where as before that it was showing that blocked ip's where loaded.  Also I can not figure out how to get  the head-less amule to automatically download and use it's own ipfilter.dat.  Instead that ipfilter.dat is copied from my amule on my desktop.  The ipfilter.dat from my desktop is about 12mb in size.  Once I upload it to the head-less amule on the server and get it running the ipfilter.dat file will be 0mb.  It's like amuleweb deleted the contents or something...
Amuleweb does not have IPFilter. The message you see is from amuled, which for some reason is reloading the IPFilter. But he finds nothing new, so it loads nothing. To make sure no process is deleting the file, just do a

$ ls -l ~/.aMule/ipfilter.dat
-rw-r--r-- 1 11295254 2007-03-04 18:12 /home/myuser/.aMule/ipfilter.dat

Cheers!
Logged

311Sam

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Webserver Deletes ipfilter.dat?
« Reply #4 on: May 16, 2007, 05:03:31 PM »

Ok the problem was on my side.  Apparently you can't edit the amule.conf file if amuled is running because it won't save.

What happened was I had an old invalid url in the autoload section.  Amuled would load the ipfilter.dat and then delete it and try to download the new list but since it was a bad url it would just fail and leave me with a blank file.


Thanks for amule guys!


Also is there a super newbie guide for getting an online signature up and running?  skolnick's is looking pretty sweet.
Logged