In May 2008, OpenBSD 4.3 will be released. Check the new features of OpenBSD 4.3 for a full list. These are the features that I like best:
The OpenBSD team has been working hard for (at least) the last half year! Thanks!
The results are in at the Pwn2Own Contest held at the CanSecWest conference in Vancouver. The competition pitted a fully-patched version of Windows Vista with SP1 versus Mac's Leopard OS and Linux's Ubuntu. The idea of the contest is that if you can find an exploit in and take control of one of the three machines' OSes on the first day, then you win $20,000 USD plus the machine that you hacked. On the second day, they drop the bounty to $10,000 USD and open up some common third party software. Finally, the third day drops the prize to $5000 and opens up a large pool of commonly used software. As a testament to the robust security of all three OSes, none of the competitors attempted to crack them on the first day.
On day two, Independent Security Evaluators sniped Leopard via an unknown vulnerability in Apple's Safari browser. On day three, Shane Macaulay tagged Vista through Adobe's Flash software which is one of the most common pieces of software found on Windows machines of all varieties. Needless to say, that's a gigantic security hole that can potentially affect a multitude of Windows users, so if you're a Win-nut, you might want to stay away from any unknown flash applications until the security patch is released. For the Mac users--well, most of you never listen to common sense anyway, so hopefully your illustrious company will repair your damaged egos with the appropriate patch.
What about Ubuntu? Still untouched. Why? Because black-hats know that Windows machines and Macs are easier. Seriously, why bother with Linux when black-hats AND white-hats are locking the thing down for their own good? All the money is with the other two machines. Also, you can think of it this way: if you hacked the Ubuntu machine, you'd get a machine plus something you could download for free--with Windows and Leopard, you get the added monetary bonus of an overpriced OS.
Here is a very cool website to check how strong the password is that you are typing. Surprising how different passwords give different scores.
Would like to integrate a tool like this in applications like Drupal.
Bacause the article "Using Putty and an HTTP proxy to ssh anywhere through firewalls" was read well, here is the same trick, but then on Linux/UNIX/*BSD.
Imagine you are using a Linux/UNIX/*BSD system and you can't use ssh to go outside of your companies network. Here is a trick to ssh through the proxy.
Just to be sure, here is the list of requirements:
So, you got them all? Let's go then.
If you are lucky you can just open the preferences of your webbrowser and see what proxy (and ports, mostly 3128 or 8080. 80 could also be used.) you are using.
If you are using a PAC file and can't figure out what proxy you are using, follow these steps to check out what proxy you are using:
OpenSSH opens an optional configuration file when starting the client. You can set options for all sessions or specific hosts in ~/.ssh/config .
My configuration looks like this:
Host machine-on-the-outside-network.example.com
ProxyCommand /usr/local/bin/corkscrew proxy.on-the-inside-network.example.com 3128 %h %pNow start the connection to see if it works:
$ ssh machine-on-the-outside-network.example.comHopefully this will work for you, you might get more information if you add the -v switch to the ssh command.
When you are writing a shell script, you can set the shell script to debug, like this:
#!/bin/sh -xBut; when you are using functions, the debugging is disabled for the functions. When you set -x the function will also debug, like this:
#!/bin/sh
function-whatever () {
set -x
echo "Hello World!"
}
function-whateverFor people unknown to shell scripting, here is a little help on the "channels" stdout, (standard out, 1) stderr, (standard error, 2) and stdin (standard in, 0).
When you launch a command like ls, it will output the list of files to /dev/stdout . (a.k.a. channel 1 or standard out)
When a command has an error to report, it reports it to /dev/stderr . (a.k.a. channel 2 or standard error)
Normally both stdout and stderr are displayed at your screen, so you do not know about these channels. Lets do an experiment to demonstrate the different channels.
$ ls
myfile
yourfile
$ ls myfile nofile
myfile
ls: nofile: No such file or directory
$ ls myfile nofile > /dev/null
ls: nofile: No such file or directory
$ ls myfile nofile 2> /dev/null
myfile
$ ls myfile nofile > /dev/null 2>&1
$So what just happened?
Here's a topic that's near and dear to me as a writer: books. Another thing I consider wonderful as a technophiliac is open source stuff. Now, combine those two and you get Open Source Books! It's a wonderful concept that combines the free mentality of source code with literary and informational texts. It allows the average person with internet access to have a library of extremely useful information at their fingertips, and it's a whole lot cheaper than taking classes!
One of the first places I ran across when Googling up open source books was the O'Reilly website. For O'reilly's open source books, they use the Creative Commons License which is somewhere between, as they put it, all rights reserved and no rights reserved. My general understanding of Creative Commons is that the license a little different with each book, and you generally can't edit and redistribute the book with your name added to it like you can with source code in the GPL. However, you can find quite a few titles on here from books that are out of print or otherwise (for one reason or another) released for free as either PDF or HTML texts. These are useful for finding that tidbit of information you read somewhere but can't find anymore.
Another great resource is Archive.org's Open Source Books where you will find, to date, nearly 14,000 books in various languages. They also have a section for the old Project Gutenburg that contains many older books that have gone out of print and are now in electronic format. PG has been on the net for a long time, and they've been providing free books to the world before it became hip.
Take advantage of these resources to educate yourself about a variety of topics.
Here is a simple telnet trick, so check if a port is open and responding as expected. Be aware that the check described here is a bit simplistic, but it does demonstrate the capabilities of telnet on the shell.
$ smtpserver="smtp"
$ smtpport="25"
$ ( echo open $smtpserver $smtpport ; sleep 1 ; echo quit ) | telnet 2>&1 | grep 220 > /dev/null 2>&1
$ echo $?This will print "0" when everything is correct, and 1 when the grep did not work.
Imagine the rules of a social network would apply to corporate enterprises, these strange situations would arise:
Wow, that would actually be a very positive thing!
When administering an Apache web server, you will encounter moment when some of your clients, but hopefully you, published something that causes a rush of visitors to your web server. How do you manage that peak? Here are some tricks that you could use:
Apache has many performance related configuration options. When you run a small server, the default configuration of Apache might cause requests to be answered very slowly.
Apache runs on a desktop-comparable machine for my website, so I have altered these settings. The impact of this change was huge! Where the default settings would cause extreme high (100+) loads and extremely slow request, the web server runs healthy now.
StartServers 16
MinSpareServers 8
MaxSpareServers 32
ServerLimit 32
MaxClients 32
MaxRequestsPerChild 4000Configure Apache to allow you to see the status pages. This will help you identify what is using all the resources.
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>When you are in deep shit, move services like the database, email, domain name resolution, etc to a different machine. This will help you spread the load and will also help you identify where the problem exactly is.
After figuring out what virtual host eats all CPU cycles or available memory, check to see the (php) code. If you are not comfortable with it, let the user (and owner) do this. He/she is responsible for hir/her code.
This is the most difficult step to take and is in a gray area; it's not system administration, but sure comes close.
| About | Consultancy | Articles | Contact |
|
|
|
|
|
| References | Red Hat Certified Architect | By Robert de Bock | Robert de Bock |
| Curriculum Vitae | By Fred Clausen | +31 6 14 39 58 72 | |
| By Nelson Manning | robert@meinit.nl |