Home Blog Page 2835

Android developer anecdotally claims AdMob brings home the bacon

In February 2009, Arron La’s $0.99 Advanced Task Manager was one of the first paid apps on Android, allowing T-Mobile G1 users to do what was then a novel thing — close applications. (We immediately bought a copy.) Today, the app is all but obsolete, its functionality baked right into Android’s core, but Arron’s still making thousands of dollars a month. Why do we bring this up? Because nine months after Arron released the pay-first version, he unleashed an ad-supported variant as well… and since that day, each has contributed about the same amount ($30,000) of money. It’s not exactly an object lesson in what’s possible on the 50,000-application-strong Android Market, as this gentleman obviously had quite the head start, but it does show that when it comes time to monetize your best-thing-since-sliced-bread app, there’s more than one option — ads can be an equally good revenue source.
 
Read more at Engadget Mobile

The Linux 2.6.36-rc2 Kernel Is Out With An Announcement

The Linux 2.6.36-rc2 kernel has been released this Sunday afternoon and this time around there’s an announcement of the release by Linus Torvalds (he lacked announcing 2.6.36-rc1; Phoronix was one of the few places reporting on it). The 2.6.36-rc2 kernel release brings mostly bug/regression fixes, but compared to the Linux 2.6.35 kernel, Linus has accepted some pull requests after the -rc1 release in the Linux 2.6.36 kernel while denying other requests…

Read more at Phoronix

Motorola Milestone to get Android 2.2 in Europe and Korea in Q4, Dext 2.1 upgrade looking bleak

Until now, Milestone owners could do nothing but to envy Droid users rocking the Froyo upgrade; however, according to Motorola’s recently published timeline, the former device is now slated for the same dessert party in Europe and Korea in Q4 — potentially a few weeks later than its American cousin. Meanwhile, said upgrade is “under evaluation” for Canada, Latin America, Mexico and Asia-Pacific sans Korea.

But here’s the real heartbreaking news from the same chart: unlike their American counterparts, the Dext and Backflip will not be getting an Eclair update in Europe, Latin American and Mexico, while Canada and Asia-Pacific still have a glimpse of hope. Sure, it’s not like Motorola’s earlier timeline laid any concrete details for the European Dext, but there was definitely a date for the Latin America flavor. What concerns us the most is that Motorola did make a promise — which has since been deleted but cached by Google — to its European fans on Facebook: “[the] Dext will get the Android 2.1 upgrade as well.” We have the full statement after the break.

Read more at Engadget Mobile

openSUSE Weekly News, Issue 137 is out!

p, li { white-space: pre-wrap; We are pleased to announce our new Issue 137 of openSUSE Weekly News.


This Week:

  • Sirko Kemter: Improve artwork openSUSE 11.4
  • Javier Llorente: KDE Release Party in Madrid
  • Softpedia/Lucian Constantin: Critical Vulnerability Silently Patched in Linux Kernel
  • Tips4Linux.com: Convert eBooks in Linux
  • opensource.com/Ruth Suehle: Ready to be an open source contributor but don’t know where to start?

Like ever we have now finshed just the english Version under: http://en.opensuse.org/Weekly_news. From now on starts the translating Process. You can see the actual results under: http://en.opensuse.org/Weekly_news#Translations. If any Translation is ready the Translation Team moves the Language up to “Available”.


No we hope you enjoy the reading 🙂


Comments, News and Wishes can send to
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
.

 

Weekend Project: Secure Your System with Port Knocking

Port knocking is an authentication system that allows a server to keep ports closed by default, and open them up only when clients send a pre-determined sequence of connection requests aimed at particular TCP or UDP ports. as a result, you can, for example, keep SSH both invisible and inaccessible to passersby, but still allow clients armed with the secret knock to connect. setting up port knocking on your Linux system is easy, but make sure you set aside time to familiarize yourself with the security and practical risks.

Server-side setup

The most popular port knocking package on Linux system is knockd. It works in concert with Linux’s iptables firewall, running as a daemon that listens on a network interface for a pre-configured sequence of connection requests. When a matching sequence is detected, knockd executes an associated command from its configuration file — canonically, an iptables command that either opens or closes a particular port on which a service is already running.

In the most common example configuration, OpenSSH (or another equally-securable service) is running on a standard port (such as TCP port 22), but iptables is configured to block access to it by dropping packets. Knockd listens on eth0 for TCP SYN packets sent to a particular sequence of ports (such as port 9000, port 6501, port 1234, then port 4321). When a matching knock is detected, knockd executes an iptables command that tells the firewall to start accepting packets on TCP port 22, and the client can begin an SSH session as normal.

You can download knockd from the project’s Web site; source code as well as Debian, RPM, and Slackware packages are provided. Knockd is commonly distributed by the major Linux distributions, though, so check your package manager first. Once installed, you configure knockd’s behavior in the file /etc/knockd.conf.

At the top of knockd.conf is a global [options] stanza. Here you can put system-wide directives, the most common of which would be to specify the network interface on multi-interfaces systems. For example, add a line containing Interface = eth1 to bind knockd to eth1 instead of the default eth0.

Below this, each knockd “event” receives its own stanza, starting with a bracket-enclosed name. The default file contains two:

[openSSH]
	sequence    = 7000,8000,9000
	seq_timeout = 5
	command     = /sbin/iptables -A INPUT -s %IP% -p tcp --dport 22 -j ACCEPT
	tcpflags    = syn

[closeSSH]
	sequence    = 9000,8000,7000
	seq_timeout = 5
	command     = /sbin/iptables -D INPUT -s %IP% -p tcp --dport 22 -j ACCEPT
	tcpflags    = syn

In each case, the sequence directive lists the order of the TCP ports that make up the secret knock. Numbers by themselves are taken to mean TCP ports, however you can specify TCP or UDP ports by appending :tcp or :udp. A combined knock might specify both, e.g. sequence = 3333:tcp,9999:udp,1010:udp,8675:tcp.

The seq_timeout specifies a maximum time for the knock to take — start to finish — in order for it to be accepted, and the command directive lists the command that is triggered by the knock. In the example, you see that opening and closing port 22 require two different knocks. An alternative configuration allows you to run a start_command when the knock is heard, then wait a specified amount of time, then run a stop_command. This will open up port 22 for exactly one minute, then close it again:

	start_command = /usr/sbin/iptables -A INPUT -s %IP% -p tcp --syn --dport 22 -j ACCEPT
        cmd_timeout   = 60
        stop_command  = /usr/sbin/iptables -D INPUT -s %IP% -p tcp --syn --dport 22 -j ACCEPT

The tcpflags directive tells knockd only to listen for packets that match the specified TCP flags (in the example, just SYN). You can add multiple flags, such as syn,urg,fin or even negate flags with the exclamation point character, such as !ack. The advantage to using TCP flags as part of the knock is that under normal circumstances, knockd ignores malformed packets (which is probably what you want).

You can start knockd manually by running /etc/init.d/knockd start, or configure it to run at init time by editing /etc/default/knockd and setting START_KNOCKD=1.

Obviously, under absolutely no circumstances should you deploy knockd using the default knock of 7000,8000,9000. Similarly, because all port knocking provides is a layer of security when the underlying service in inactive, you must make sure that your SSH server is secure in its own right — only use SSH version 2, use DSA public key authentication, and so on.

Client setup

You can test your basic port knocking setup from another machine with a simple telnet client. With the server running, run telnet 192.168.1.100 3333 to send a connection request to 192.168.1.100 on TCP port 3333, followed by one on each of the other ports in your secret knock.

For regular usage, however, you will want a port knocking client. Knockd comes with a command-line client named knock that uses the same syntax as knockd.conf, so knock 192.168.1.100 3333:tcp 9999:udp 1010:udp 8675:tcp will issue the knock described a few paragraphs above. With the knock entered, initiate an SSH connection as you would normally.

If your secret knock depends on TCP flags, though, you will need to look at a more advanced tool, such as SendIP or packit, which can send arbitrarily-constructed packets.

If you use port knocking on a routine basis, you may be interested in finding a client for your mobile devices in addition to full-fledged Linux systems. There are at least two knockd-compatible clients written for the iPhone platform: Port Knock Lite and KnockOnD, and one for Android: knock-android. There does not seem to be an active client for Maemo or MeeGo at the present, although these platforms similarity to desktop and server Linux should mean that the standard knock will compile without too much additional trouble. There is also a PHP client that is knockd-compatible.

Practical implementation concerns

One of the reasons you do not see many special-purpose port knocking clients that store and recall the secret knocks for you is that that would be akin to storing the login password — the secret knock needs to be something that you memorize and know by heart in order to be effective.

Of course, one of port knocking’s major criticisms is that an attacker sniffing the network connection could discover your secret knock and replay it later. Naturally, the more frequent you use the knock, the bigger the risk. One solution to this is to send dummy knocks along with the real knock, but really it just reveals the importance of securing SSH or the other service in addition to concealing it. If your secret knock is compromised, changing it is at least a simple affair.

A far more sophisticated protection against this attack is to combine port knocking with one-time-passwords, creating one-time-knocks. Knockd supports this through the one_time_sequences directive in knockd.conf. Rather than explicitly describing a knock, one_time_sequences is used to specify a file location, in which are stored a list of knock sequences, one per line. Each time a client connects using a knock, knockd comments-out that knock from the file and listens for the next one.

You also need to be aware that port knocking has its disadvantages. First, if knockd dies, you are locked out of remote access to the hidden service (unless, of course, you manage to crack the firewall subsequently). Just as importantly, because IP packets may get routed in unpredictable ways, unless you are close to the server machine on the network there is always a chance that your knock packets will arrive out of sequence; for this reason it is a good idea to not send them too rapidly, and to set a reasonable value for seq_timeout.

In full appreciation for port knocking, it is also important to understand that by no means is knockd limited to changing firewall rules as an event response. You can use a secret knock to remotely trigger any sort of event, from an rsync backup all the way to a script that erases your home directory and sends a resignation email to your boss, all without opening up a single port to the outside world.

Extra credit: more sophisticated servers

There are other port knocking (and conceptually related) servers available besides knockd. A few you might want to check out include sig2knock, which builds on the idea of non-fixed knock sequences and adds port randomization, portkey, which tightens down the port knocking idea to work exclusively with Linux iptables, and reverse remote shell (rrs), which is an SSL-secured shell that builds in port knocking as its remote access method. If you don’t want users running arbitrary commands on a server you adminster, you may find portkey or rrs a better fit than knockd. On the other hand, if security is your main concern, sig2knock offers some compelling enhancements.

Several projects attempt to overcome the replay attack problem by delving more into standard cryptographic key-based authentication. Examples include cryptknock, COK, and tariq. The disadvantage of these systems is that you cannot rely solely on your ability to memorize the secret knock to provide you with access. However, the more sophisticated systems do introduce other beneficial security factors, such as blacklists and whitelists to restrict which IP addresses can connect. More projects related to port knocking are listed on the portknocking.org site, along with research papers and other resources for further study.

When serious security professionals will tell you that port knocking only adds one relatively thin layer of security to a system, they are correct. You still need to have strong access controls and multi-factor authentication in order to secure your machine for remote access. However, port knocking makes your service invisible to onlookers, which is a valuable asset in many computing environments, and if you take care to change your knock, it can prevent brute-force “dictionary” attacks against your SSH users. After all, you can never be too secure, can you?

IBM: Innovation is the key driver for CIOs, not Cost

Last week at LinuxCon, we presented a lot of great content for business leaders in the world of Linux and open source. (Al Gillen of IDC, Jeffrey Hammond of Forester, among others.). One of my favorite sessions was from Jean Staten Healy, Director of IBM Worldwide Linux Strategy who looked at Linux in the minds of CIOs and how it’s changed.

Remember ten years ago, IBM made a $1 billion bet on Linux, and in so doing, helped create the momentum for Linux in the enterprise data center that we all enjoy today.  Back then, IBM concentrated on three areas:

– Making Linux better – providing contributions to help improve Linux with respect to reliability, availability and serviceability

– Enabling IBM products – both across major server lines and throughout the IBM middleware portfolio

– Extending Linux into new opportunity areas – Helping to expanding the total addressable market for Linux (e.g. Real-Time, HPC, SoNAS)

Jean shared data from IBM’s 2009 Global CIO study. The survey had over 2,500 interviews of CIOs worldwide spanning 78 countries and 19 industries. Some interesting findings:

– Today’s CIO spend 55% of their time on activities that spur innovation

– The remaining 45% of their time is spent on essential, more traditional tasks related to managing IT

– Cost effectiveness was at the top of the CIO list for much of the last decade of Linux, but that is no longer the primary driver for today’s CIO in their adoption of Linux.

– They are choosing Linux for strategic reasons: they see Linux as helping them keep up with demand and be flexible and nimble. This trumps cost. It’s about time to value and innovation now.

– Linux’ virtualization capabilities and inherent flexibility are helping CIOs get the most out of their existing IT investments.

The questions CIOs are now asking: “How fast can I get this deployed? Will it grow with me as my business changes? Can I find talent for this platform?”

This is good news for Linux. I’ve always tried to downplay the role of cost as a driver for Linux adoption. Cost certainly matters but it’s not the end game. I’m pleased to see IBM’s data back up our assumption that Linux is helping CIOs and companies remain nimble, deliver faster time to value and get the most out of their existing investments. Innovation is the driver in the minds of CIOs now, and Linux is well positioned ten years after IBM’s $1 billion bet.

Droid X upgrade to Android 2.2 leaks out

What we’re looking at here is allegedly the leaked over-the-air update to Froyo that Verizon plans on deploying to Droid X customers in the next few weeks, which means two critical things for customers: it should generally be faster all the way around, and — of course — you’ve got support for Flash, which was a big topic of interest at Motorola’s launch event for the phone a couple months back. The update is available both in rooted and non-rooted versions, so if you’re feeling adventurous today and you enjoy the thrill of doing something that offers a remote possibility of bricking your phone, you may want to go ahead and grab it. Good luck, and let us know your experiences in comments, alright?
 
Read more at Engadget Mobile

Caching With Apache’s mod_cache On Ubuntu 10.04

Caching With Apache’s mod_cache On Ubuntu 10.04

This article explains how you can cache your web site contents with Apache’s mod_cache on Ubuntu 10.04. If you have a high-traffic dynamic web site that generates lots of database queries on each request, you can decrease the server load dramatically by caching your content for a few minutes or more (that depends on how often you update your content).

Read more at HowtoForge

Canonical discontinues Itanium and SPARC support in Ubuntu

Ubuntu 10.10, code-named Maverick Meerkat, will not be ported to the Itanium and SPARC platforms, because the two processor platforms have been without a dedicated maintainer for some time

Read more at The H

Mini PC includes dual-core Atom, Ion 2 graphics

Shuttle says it’s now shipping a mini PC that comes with a dual-core Intel Atom D510 CPU and is available with Nvidia Ion 2 graphics. The XS35 includes an Ethernet port, five USB ports, plus both HDMI and VGA video outputs, the company says….

Read more at LinuxDevices