Networking Forums

Networking Forums > Computer Networking > Linux Networking > Shorewall and CONTINUE policy

Reply
Thread Tools Display Modes

Shorewall and CONTINUE policy

 
 
chris-usenet@roaima.co.uk
Guest
Posts: n/a

 
      09-26-2005, 04:02 PM
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
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      09-26-2005, 07:17 PM
On Mon, 26 Sep 2005 17:02:22 +0100, chris-(E-Mail Removed) 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
 
chris-usenet@roaima.co.uk
Guest
Posts: n/a

 
      09-26-2005, 08:41 PM
>> Have I really misunderstood CONTINUE, or is there something else not
>> quite right here?


Bit Twister <(E-Mail Removed)> 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
 
Bit Twister
Guest
Posts: n/a

 
      09-26-2005, 09:18 PM
On Mon, 26 Sep 2005 21:41:10 +0100, chris-(E-Mail Removed) wrote:
>>> Have I really misunderstood CONTINUE, or is there something else not
>>> quite right here?

>
> Bit Twister <(E-Mail Removed)> 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
 
chris-usenet@roaima.co.uk
Guest
Posts: n/a

 
      09-27-2005, 08:00 AM
Bit Twister <(E-Mail Removed)> 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
 
chris-usenet@roaima.co.uk
Guest
Posts: n/a

 
      10-03-2005, 01:18 PM
chris-(E-Mail Removed) 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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
20 Things you can do to continue your free wireless Kulin Wireless Internet 0 03-08-2012 10:28 PM
Continue of my wireless upgrade Phizinza Wireless Internet 4 02-09-2008 12:20 PM
How to continue an aborted d/l-ed BIG file ? problems@gmail Linux Networking 1 11-23-2007 02:50 PM
Cant locate wireless network policy in group policy Tom Windows Networking 0 05-11-2005 01:28 PM
MN-700 Disconnects continue after Firmware upgrade JR Wireless Networks 0 08-24-2004 03:09 PM



1 2 3 4 5 6 7 8 9 10 11