Main Menu

friends

Banner

Latest articles

Install adobe acrobat reader on Fedora 12
11/03/2010 | mad mad mod

To install Acrobat Reader on Fedora 12 type the following commands as root: # rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
 # yum install AdobeRea [ ... ]


How to find files in Linux
02/08/2009 | mad mad mod

This article describes how to find files in Linux. locateThe fastest way to find a file on Linux is by using the "locate" command. If you know the name of the file or just a part of the name you  [ ... ]


Other Articles
Facebook MySpace Twitter Digg Delicious Stumbleupon Google Bookmarks 

Designed by:
SiteGround web hosting Joomla Templates
setting up a very simple firewall (Fedora) E-mail
Security

This article describes how to set up a very simple desktop-firewall on Linux (Fedora).

 

Step 1: make sure iptables is installed on your system:

# rpm -qa | grep iptables
iptables-1.4.1.1-1.fc8

 

If iptables is not installed, you can install it with

 

# yum install iptables

 

Step 2: make sure iptables starts automatically at bootup:


# chkconfig --list iptables
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off

 

If it is not switched on in runlevel 2, 3, 4 and 5:

# chkconfig --level 2345 iptables on

 

step 3: start iptables

# service iptables start

 

step 4: delete all firewall rules

 

# iptables --flush

 

step 5: create new rule-set

We will create a new user-defined "chain" and we will call it "MYRULES".

  • We accept all outgoing traffic
  • We accept local loopback device traffic
  • We accept packets from outside if we have started the connection or the connection is related with an existing connection (e.g. ftp data transfer)
  • We drop and log all other incoming packets

 

  

# iptables -N MYRULES

# iptables -A INPUT -j MYRULES
# iptables -I INPUT 1 -i lo -p all -j ACCEPT

# iptables -A MYRULES -m state --state ESTABLISHED,RELATED -j ACCEPT
# iptables -A MYRULES -j LOG
# iptables -A MYRULES -j DROP

 

step 6: save the new firewall rules

 

 

# iptables-save > /etc/sysconfig/iptables

Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Please input the anti-spam code that you can read in the image.

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

 
mad mad mod, Powered by Joomla! and designed by SiteGround web hosting