HostOnNet Blog

Author Archives: flashweb

Change Hostname of FreeBSD Server

To change your hostname to example server24.hosthat.com Run the command ‘hostname server24.hosthat.com’ Edit the file /etc/hosts Edit the file /etc/rc.conf You can see hostname of a FreeBSD server with command server22# hostname server22.hosthat.com server22#


FreeBSD System Security

Clearing the /tmp directory on startup is a good practice, and should be implemented on any production server. In order to do so, add the following line to the file /etc/rc.conf clear_tmp_enable=”YES”


TCP/IP Hardening

The following lines need to be added to the file /etc/rc.conf in order to take effect. Please note that changes will not take effect until a system restart. Prevent OS Fingerprinting tcp_drop_synfin=”YES” Prevent ICMP Redirect icmp_drop_redirect=”YES” Blackhole TCP Packets net.inet.tcp.blackhole=2


User Security

The first thing you should take stock of are the users with unlocked accounts. Users with unlocked accounts are allowed to login if assigned a valid shell, and should be kept to a minimum. To get a list of unlocked


Network Security

To get a list of listening network ports, run the following: # sockstat -4 Disable any ports that are not necessary. To do so, kill the PID shown by netstat. The only port that your server must be listening on


File system Security

There are certain files whose presence in the FreeBSD file system can present a security risk and should be remedied as soon as possible. When the SUID (set user ID) or SGID (set group ID) bits are set on an


Creating MySQL Database

You can create MySQL database with create database DATABASE_NAME command. root@host [~]# mysql Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 937316 to server version: 4.0.25-standard Type ‘help;’ or ‘h’ for help.


WordPress Resources

Theme Browser http://www.alexking.org/software/wordpress/theme_browser.php WordPress Plugin Database http://www.unknowngenius.com/wp-plugins/  


Godaddy SSL Certificate Not working on FireFox

Godaddy SSL Certificate was installed for a web site hosted on Windows 2003 Server. It worked fine on Internet Explorer and Opera. But it says the Certificate in Not trusted when you enter the site with FireFox. http://blogs.bizhat.com/bizhat/files/2005/10/godaddy_ssl.gif The problem


WordPress Image Rotator

“A Better Image Rotator” is an easy to use image rotator ssript that will work with WorlPress. With this script, you can rotate images in your WordPress Blog. You can find the script at http://www.alistapart.com/articles/betterrotator/