Category: Linux

Install WordPress on Ubuntu virtual server at Media Temple

Server is a MediaTemple “ve” server which is a Parallels Virtuozzo container with Ubuntu 10.04 LTS Lucid installed as the operating system. The first step is to install packages:

Now set mysql service to start automatically:

Next create a database for wordpress:

Next we’ll download and install wordpress:

Now set the database credentials in /var/www/wp-config.php:

Finally point your web browser to the site and run the WordPress installer.

Read More »

Block IP Address With IPTables

Need to block am IP address from your server? Here’s an IPTables command: /sbin/iptables -I INPUT -s w.x.y.z -j DROP where w.x.y.z is the IP address to be blocked. Here’s a way to block and address with just the route command: /sbin/route add -host w.x.y.z reject

Read More »

RHEL5 Server Hardening

The National Security Agency publishes a great collection of documents that provide detailed security configuration guidelines. The full index can be found here: http://www.nsa.gov/ia/guidance/security_configuration_guides/index.shtml We particularly like the guides for RedHat EL5: “Hardening Tips For Default Installation of Red Hat Enterprise Linux 5” http://www.nsa.gov/ia/_files/factsheets/rhel5-pamphlet-i731.pdf “Guide to the Secure Configuration of Red Hat Enterprise Linux 5” http://www.nsa.gov/ia/_files/os/redhat/rhel5-guide-i731.pdf

Read More »

IPTables – Filter ICMP Timestamp Requests & Replies

Here’s how to filter or block ICMP timestamp requests and replies. On Redhat/CentOS, edit /etc/sysconfig/iptables and add the following lines

and then run:

Or run the following commands:

Recently on an Ubantu server we just added these lines to /etc/rc.local:

Read More »

ftps with lftp

lftp support ftps (different from sftp). ftps is ftp over an explicit TLS (SSL) connection. We’ve seen a few sites running MS IIS that require ftps and getting lftp to work has been tricky. To make it work verify that your lftp build has gnutls support compiled in with:

This build does not:

Here’s one that does:

Once you have have TLS support in your lftp build then you can put a file with something like this:

The option sets are critical as lftp wants to do “PROT C” by default but Windows wants to see “PROT P”.

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.