security

Computers, security, Server, Tips & Guides

How to Secure SSH server from Brute-Force and DDOS with Fail2ban ( Ubuntu )

Fail2ban is a security tool used for preventing brute-force attack and Distributed Denial of Service (DDoS) attack to your GNU/Linux box. Fail2ban monitors failed login attempts and subsequently blocks the ip address from further logins. Although Fail2ban can also be used to secure other services in Ubuntu server, in this post, I will only focus […]

GNU/Linux, Ubuntu/Debian

Debian Squeeze 6.0.2 update (Security – important)

Debian project has released update on Debian 6.0 (Squeeze) which addressed several security issues and bugfix. Debian Squeeze users are advised to update their installation using “apt-get update” and “apt-get upgrade” command to ensure all of the updates are installed properly. p/s: Although I currently use Ubuntu, I was actually a Debian user and I […]

Computers, security, Server

How to limit MySQL port access to specific network

MySQL service port are not meant to be accessible to the outside world as it would become a security concern to the administrator. Although MySQL server (mysqld) by itself has a built-in mechanism to deny access from unauthorized ip-address, it still does not protect it from being overwhelmed by multiple malicious requests or buffer overflow […]

Computers, security, Tips & Guides

How to crack SHA1, MD5 and Windows NTLM password hash using Rainbow tables in Linux

Rainbow tables is a form of attack method used to crack stored cryptographic hashes commonly used as passwords in various application. It is similar to brute-force and dictionary attack that it will try to compare the resulting hash with the hash it attempts to crack, except in Rainbow tables, the possible matching hashes are all […]

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 […]

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 […]

Scroll to Top