security

computer security related topic

security, Tips & Guides

Using Apache mod_security and .htaccess to block comment spam on the web

Comment spam is the most annoying thing to web operators. Besides eating up bandwidth, comment spam can pollute web discussions area and which gives bad impression to visitors. Apache HTTPD mod_security module can be configured to reduce web spam by filtering common keyword, content and referrer used by spam bots around the internet. Here’s an […]

Computers, GNU/Linux, Internet Stuff, security, Server

Iptables rule to safeguard SSH server from crackers

Secured Shell or SSH is a service to enable users to access remote system securely. However, SSH servers depending on password-based authentication might be vulnerable to dictionary-based (or brute-force) attacks by crackers. Luckily iptables can be used with ‘–limit-burst‘ and ‘–limit’ option to reduce the number of attempts and connection that a cracking tool can […]

Computers, security, Server, Tips & Guides

Howto solve ssh_exchange_identification: Connection closed by remote host error

I’ve keep getting the message “ssh_exchange_identification: Connection closed by remote host error” after I managed to finalized my CRUX linux on my decTOP box today. After enough looking into documentations, I finally found out that I need to edit the “/etc/hosts.allow” file to allow SSH connection, for example: #/etc/hosts.allow sshd:ALL or for more conservative setting […]

GNU/Linux, Internet Stuff, security, Server, Tips & Guides, Ubuntu/Debian

Video: Cracking Wifi WEP Keys using Backtrack 4 and aircrack-ng

Here’s a video showing you how to crack Wireless WEP keys using Backtrack 4 and aircrack-ng. Additionally, you need a compatible wireless adapter or compatible wireless chipset which can be used with aircrack-ng. Here are the list of the best wireless cards to use(according to aircrack-ng wiki): Alfa AWUS036H [b/g USB] 1W 802.11b/g USB Wireless […]

Computers, GNU/Linux, security, Ubuntu/Debian

Howto make SSH listens on multiple port

Although it is a security risks, it is possible to make OpenSSH listens on multiple port. To do that, you need to edit /etc/ssh/sshd_config file. and enable the “GatewayPorts” option. AllowTcpForwarding no GatewayPorts yes X11Forwarding no #X11DisplayOffset 10 Look for the line that contain “Port 22”, and uncomment it if necessary, and add additional Port […]

GNU/Linux, Open Source, security, Ubuntu/Debian

Easy File Encryption On Ubuntu Linux with OpenSSL

Here’s an easy way to encrypt your file using OpenSSL. The general syntax is: openssl enc (cipher) -e -in (input file) -out (output file) so to encrypt a “plaintext.txt” file, using aes256, you only need to run this command: openssl enc aes256 -e -in plaintext.txt -out encrypted.txt Similarly, to decrypt the file, you can run […]

Computers, GNU/Linux, security, Server, Ubuntu/Debian

Debian: Force users to use more secure login password with pam_cracklib

One of the factor that makes your system easily crackable is the weak password. PAM cracklib forces users to choose stronger password by analyzing the password strength, length and entropy. To enable pam_cracklib in Debian / Ubuntu operating system, you need to install libpam_cracklib: sudo apt-get install libpam_cracklib Then edit the “/etc/pam.d/common-password” file using your […]

GNU/Linux, Open Source, security, Ubuntu/Debian

How to Setup SSH public-key or password-less authentication in Ubuntu

Here’s how to setup public-key (or passwordless) authentication in Ubuntu or any other Linux based operating system that use OpenSSH. First make sure you’ve remote SSH server running and accepting connection. Then you need to generate ssh key on local server (I prefer RSA). You can enter passphrase for added security, or leave it blank […]

Computers, GNU/Linux, Internet Stuff, Open Source, security, Server, Ubuntu/Debian

How to setup Secure Webserver HTTPS (SSL) on Apache in Ubuntu

Secure HTTP (SSL/TLS) has become a must if you are planning to setup a website which includes user authentication (ie. login box) or sensitive data. HTTPS prevents the sensitive data from being transfered across the network in clear text where it is susceptible to being sniffed or altered. Here is the tutorial on how to […]

Computers, GNU/Linux, security, Ubuntu/Debian

How to use GNU Privacy Guard (GPG) – Encrypt, Decrypt, Sign and Verifying identities

GPG or the GNU Privacy Guard is a free and open source software that implements OpenPGP public-key cryptography message format (RFC4880). You can use GPG to encrypt, decrypt, sign and verify files or emails. To use GPG, you need to generate the public-key/private-key pairs in your computer by running this command, and choose the default […]

Computers, GNU/Linux, Internet Stuff, security, Tips & Guides, Ubuntu/Debian

How to block ads and malware websites using /etc/hosts files in Ubuntu

Here’s an easy way to block annoying advertisement and malware sites using ‘/etc/hosts’ file. First edit the /etc/hosts files using your favorite text editor : sudo gedit /etc/hosts Then, paste the list of ads/malware servers in the ‘hosts’ file. You can get the list from http://someonewhocares.org/hosts/ or by searching through Google. Close the file, and […]

Scroll to Top