Shorewall and CONTINUE policy

This is a discussion on Shorewall and CONTINUE policy within the Linux Networking forums, part of the Linux Forums category; Shorewall on debian/sarge, versions 2.2.3 and 2.4.1. I've got a general purpose DMZ network ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-26-2005
chris-usenet@roaima.co.uk
 
Posts: n/a
Default Shorewall and CONTINUE policy

Shorewall on debian/sarge, versions 2.2.3 and 2.4.1.

I've got a general purpose DMZ network on an extra interface, with 15 IP
addresses (.1 through .15). I want to have specific zones for specific
groups of machines, with a general set of fall-back rules for the DMZ as
a whole.

My zones are thus (syntactic sugar equating to actual entries in the
zones and hosts files):

z_tst eth2:10.1.30.1-10.1.30.4 # Subset of DMZ .1 - .4
dmz eth2 # DMZ .1 - .15
loc eth1 # Local network
net eth0 # Everyone "out there"

and the policies are thus:

z_tst all CONTINUE # Use policy/rules for "dmz"
all z_tst CONTINUE # Use policy/rules for "dmz"

dmz all REJECT
all dmz REJECT

Here are some sample rules (for the purposes of this post):

ACCEPT all z_tst tcp 22

ACCEPT dmz loc tcp 53
ACCEPT dmz loc udp 53
ACCEPT all dmz icmp echo-request

In this situation, I thought that the CONTINUE policy for z_tst would
mean that the dmz rules would also be applied, so I wouldn't need to
repeat them for the z_tst subsection of the dmz network.

However, what I get is that the z_tst rule for tcp/22 works, but that
the icmp echo-request (ping) doesn't work. If I copy that last rule so
that it explicitly states z_tst instead of dmz, then ping also works:

ACCEPT all z_tst icmp echo-request

Have I really misunderstood CONTINUE, or is there something else not
quite right here?

Many thanks,
Chris
Reply With Quote
  #2 (permalink)  
Old 09-26-2005
Bit Twister
 
Posts: n/a
Default Re: Shorewall and CONTINUE policy

On Mon, 26 Sep 2005 17:02:22 +0100, chris-usenet@roaima.co.uk wrote:
> Shorewall on debian/sarge, versions 2.2.3 and 2.4.1.
>
> Have I really misunderstood CONTINUE, or is there something else not
> quite right here?


You might want to check
http://www.shorewall.net/Documentation_Index.html
Reply With Quote
  #3 (permalink)  
Old 09-26-2005
chris-usenet@roaima.co.uk
 
Posts: n/a
Default Re: Shorewall and CONTINUE policy

>> Have I really misunderstood CONTINUE, or is there something else not
>> quite right here?


Bit Twister <BitTwister@mouse-potato.com> wrote:
> You might want to check
> http://www.shorewall.net/Documentation_Index.html


It's where I started, long before I posted. Oh, and for the record, yes
I've also googled.

Chris
Reply With Quote
  #4 (permalink)  
Old 09-26-2005
Bit Twister
 
Posts: n/a
Default Re: Shorewall and CONTINUE policy

On Mon, 26 Sep 2005 21:41:10 +0100, chris-usenet@roaima.co.uk wrote:
>>> Have I really misunderstood CONTINUE, or is there something else not
>>> quite right here?

>
> Bit Twister <BitTwister@mouse-potato.com> wrote:
>> You might want to check
>> http://www.shorewall.net/Documentation_Index.html

>
> It's where I started, long before I posted.


Well http://www.shorewall.net/Documentation.htm#Policy has

CONTINUE

The connection is neither ACCEPTed, DROPped nor REJECTed.

and http://www.shorewall.net/Documentation.htm#Rules has

CONTINUE rules may cause the connection request to be
reprocessed using a different (source zone, destination zone)
pair.

Reply With Quote
  #5 (permalink)  
Old 09-27-2005
chris-usenet@roaima.co.uk
 
Posts: n/a
Default Re: Shorewall and CONTINUE policy

Bit Twister <BitTwister@mouse-potato.com> wrote:
> CONTINUE rules may cause the connection request to be
> reprocessed using a different (source zone, destination zone)
> pair.


Yes, and assuming I understand what the author intends by those two
statements, I figure there may be a fault with the implementation of
CONTINUE. However, I don't like starting with the premise that there's
a fault, which is why I posted my question and example snippets of
configuration files.

Chris
Reply With Quote
  #6 (permalink)  
Old 10-03-2005
chris-usenet@roaima.co.uk
 
Posts: n/a
Default Re: Shorewall and CONTINUE policy

chris-usenet@roaima.co.uk wrote:
> [regarding Shorewall and CONTINUE not working for me] I don't like
> starting with the premise that there's a fault, which is why I posted
> my question and example snippets of configuration files.


For closure, I can report that the problem was staring me in the face.
The documentation is correct, and it was an omission in my hosts file.

> My zones are thus (syntactic sugar equating to actual entries in the
> zones and hosts files):
> z_tst eth2:10.1.30.1-10.1.30.4 # Subset of DMZ .1 - .4
> dmz eth2 # DMZ .1 - .15
> loc eth1 # Local network
> net eth0 # Everyone "out there"


Unfortunately these zone definitions were what I'd intended, not what
I'd actually achieved, as I'd omitted the definition for net in this
hosts file segment:

#ZONE HOST(S) OPTIONS
#
loc eth0:10.0.0.0/12
net eth0:0.0.0.0/0

Chris
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:01 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0