Linux Security
nmap - how to scan hosts of networks for open ports
Submitted by ggarron on Thu, 01/03/2008 - 00:02.nmap is a wonderful tool specially for debugging, there are lots of times when you need to know if a port is open in a server, or maybe blocked by a firewall, or just to test your iptables rules.
Here we will learn how to use it at the command line, and using its GUI front end, nmapFE and Knmap.
nmap - man page
Submitted by ggarron on Wed, 01/02/2008 - 21:41.NMAP(1) Nmap Reference Guide NMAP(1)
NAME
nmap - Network exploration tool and security / port scanner
SYNOPSIS
nmap [Scan Type...] [Options] {target specification}
DESCRIPTION
Nmap (“Network Mapper”) is an open source tool for network exploration
and security auditing. It was designed to rapidly scan large networks,
although it works fine against single hosts. Nmap uses raw IP packets
in novel ways to determine what hosts are available on the network,
The best Linux Blogs
Submitted by ggarron on Wed, 12/26/2007 - 00:56.I have posted a new thread in the Forum.
Please help me to create a great Linux blog's list, my goal is to have at least 100, but the more the better, please post your own blogs or any other blog you may know, you can post more than one, pleas provide a Link to it, if it is frequently updated or if it is not being updated any more, and a small description of the blog.
Really please go the thread and post your blog's links and description, and I will make a list with all your posts, which I hope could be useful for everybody of us.
Please go here and post your suggestions.
fail2ban - Free of dictionary attacks
Submitted by ggarron on Thu, 10/11/2007 - 03:00.Starting this year I posted about DenyHosts, which is a must have tool to avoid dictionary attacks to port 22 (ssh).
This kind of tools are really needed by sysadmins because the normal user refuse to make strong password, If the admin gives them a strong password, they will write it down, and then it stops being "strong", If the admin tells the normal users, they need to remember their passwords and not to write them down, they will come with weak passwords like their son's name, looking for new ways to secure the servers against dictionary attacks or brute force attacks, I have found this other tool that can do the job, I think this one is more flexible than DenyHosts, and also it works with Iptables.
Smoothwall 3.0 released
Submitted by ggarron on Wed, 10/10/2007 - 12:03.SmoothWall 3.0 Express (Code name: Polar) is now released, and ready to be downloaded.
You can expect to find an easier to install and configure SmoothWall according to its announcement.
It now has an improved VPN support, comes with Clamav to protect your Microsoft machines, also has the ability to monitor and record instant messages that passes trough it, and also to block some words the admin would find not appropriate. (This includes MSN, Yahoo, ICQ and AOL)
mysql root password recovery
Submitted by ggarron on Tue, 08/07/2007 - 15:01.If you ever loose your mysql root password (remember is not the same as the system root password) you can recover it following this steps
- Start MySQL in safe mode
- mysqld_safe --skip-grant-tables
- Enter the console as root
- mysql -u root
- Set the new password
- UPDATE mysql.user SET Password=PASSWORD('new_password') WHERE User='root';
- Update the privileges
- FLUSH PRIVILEGES;
TLS Error: Unroutable control packet received and Connection refused (code=111)
Submitted by ggarron on Sun, 07/15/2007 - 01:02.When I was today installing openvpn once I had everything configured, I got these errors.
On the server side.
Connection refused (code=111)
and on the client side.
TLS Error: Unroutable control packet received
After googling for a while I found the solution, all have to be with the time in both sides (server and client) so the solution is.
install rdate
apt-get rdate
and then sync the clocks on both pcs.
rdate -s 129.6.15.28
How to install openVPN - Stablish a vpn with Linux-
Submitted by ggarron on Sat, 07/14/2007 - 22:29.This how to is a summary of the How to you can find on the official site of OpenVPN.
You can follow this step by step and should success to create your VPN
Preliminaries
These are the assumptions
1. We have two computers each with two NICs
One connected to the Internet the other to an internal network
2. I have installed Debian on both of them.
Both PCs have only the base system installed, but you can install the graphical interface if you want to.
Encrypted email (Thunderbird, Enigmail, GNUPG)
Submitted by ggarron on Sun, 05/27/2007 - 04:28.With more and more people trying to get your passwords, and security information, and also stealing identities, as lots of virus does, sending emails to you as if they were some other people, people you know but who never sent you those emails.
Just for you to know what I am talking about, lots of virus, actually seek in the contact list and send emails to all of them with the reply-to field pointing to some other address of you contact list, that way some of your friends will receive an email as if it was sent by some other of your friends. (For Microsoft users only).
Secure your apache server from given info to hackers
Submitted by ggarron on Tue, 04/03/2007 - 01:00.Taken from: http://www.debianadmin.com/securing-apache-web-server-from-information-l...
A lot of more interesting content, for Debian, visit: http://www.debianadmin.com/
By default, most pre-packaged apache installations come with full information leakage, so if you telnet to port 80 on your webserver you can check, just type in the GET / HTTP/1.1 line, then hit enter twice
Disable ssh root direct login
Submitted by ggarron on Mon, 03/19/2007 - 04:53.For security reasons it is not a good idea to permit ssh root direct login, it is better to login as another user, and then switch to root using the 'su -' comand, to do this, you need to disable root from login directly using ssh protocol, this will decrease the possibility of a hacker breaking your linux box, as now he will have to guess your user name and your password
Ok, let's go and see to make this.
Using scp and duplicity for full security back up
Submitted by ggarron on Sun, 03/18/2007 - 01:38.To be almost 100% that your data is secure, and I said almost because you are never 100% secure!
Ok, Here we will see how to use together ssh (scp) and duplicity to encrypt your backed up data and to copy it to another server using an encrypted tunnel.
Backup up your files in another server using encripted SSH
Submitted by ggarron on Sat, 03/10/2007 - 15:12.If you have two servers, could be a good idea to make cross backups of the important data, so if any of them fails you can always restore from the other.
Here we will use rsync and ssh to make this possible, rsync is used to sync files between folders on the same machine or between machines, ssh will open an encrypted tunnel so the data could be secure on the transfer.
Vlan support on Debian
Submitted by ggarron on Tue, 02/20/2007 - 00:30.Suppose you have a layer 2 switch with support for 802.1q, and want to route traffic from one VLAN to another VLAN you can use a linux box for that.
Your Home file permissions
Submitted by ggarron on Thu, 02/08/2007 - 03:11.How to make your $HOME directory only for your eyes.
smoothwall screenshots Installation
Submitted by ggarron on Thu, 02/08/2007 - 03:03.I have taken these screenshots of an instalation of smoothwall, hope it helps
How to login in a remote server using SSH and no password
Submitted by ggarron on Tue, 02/06/2007 - 23:01.If you would like to connect to your machine through ssh without being asked for a password you should do this.
Secure VNC using SSH
Submitted by ggarron on Mon, 02/05/2007 - 05:19.As VNC is not a secure way to connect to your linux server, you can run VNC over an SSH connection, here is how
DenyHosts
Submitted by ggarron on Tue, 01/30/2007 - 02:35.Whenever you need to left open the port 22 for ssh you machine from every where,but want to prevent Dictionary attacks, you can use DenyHosts to stay protected
First thing you need as DenyHost runs as a python script, is to be sure you python installed.
Root Password Recovery Fedora (RedHat)
Submitted by ggarron on Tue, 01/30/2007 - 02:33.How to recover / change the root password on RedHat Linux based systems
When you lost your root password in a RedHat Linux Based systems you should first have access to the console, (the machine itself).
Power on, or reboot as needed.



