Search Results: "erich"

1 September 2007

Erich Schubert: Postfix under siege

Many people will have seen their postfix reporting new errors these days, like if is overloaded:
postfix/master[7287]: warning: service "smtp" (25) has reached its process limit "100": new clients may experience noticeable delays
This is not really because your system is overloaded. To me, it looks more like a (deliberate?) malfunction of some spammers software. When you rejected it's spam mail a few times, it starts opening up lots of connections to your system, but never sends any data. They just sit there and time out.The solution is simple: limit the number of connections per client. Make sure the 'anvil' service is enabled (default at least on Debian) and then add
smtpd_client_connection_count_limit = 10
to your postfix configuration.You should now begin to see messages such as
postfix/smtpd[21680]: warning: Connection concurrency limit exceeded: 11 from unknown[210.210.247.52] for service smtp
A corean cable IP. Yeah, I don't think this would have been legitimate mail traffic anyway.Feel free to pick the limit value even lower than 10 on really busy systems (or if these 'attacks' become stronger) - most people should never need more than 2 parallel connections (note: you can send multiple emails over one connection, there isn't much to be gained by using more than one connection).

18 August 2007

Erich Schubert: More (ranting) on Skype

A couple of people have pointed me to the "Skype DoS exploit code" that has been published. I had seen that, but I'm not convinced it works as simple as that. Some of the information around it doesn't make completely sense (such as using the term 'server', when they're referring to super nodes I guess, and since supernodes are just regular user machines annexed by the Skype network, they supposedly run the same software, don't they? So why doesn't it take down the client the exploit is run on?Also I'd bet that someone has tried feeding the Skype client long URIs before; that is one of the most popular ways of seeing if some software can break. You know, Buffer Overflow [wikipedia] is probably the most common class of security issues (maybe second only to PHP programming errors or SQL injection by now, though, with so many people with too little expertise writing webapps in PHP)Others probably are wondering why I'm writing so much "against" Skype.There are numerous reasons: And, honest, there is nothing in Skype that other apps wouldn't offer, or had been offering before except being really aggressive at getting through firewalls without any user intervention.

17 August 2007

Erich Schubert: Skype problems aren't solved, but just worked around?

Skype seems slowly to recover from yesterdays blackout.However, it doesn't look to me as if they've actually solved the problem. I assume they've just added a workaround (e.g. maybe using DNS to locate good servers?) that help recovering. At least when enough people download the new version.If you look at the graphs at Njanjan.to and 85qm.de, then they still look far from healthy.I'm not talking about the mere numbers - Skype reports about 3 Million users connected, which would mean 1 out of 3 regular users is back. But I'm talking about the shape of the curve. During regular operations, the curve used to be smooth. Which is easy to explain: by some million users going online and offline indepentenly, it all smoothens out. The curve goes up when people start working in a densely populated area and goes down when they go to bed. But if you look at the graphs for the past few hours parts of the Skype P2P network still appear to get disconnected and reconnected. They cerainly didn't flip a switch and people could connect again. The service still appears to be going up and down.To me, that indicates that they actually didn't solve the problem, but just found a way to make the problems not take down the whole network, while parts still drop off now and then.Just my guesses, though. And Skype will not tell the truth either, you bet. (You might want to skim over the presentation "Silver Needle In The Skype" [PDF], about the inner workings of Skype, their obfuscation technologies and how far they go at hiding what their software is actually doing)P.S. I've read in a blog that Skype might right now only allow one connection per IP. That would even more support the rumors that they're actually trying to defend against an attack on their network (and using the IP limit to slow down the attacks?)P.P.S. Another interesting note: the Skype stats on the Skype website report 5.5 Million connected users - my Skype client reports 3.7 Million. Which number is correct?

Erich Schubert: Skype taking down your network

Side note: According to the Skype RSS data feed, right now 174086 user are online. That less than 10% of the usual numbers, isn't it? To me, that's more than a few users.Skype is harmful. Here's the explantaion why:Skype uses P2P technology where it is not needed. There are parts of VoIP where it does make sense (when a direct connection is possible, transfer the data directly between clients), but pretty much any VoIP software does that.And there are parts, where it doesn't make sense. This includes not accessing the login servers directly, but trying to use other Skype users as proxies.Now what I've seen happening in some networks is the following: Skype fails to login directly, so it starts connecting random peers it has seen before. It keeps a list of 200 peers for that in the registry. So when it fails to connect, it will try contacting these 200 peers instead. Now if you have multiple users sharing your connection, let's say 10 and a cheap router with limited memory, 2000 connections is a lot to keep track of. It might start losing other connections. Such as your mail an web connections.This is exactly what I've seen today: the internet connection becoming pretty much unuseable (single packets would work fine, but not TCP/IP transfers of more than a few kb). When we found out it might be due to Skype malfunctioning, and gave the order for everyone to shut down Skype (which didn't work anyway, so people quickly complied), Internet became useable again. Let me emphasize that: it wasn't a bandwidth issue, but it was just the sheer number of connections opened by Skype that caused more important connections to be dropped by the routers.So why is Skype not using proper servers, like MSN, AIM and ICQ do? Because they're cheapskates. It's cheaper for them to let others use your bandwidth instead of having to provide enough to handle all the data. The other reason is that it's harder for system administrators to deny access to Skype, if any other Skype user can proxy your access to the actual login server. But if you want/need a central user registry, you can't rely on a true P2P system. It's bound to get disconnected at some point.And yes, this especially means that Skype is not a good idea in a corporate environment with a large number of users. The skype approach works well for a single user at home, but the Skype networking behaviour can take down your routers if you have too many users running Skype at the same time. Other software choices, such as the standardized, vendor independant SIP protocol for VoIP, however would even allow you to setup a proper VoIP telephone system, with conference rooms, complex call routing, dictionaries, callback, routing to ATM or mobiles, complex voice mail systems, you name it. Skype is designed for single home users, not for company use.P.S. Am I the only one who thinks the Skype UI is crap? No groups (at least not in my version, which is the latest there is for Linux), and totally idiotic button placement (like this ugly 'add' button I'm pretty much never ever, and a floding-up button next to it with the options, quit and recent chats (do they have anything in common?) hidden in there. How about using a menu bar like everybody else? How about organizing functionality in a human-comprehendable way?P.P.S. What I guess has happened: somehow, most nodes (especially super nodes) got convined that the actual login servers are bad. As long, as some still had the connection, login still worked. At least sometimes (many probably experienced an unstable Skype connection before they could no longer login). But at a certain point, a large part of the network got separated from the login nodes and started routing requests around chaotically, trying to find the actual login server. The only way they have for fixing it, is slowly convincing and nodes on the perimeter of the P2P network about the proper location for the login servers, and that way spreading the correct information around again. Or shipping a new version which will re-inject this information in clients again. Just my guesses.P.P.P.S. It would be interesting to know what had caused this. If it was some kind of subtle attack on the network. Like someone trying to convince supernodes that the login servers are bad and untrustworthy or something. Maybe just by sending spoofed bad data packets from the login servers IP or so.P^4.S. Interesting graph on the number of Skype users logged in. Still going down.

8 August 2007

Thijs Kinkhorst: Serendipity 1.1.4 uploaded

Erich Schubert reports about a Serendipity issue he found. Thanks Erich for researching that and thanks upstream fox quickly fixing it. I'm glad to report that I've just uploaded the fixed version to unstable, and that Sarge and Etch are not vulnerable.

Erich Schubert: Security issue in Serendipity

Yesterday, a friend mentioned that some program had been accessing most of his (s9y) blog, and apparently even manged to access password protected entries.Now I'm not a s9y user myself, but somehow I felt like digging into this. I wouldn't consider myself a web security expert, actually. I'm more interested in data mining and such algorithms these days.It took me 10 minutes to find the problem (despite not having used PHP much in years; I don't trust that programming language; including some searching if it was maybe already reported somewhere). By sending an appropriate POST request, you could override the password used, and that way disabling it.Granted: "locating" a security issue you know it exists is a lot easier than actually discovering new ones...Official announcement in the s9y blog, including a fix for the problem.Memo to the guys who wrote that bot that was accessing the blog of my friend: You messed with the wrong people, guys. We know how to detect your scan, and we'll spoil the fun for you by helping in fixing the bug!

3 August 2007

Erich Schubert: Why my blog has become so silent

In case you're wondering why my blog has become so silent (3 posts in July, 2 posts in June - yes, my posting frequency is down by a magnitude!):About a year ago I started dancing, and this has by now become my main leisure time activity. And since I'm now off dancing (and meeting friends I know from dancing) like 5-7 days a week, that also means I'm spending much less of my free time on the computer.It's not just that I'm not blogging as much anymore; I'm also spending much less work on my opensource projects. Sorry about that; but all the dancing has recently been very fulfilling, whereas sometimes opensource work can be somewhat demotivating (especially when you fail to attract people to join your project).This especially means that some of the projects I started or played a bigger role in (e.g. SELinux on Debian) now need to find someone else to take over my work. Especially SELinux could definitely use some fresh hackers.

19 July 2007

Erich Schubert: Fun with spiders

(no, not the animals, but web crawlers!)For a pet project of mine, I've recently been spidering the web a bit myself. So far, I've processed over 100.000 websites. The machine doing the spidering is an old K6-450, so it's not particularly fast...My spider is downloading the web pages HTML, and eventually some framesets (but at most 1 level deep). It's using text contents, image 'alt' attributes, title and some meta tags. The text contents are tokenized and stemmed.This results in some fun numbers: Each of the web pages I'm spidering has about 6.4 categories assigned to it. I'll be using this training set to train an AI to classify web sites.(I've also started a web page for the project, but it's still pretty much empty so far, not worth looking.)

13 July 2007

Wouter Verhelst: Traffic Shaping

Erich Schubert blogs about traffic shaping, and shows how you can do some basic traffic shaping using a rather long example. I'm sure that example works, but mine is slightly less complex: tc qdisc add dev eth1 root tbf rate 212kbit burst 1540 latency 50ms This is actually a literal example in the Linux Advanced Router and Traffic Control-HOWTO, and it works for me. Linux has a reasonably good default prioritizing and queueing already, and using the tbf filter doesn't replace them, whereas the detailed sfq example that Erich gave does. I'm doing this on my router (on the outgoing interface), not my laptop, which is also a rather important bit. Of course, it working for me doesn't necessarily mean that it'll work for you too. But you might just want to try it...

12 July 2007

Erich Schubert: Shaping your traffic for improved performance

Sometimes, putting up an arbitrary limit for your network connection can actually improve the performance.A typical setup will look like this: your computer is connected via 54-100 mBit to a router, which has a DSL line of let's say 2 mBit downstream and 192 kBit upstream (and then tons of other links).When you overload one of these connections, performance can go down a lot.The simples case how this can happen is when you upload data. 192 kBit are the weakest link here, and rather easy to fill up.What happens then is that your computer will start sending out data at his full link speed, until the buffers at the router are full and it starts dropping packets. TCP/IP will then adopt and - lacking 'ACK' packets - slow down sending data. It will likely still keep the send-buffer of the router full.Now if the router isn't very smart, it just keeps a first-in-first-out buffer. As long as you have just this single upload, you don't need to care. But if you have other connections, like a download, you do care.For your download to run at full speed, the sender needs to get those ACK packets from you. They're basically a "got your data, send more" kind of message. Really tiny packets, but essential for signaling.A simple trick you can use now is to limit your bandwith at the sending computer already. Since you're going to limit it just to the next link anyway it doesn't mean it will actually be getting much slower. But your network stack is smarter than the router's (probably). It can send out these ACK packets at a higher priority, so you end up with a better download-and-upload performance.If you know your network connection speed, just use it. Otherwise you can still measure it or guess it. I'm always going for 95% of the speed I see. You might want to limit it a bit more if you are sharing the connection with others.Now enough theory, here's what I use:
IFACE=wifi0
# setup ingress filtering
/sbin/tc qdisc add dev $IFACE handle ffff: ingress
# local network is unrestricted
/sbin/tc filter add dev $IFACE parent ffff: protocol ip \
  prio 10 u32 match ip src 192.168.2.0/24 \
  police conform-exceed ok/ok flowid :1
# incoming internet traffic is limited.
/sbin/tc filter add dev $IFACE parent ffff: protocol ip \
  prio 50 u32 match ip src 0.0.0.0/0 police \
  rate 1500kbit  burst 10k drop flowid :2
# outgoing traffic
/sbin/tc qdisc add dev $IFACE root handle 1: htb default 30
# local network is unrestricted
/sbin/tc class add dev $IFACE parent 1: classid 1:10 htb \
  rate 54mbit burst 15k
/sbin/tc qdisc add dev $IFACE parent 1:10 handle 10: sfq perturb 10
/sbin/tc filter add dev $IFACE parent 1:0 protocol ip \
  prio 10 u32 match ip dst 192.168.2.0/24 flowid 1:10
# internet traffic is limited.
/sbin/tc class add dev $IFACE parent 1: classid 1:20 htb \
  rate 160kbit ceil 196kbit burst 15k
/sbin/tc qdisc add dev $IFACE parent 1:20 handle 20: sfq perturb 10
/sbin/tc filter add dev $IFACE parent 1:0 protocol ip \
  prio 50 u32 match ip src 0.0.0.0/0 flowid 1:20
Long example, I know. The main reason is that I'm not limiting traffic to local computers. Furthermore, I'm also limiting my incoming traffic to use up at most 1.5 mbit of the 2 mbit connection, so my housemates will be able to use the internet as well (Debian mirrors send data fast - fast enough to kick them out of any online game they might be playing...).There is one important detail hidden in there: sfq. This stands for "stochastic fair queueing". It tells the network stack to basically send "one packet for each connection in turn". This way, the small packets needed for download or interactive SSH sessions will get out quickly even when doing a larger upload.It works great for me - I'm having a good download rate, using the 160 kBit upload limit completely (I don't want to completely fill up the 192k upload link either) and I'm actually writing this blog entry remotely via SSH. The lag when writing is okay, probably around 300ms. Without shaping, this wouldn't work this well.(And no: just using 'sfq' for your outgoing traffic is not enough, since the key scheduling is happening at the weakest link. So you have to limit your traffic shaping setup to be just below the actual weakest link.)

5 July 2007

Erich Schubert: Back from Amsterdam Lindy Exchange

Last weekend, I was at the Amsterdam Lindy Exchange. Both my first trip to Amsterdam (A crazy place, I think you can get high just from walking the streets because of the smoke clouds coming out of the Coffee Shops... And I really wouldn't have thought the prostitutes are even in their windows on Sunday and Monday mornings ...) and my first Lindy Exchange [wikipedia].A lindy exchange is
a gathering of lindy hop dancers in one city for several days to experience the dance venues and styles of that local community, and to dance with visitors and locals alike
And it was fun. I didn't get a glimpse of 'typical' Amsterdam night life, because the evenings were already filled with dance events. We did a boat trip on sunday however, so I did do something typical for Amsterdam, too.Going to a different city to meet other dancers is a great thing to do. If you're a dancer, you should definitely do that. If you're not a dancer, you should become one. :-)My next lindy exchange will be in September: the Munich Lindy-Exchange, where I actually ended up in the organization crew. We're really trying hard to make that a great event. We'll be having some great parties. And we'll be going to Oktoberfest (aka "Munich beer festival") with you. And yes, we'll probably end up dancing there, too.

14 June 2007

Erich Schubert: Power waster Skype

Intel has released PowerTop, a tool designed to monitor what is causing your CPU to be active.If your system is idle, your operating system tries to put the CPU into a low-power sleep state to reduce power consumption and thus extend battery life. The longer the CPU can remain in sleep states, the better. There are multiple sleep states, which save different amounts of power, but also take different time to "come back" into operation. If the operating system knows it can sleep a bit longer, it can use the more efficient modes.However, some applications busy themselves unnecessarily, waking up without doing anything.This is where the PowerTop tool comes in: it monitors which applications cause a wakeup from idle, to help developers find which applications might be wasting their power.The application waking up most often on my system: Skype. Skype wakes up about 200 times per second, thus being a major blocker for using power-efficient CPU states.I wouldn't complain if it would at least be doing something, but this even happens when I'm logged off. It's not even displaying an animation (and you don't need 200 Hz for animations either!)So you can probably extend your laptops battery life a slight bit by quiting skype. Funny, isn't it?Too bad that I need to use Skype to reach some people. I wish they'd all switch to some open protocol for IM. I mean, Skype's IM sucks anyway...

23 May 2007

Erich Schubert: Playing Lotto with crypto keys

Bernd Zeimetz wanted to play Lotto using the famous crypto key that was used a processing key for most HD-DVDs so far. But he ran into the problem that the key (which is usually represented in hex) uses 256 numbers, lotto only has 1-49.Well, remember that in fact the key is a single number. So why process it as hex digits which is very artificial?
def lotto(x, y):
  if x = 0: return y
  return lotto(x / 49, [int(x%49+1)] + y)
lotto(0x09F911029D74E35BD84156C5635688C0, []) Here's your list of lotto numbers:
[43, 25, 5, 27, 12, 13, 44, 45, 1, 6, 10, 1, 20, 30, 2, 44, 5, 20, 18, 11, 6, 34]
Base 49 representation (lower digits last, shifted by 1) of the key. If you need more digits, add leading 1s. (which is the same as adding leading zeros to a decimal number).

22 May 2007

Erich Schubert: Birthday dancing

Tonight I turned 27. By chance, this fell onto a Tuesday, and there is a great dancing party every Monday. This monday, there was also a great band, the Souvenirs. They're pure fun and great for dancing - so I obviously opted to celebrate my birthday there.This probably was the nicest birthday party I've ever had: lots of friends showed up (though mostly girls, but thats fine with me :-)), we danced a lot. And danced. And danced. :-) And I'll probably spend some more hours today dancing later this day.And with dancing I mean: Swing, Lindy Hop, Balboa. I just love this music and these dances. So playful, sometimes cheeky - swinging...
Would you like to swing on a star
Carry moonbeams home in a jar
Todays music was also great, a nice speed and patterns you could play with... I don't know what it is, adrenaline?, that makes dancing so much fun. And probably the communication. Dancing is all about communication. There was this class titled "Moves that make the follow smile" once... That is the best moment in a dance, when you managed to lead the follow into some slight variations or some fun move matching the music, it worked out great and you see this flash of delight in their face... this "I'm not sure what we just did, but it felt just so right"-smile. The "I didn't know we could do that"-smile. That's what I'm striving for. Sometimes there are some moments in a song where this works out great, and occasionally there is a song where it works out through most of the song. These are the really great moments when dancing.Sorry, no pictures or videos. Just memories.Keep on swingin'!I'm really looking forward to events such as Senigallia (Summer Jamboree) or the Munich Lindy Exchange.And of course our regular events here in Munich, such as our Thursday open air get-together at Hofgarten, sundays in Salon Erna and mondays in Cord.

21 May 2007

Stefano Zacchiroli: i had a dream

I'm Going to Play Some Number at the Lotto The Lotto Game is a really popular gambling game in Italy, run by the state itself. As in all good gambling game: you, the player, can win a lot of money while who is running the game (the Italian state in our case) will win a lot of money for sure, no matter what. Anyhow, to the facts, it's a well-known folklore that people win playing Lotto FOR SURE by playing numbers told while dreaming by parents, friends, kitties, whatever, ... As a scientist, I've no reason not to trust this folklore, why should I? As a strange coincidence (another fact that strongly hints I HAVE TO PLAY), this night I had a dream (well, it was more this morning while reading the planet, but it doesn't really matter..., folklore is folklore!). There were a lot, really a lot of people whispering this to my ears:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

well, ok, they aren't in decimal notation, and they aren't even comprised between 1 and 90, ... but what would you expect from a bunch of geeks??? They are probably trying to exploit some overflow in the hands of the lotto extractor or something like that... But I won't desist, I'll play those number! Open questions: any proficient Lotto player to answer them around?

20 May 2007

Erich Schubert: Updating address books and privacy

An often quoted feature of services such as OpenBC/Xing (and most of such 'pure social networking' sites) is that they basically allow you to keep an address book without having the need to update it yourself.Some people may even argue that this is the only real benefit these social networking sites do actually offer.There are of course services dedicated to helping you keep your address book up to date. These often offer plugins for Thunderbird and Outlook, so you can actually use the address book directly. (e.g. Plaxo) Some email providers even have a function to send out "please update my address book entry on you" emails to your receipients (e.g. web.de), but most people find these quite annoying.Now some people might argue that you could use the FOAF standard for this. But publishing your FOAF data on the web is a privacy problem. Most people won't be willing to publish much more than their email address there. Just like some people are not willing to entrust their information to services such as OpenBC.Using e.g. HTTP authentification to restrict access to your FOAF data is also not working very well: you'd need some user management to be able to revoke access or change the access credentials if the passwords are leaked somehow.OpenID would definitely be interesting, but how many of your friends have OpenID yet? And not everybody has access to deploy the server side needed for this.The easiest to deploy approach would be to just use public key encryption. You could then upload an encrypted copy of your data for each 'friend' to any web site. You could also upload different data (including work contact information only, for example) for different recipients.My idea is like this: Big benefits of this approach: Drawbacks:

16 May 2007

Erich Schubert: How AMD intends to fix the ATI drivers ...

... is by waiting for the reverse engineers to offer better drivers than their fgrlx-crap (which doesn't even support my ATI card, and has some flicker artifacts on the Xpress 200m of my moms laptop).It does "solve your opensource issues" if you wait for opensource people to do the work...So the only good mainstream graphics choice these days remains intel, right? They might not be high-end enough for some games, but I don't care. It has all the 3D I need, and I could even run Compiz/Beryl if they would offer any benefits.

9 May 2007

Erich Schubert: Sch uble at LinuxTag 2007

Traditionally, the german ministry of the interior has been taking patronage for the LinuxTag. Which per-se is a good thing.However, the current minister of the interior has been publishing some "anti-terror proposals" that pretty much all opensource people see as a serious attack on their freedom, and that actually violate the constitution (or even the human rights, such as his statements towards torture).So this is a very odd situation: everybody would like to say "no" to him, but at the same time, welcome his ministry because of the good cooperation with opensource people the last years.IMHO, LinuxTag needs at least make a statement that while they welcome his efforts to establish the use of open source software in public administration, they can not agree with his political efforts with respect to the "war on terror", which pose a serious attack on the freedom of individuals.After all, there will be security experts at LinuxTag, and who if not they are capable of judging that e.g. the famous "federal trojan" won't be able to help much against organized crime (including terror organizations) because these can also organize computing safety (e.g. by not using Windows and not accepting executable data in email...). Or show up how much data abuse his proposals with respect to data gathering allow.

Erich Schubert: Munich Lindy Exchange

Munich Lindy Exchange 2007Registrations for the Munich Lindy Exchange (20. - 23. September 2007) are open.That will be a Lindy exchange to remember: this is the first Oktoberfest weekend, and of course the Lindy people will rock the Oktoberfest, too (apart from doing all kinds of other fun stuff, of course).(And yes, that means you should plan ahead - flights could become rather expensive during Oktoberfest. :-( )So if you are a Lindy Hop dancer, and want to meet some fun people, come to visit us. You won't be just a tourist, but you'll have "Munich natives" around you to show you all the cool places.Organized by Swing and the city (Christine von Scheidt).

5 May 2007

Erich Schubert: OpenSolaris negative publicity

It's scary how much negative publicity a single user can cause for a whole project...90% of the time when I read about OpenSolaris, it's by a highly aggressive troll, also known as the "author" of cdrecord (the term "current upstream maintainer" is probably more appropriate).And it's always the same blah-blah, how much superior Solaris is to Linux.But what is much worse is the way he posts and hist persistence. (I'd link some postings, but they're all in german at Heise). At Heise News, whenever there is a posting related to Linux (e.g. because of Berlin considering a Linux migration, or a posting about ZFS), he reiterates that you shouldn't be using Linux but OpenSolaris. And then flames anybody who again mentions Linux or GNU. Because as we all know, GNU tar is bad, and POSIX tar is the only god...One reason to avoid OpenSolaris is just to keep a distance from him. I'm sure that there are some good things in OpenSolaris, too. And that there are some smart people working on it. But you have to understand: I'd be more willing to setup a FreeBSD, NetBSD or OSX system (or even a windows system) than maybe having to deal with him when I run into some problem where I might need assistance. When doing FL/OSS development, I want a nice community around me, and the part I see of the OpenSolaris community is not very well-behaved.You might want to read this blog posting on Linux and Solaris scalability by DaveM for some comments on similar Solaris FUD. Seems like J.S. isn't the only aggressive advocate who prefers to flame instead of trying to impress with technical issues, professionalism and personality.

Next.

Previous.