Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 07-15-2005, 09:01 PM   #1
LQ Newbie
Registered: Jun 2005
Posts: 23

Rep: Reputation: 15
Shorewall Firewall Help Pls

Hello everyone,
I have fedora core 3 installed. I need some helpful tutorial on setting up firewall rules... (No GUI tools pls).
I came across "Shorewall" and it seems to be okay although I have some difficulty getting it work properly. I followed the tutorial on this page

However, this tutorial does not address anything related to editing the zone file. It seems editing the zone file is a mandotary on this new version.
So, my question is what needs to be added to the zone file? Basically, I want to allow incoming connection for web, ftp and so on in an easy to manage utility.

Does anybody use SHOREWALL??? Can you provide me with any sample configuration files to run a secure web server??

Of course, if you can suggest me any other command utility similar to shorewall that would be very useful to me. Thank you!
Old 07-16-2005, 01:32 AM   #2
Jerre Cope
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
You're trying to make it too hard.

First go back to the website and read the documentation there. It's very good documentation on iptables, firewalls and vpn.

Essentially you install shorewall (use the rpm if you're using FC3), then copy one of the examples from the above shorewall website. There are:

1) One Interface example for a simple firewall (no routing)
2) A Two Interface example for a router (Internet on one interface, LAN on the other)
3) A Three interface example (like 2, but with a DMZ)

Pick the example that best suits your needs, edit each of the example files (read the comments, lots of documentation there), then copy the files to /etc/shorewall.

Lastly, edit the /etc/shorewall/shorewall.conf file and change the


Zones are essentially labels you can define for different networks. For instance,

The name used for eth0 in the interfaces file might be net. net, then would need to be defined in zones.

Let's say loc refers to eth1, which is your local lan, so use use the name loc in your interfaces file which you first define in zones.

Complicated? Where zones really shine is when you need to define vpn tunnels for your firewall with really complex rules. You then define various vpn subnets in the tunnels file. Each of these networks needs a name, hence the zones file.

I've not attempted IPSEC with the new 2.6 kernel yet, but if you're using FreeSwan or OpenSwan, you'll go crazy without shorewall.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring shorewall (firewall) mrbig Linux - Software 2 09-09-2005 11:15 AM
shorewall firewall problem wisdom Linux - Security 1 02-02-2005 08:27 PM
Shorewall or other firewall??? SlipAway172 Linux - Security 5 01-25-2005 12:42 AM
Shorewall Firewall Questions bLaDe Linux - Security 3 08-13-2003 08:46 PM
Putty and Shorewall.. need help with firewall Newman_SCO Linux - Newbie 5 08-04-2003 03:43 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration