CyberArmy University | Open Source Institute | CyberArmy Intelligence & Security | CyberArmy Services & Projects

[Security] Linux security tutorial introduction


[Reply] [View by Thread] [Help]
[Back To Article Discussion Forum]

Posted by Author System On 2007-04-29 10:01:48




View and vote on the article here: Linux security tutorial introduction


Linux security tutorial introduction

Category
Security
Summary
Linux security tutorial 1



This, and subsequent tutorials are aimed at complete beginners to the Linux operating system.



If you've just installed Linux on your machine, or are about to install Linux, then you no doubt want to get straight into
Body
Future tutorials will focus on specific issues in depth. I hope to publish one every week until I'm all out of knowledge.



If you're new to Linux then I'm assuming you're using a newish distribution and therefore have a 2.4.x kernel and are using iptables. You will need root access to follow these tutorials. I will also assume you are using xinet and have access to basic Linux commands and some, like telnet that come with all distributions as far as I know.



It is not the intent of these tutorials to teach Linux administration in any way other than security wise. If I use a command you don't know which is not directley connected to this subject then I suggest you find reading material to help you. An example of such a situation would be renaming a file or creating a directory.



Let's begin.



If you open up a terminal and switch to the root user ( or open the terminal as the root user ) we can quickly make a reasonably secure firewall using iptables. It will not allow any connections to your machine so you can surf the internet safely. Enter the following commands to set up this simple firewall.



iptables -P INPUT DROP

iptables -A INPUT -s 127.0.0.1 -j ACCEPT

iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT



This should be enough to last until you learn more about firewalls. There will be a full tutorial in this series on using iptables which you will be able to use to set up your own personalised firewall. If you have ipchains or just want to learn more right away, you can find excellent firewall tutorials at www.linuxdoc.org .



If the above commands refuse to work, especially if it complains about the line with 'state' in it, your kernel may need to be configured which is way outside the scope of this tutorial.



This first tutorial has already taken up enough room so I'll end it here, even though I didn't get to fit in everything I wanted.



There'll be at least 1 new tutorial per week, hopefully two, and in them I will cover a vast array of subjects to help you totally secure your Linux machine. Each will be in an easy to follow tutorial, and I may set up an accompanying website to go along with the next tutorial and all tutorials after that.



If you thought this tutorial was pants and a waste of time please let me know, but I promise you they are going to get better.


This article was imported from zZine. (original author: morbivella)


There are no replies to this post yet.



Guest:
Subject:
Message:
Signature:
Optional Image Link:
http://

CyberArmy::Forum v0.6
Generated In 0.01484 seconds


About Us | Privacy Policy | Mission Statement | Help