[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

How do I

These are part of an assignment that I have.  I am looking for answers to the following tasks.

1.  How do I enable the firewall in a linux machine

2.  Write the rule sets to block the network traffic

3.  Monitor the firewall logs

4.  Network address translation

5.  Start the firewall automatically at the system startup.

I think I know some of these but would feel better about them if I got some input from an expert!!  :)

Thank You,


1 Solution
David PiniellaCommented:
http://www.netfilter.org/ will answer your questions. The most common firewall on linux systems these days is iptables/netfilter (iptables is the userspace part, netfilter is the kernel part, but they're essentially the same thing.) You may also want to look through the O'Reilly book on iptables.

What kind of assignment? Note that the E-E member agreement has things to say about helping students with assignments.
iptables the firewall thing in linux by default it only have CLI tool for controlling Firewall I suggest you to use the following like to download Firestarter a GUI front end to iptables

I hope all other Qs can be answered by using this tool. It will do everything for you in GUI. Go ahead try it.

Linux uses iptables to implement firewall.

1. chkconfig iptables on
2. edit /etc/sysconfig/iptables
or if you already set rukles
/etc/rc.d/iptables save
it will save rules to /etc/sysconfig/iptables and iptables service will load them when starts
3. Use -j ULOG feature of iptables
4. Use -j SNAT and -j DNAT features
5. chkconfig (i wrote at 1.) enables autoloading iptables on 3,4,5 runlevel

If you prefer to use GUI then go to use www.fwbuilder.com software.
Use great FAQ also

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now