Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

many 404 fserve errors = probes from many ips?
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jan 15, 2010 12:42 am    Post subject: Reply with quote

They will show up in the log if they get to the auth engine. The idea was to use the script to add the IP to the denied IP list or firewall, thereby making the banning automatic.

eg
mount-name /*/*.html
a simple series of reads, then echo $IP >> /path/to/IP-denied

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Fri Jan 15, 2010 2:17 am    Post subject: Reply with quote

Which would work if it was the same set of IPs, right. I will capture the IPs for a day and see if they repeat.

Thanks again for all your help!
Back to top
View user's profile Send private message Visit poster's website AIM Address
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Fri Jan 15, 2010 3:08 pm    Post subject: Reply with quote

FYI - I have captured 588 unique IP addresses out of 13,492 requests.
Here's the top10 - curiously all of them out of Germany:
IP CountOfIP
188.193.236.119 341
84.138.213.134 306
84.174.211.65 265
93.133.117.29 253
213.196.200.151 232
95.89.242.138
91.13.61.208 221
95.118.95.117 214
91.16.156.34 214
84.179.110.96 204

There are 237 IPs that only requested once or twice.

UPDATE (2010-01-18): 3,100 unique IPs in the block list.
UPDATE (2010-01-21): 8,829 unique IPs in the block list.
UPDATE (2010-01-25): 26,110 unique IPs in the block list.
UPDATE (2010-02-04): 68,326 unique IPs in the block list.


Last edited by audiorapture on Fri Feb 05, 2010 5:06 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address
jorgosch



Joined: 12 Dec 2009
Posts: 13

PostPosted: Thu Feb 04, 2010 11:08 pm    Post subject: Reply with quote

I'm getting these, too, and lots. The network addresses look similiar, and they all have in common the same user agent:

Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)

Looks like some kind of bot, maybe this could be blocked by default? If not, what's the correct syntax for the user agent blockfile, does it use Regular Expressions, .htaccess-style?

(I am on Windows)
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Feb 05, 2010 1:45 am    Post subject: Reply with quote

The kh tree does have a <deny-agents> in <paths>, a file which lists a series of useragent you can prevent connecting (wildcards allowed), not regex but shell wildcard style. The useragent match is not that great for matching these as useragent can change easily.

To achieve quickly, I would extract the IPs from the access log that match the requests being thrown at you and place those IPs in a txt file that icecast will read specified by <deny-ip>. You won't need to restart icecast updating the file, and reloading the xml will allow for you to specify the <deny-ip> setting

Another alternative is to set up an dummy mount using url auth call a web script that collect the IPs for you then just copy that across. Those collected IPs can be used for the firewall or the banned file for icecast

Whatever you think is easier.

karl
Back to top
View user's profile Send private message Send e-mail Visit poster's website
beat



Joined: 08 Feb 2010
Posts: 1
Location: Switzerland

PostPosted: Mon Feb 08, 2010 2:23 pm    Post subject: Same Problem Reply with quote

Hi

We have the same problem here, we get around 120 requests/second for the inexistent index.html on different mountpoints on our servers.
The requests are mainly originated in Germany...

Is this a botnet or a common bad coded player-software?

Kind regards
Beat
Back to top
View user's profile Send private message
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Mon Feb 08, 2010 3:54 pm    Post subject: Reply with quote

I am about 90% sure that this is a botnet - simply because we don't see the frequency of hits corresponding with our normal listener numbers.

Not sure what they are trying to achieve, though.
Back to top
View user's profile Send private message Visit poster's website AIM Address
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Mon Feb 08, 2010 7:13 pm    Post subject: Reply with quote

looks like a strange kind of DOS attack. I had this too on 5 of my icecast servers and couls trace same requests on more than 128 others on the same network.
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Fri Mar 19, 2010 12:08 pm    Post subject: Reply with quote

I now have 238,657 unique IPs in my blocklist and counting.

Also, it seems that this "large" number causes rebuffering of the stream on occasion with kh21a.

I am really wondering whether I should simply block the user-agent (instead of IPs with a script) as it hasn't changed since I started noticing.
Back to top
View user's profile Send private message Visit poster's website AIM Address
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Mar 19, 2010 12:32 pm    Post subject: Reply with quote

A connection that is banned will not be getting to the worker as the IP can be determined at connection time but a useragent filter has be get to the worker so the headers can be read and only then can it be dropped. I'm assuming you have configured icecast to refer to this file of denied address (it will re-read it every so often and log that fact). If quite a few connect at the same time (not banned) then it could be busy, but the suggestion was to prevent re-offenders.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
robertut



Joined: 31 Aug 2007
Posts: 156

PostPosted: Fri Mar 19, 2010 2:07 pm    Post subject: Reply with quote

audiorapture wrote:
I now have 238,657 unique IPs in my blocklist and counting.
How come, such a huge number?
Back to top
View user's profile Send private message
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Fri Mar 19, 2010 2:56 pm    Post subject: Reply with quote

robertut wrote:
audiorapture wrote:
I now have 238,657 unique IPs in my blocklist and counting.
How come, such a huge number?


You should ask whoever is operating that botnet... I simply block each IP that makes a bogus request for [stream name]/index.html (which doesn't exist).
Back to top
View user's profile Send private message Visit poster's website AIM Address
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Fri Mar 19, 2010 3:00 pm    Post subject: Reply with quote

OK - there is a little side issue (as discussed above already):
If I use useragent, my access log stays clean.
If I use auth, each (new) IP will cause an entry in the access log for the non-existent file/stream.

If there was a way to keep those bogus requests from polluting my access log I'd be really happy.
Back to top
View user's profile Send private message Visit poster's website AIM Address
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Mar 19, 2010 3:42 pm    Post subject: Reply with quote

actually, you probably can by doing

<mount>
<mount-name>/*/*.html</mount-name>
....
<accesslog>
<name>/dev/null</name>
</accesslog>
</mount>

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Sun Mar 21, 2010 1:32 am    Post subject: Reply with quote

Sadly, no.

This is the mount definition (kh21a):
<mount>
<public>0</public>
<hidden>1</hidden>
<mount-name>/wnrn.mp3/index.html</mount-name>
<authentication type="command">
<option name="listener_add" value="/usr/local/share/icecast/auth/deny.sh"/>
</authentication>
<accesslog>
<name>/dev/null</name>
</accesslog>
</mount>

Yet I still get this entries in the access log after reloading the config file:
84.150.104.20 - - [20/Mar/2010:21:31:08 -0400] "GET /wnrn.mp3/index.html HTTP/1.0" 401 119 "-" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" 0
217.238.21.247 - - [20/Mar/2010:21:31:59 -0400] "GET /wnrn.mp3/index.html HTTP/1.0" 401 119 "-" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" 0

Am I doing something wrong, here?
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber