All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Possible bug with multiport?
@ 2006-03-15 11:47 Kirk Reiser
  2006-03-15 17:12   ` Patrick McHardy
  2006-03-15 17:32 ` [LARTC] " William L. Thomson Jr.
  0 siblings, 2 replies; 10+ messages in thread
From: Kirk Reiser @ 2006-03-15 11:47 UTC (permalink / raw)
  To: lartc

Hi Folks:  I am either using the multiport of the -m or --match option
of iptables in correctly or there is a bug with it.  Is anyone else
using it with no problem?  This is the way I am trying to use it:

my_ports!,25,80 
iptables -t nat -A PREROUTING -i $wan_addr -p tcp -m multiport
--dports $my_ports -j DNAT --to $my_internal_address

I have used this in the past successfully but that was a few years
ago.  I get no errors or warnings it just ignors the ports.  The
multiport invokation shows up in an iptables -t nat -L -v however.
The packet and byte counts never get incremented either from zero.

Any pointers would sure be helpful, having to include a line for every
port check seems wasteful.

  Kirk

-- 

Kirk Reiser				The Computer Braille Facility
e-mail: kirk@braille.uwo.ca		University of Western Ontario
phone: (519) 661-3061
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [LARTC] Possible bug with multiport?
  2006-03-15 11:47 [LARTC] Possible bug with multiport? Kirk Reiser
@ 2006-03-15 17:12   ` Patrick McHardy
  2006-03-15 17:32 ` [LARTC] " William L. Thomson Jr.
  1 sibling, 0 replies; 10+ messages in thread
From: Patrick McHardy @ 2006-03-15 17:12 UTC (permalink / raw)
  To: Kirk Reiser; +Cc: lartc, Netfilter Development Mailinglist

CCed netfilter-devel.

Kirk Reiser wrote:
> Hi Folks:  I am either using the multiport of the -m or --match option
> of iptables in correctly or there is a bug with it.  Is anyone else
> using it with no problem?  This is the way I am trying to use it:
> 
> my_ports!,25,80 
> iptables -t nat -A PREROUTING -i $wan_addr -p tcp -m multiport
> --dports $my_ports -j DNAT --to $my_internal_address
> 
> I have used this in the past successfully but that was a few years
> ago.  I get no errors or warnings it just ignors the ports.  The
> multiport invokation shows up in an iptables -t nat -L -v however.
> The packet and byte counts never get incremented either from zero.
> 
> Any pointers would sure be helpful, having to include a line for every
> port check seems wasteful.

Please post your kernel version, your iptables version and the
output of iptables -vxnL.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Possible bug with multiport?
@ 2006-03-15 17:12   ` Patrick McHardy
  0 siblings, 0 replies; 10+ messages in thread
From: Patrick McHardy @ 2006-03-15 17:12 UTC (permalink / raw)
  To: Kirk Reiser; +Cc: lartc, Netfilter Development Mailinglist

CCed netfilter-devel.

Kirk Reiser wrote:
> Hi Folks:  I am either using the multiport of the -m or --match option
> of iptables in correctly or there is a bug with it.  Is anyone else
> using it with no problem?  This is the way I am trying to use it:
> 
> my_ports=21,25,80 
> iptables -t nat -A PREROUTING -i $wan_addr -p tcp -m multiport
> --dports $my_ports -j DNAT --to $my_internal_address
> 
> I have used this in the past successfully but that was a few years
> ago.  I get no errors or warnings it just ignors the ports.  The
> multiport invokation shows up in an iptables -t nat -L -v however.
> The packet and byte counts never get incremented either from zero.
> 
> Any pointers would sure be helpful, having to include a line for every
> port check seems wasteful.

Please post your kernel version, your iptables version and the
output of iptables -vxnL.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [LARTC] Possible bug with multiport?
  2006-03-15 11:47 [LARTC] Possible bug with multiport? Kirk Reiser
  2006-03-15 17:12   ` Patrick McHardy
@ 2006-03-15 17:32 ` William L. Thomson Jr.
  1 sibling, 0 replies; 10+ messages in thread
From: William L. Thomson Jr. @ 2006-03-15 17:32 UTC (permalink / raw)
  To: lartc

On Wed, 2006-03-15 at 06:47 -0500, Kirk Reiser wrote:
> Hi Folks:  I am either using the multiport of the -m or --match option
> of iptables in correctly or there is a bug with it.  Is anyone else
> using it with no problem? 

I am using it and no functional problems. :)

> I have used this in the past successfully but that was a few years
> ago.  I get no errors or warnings it just ignors the ports.  The
> multiport invokation shows up in an iptables -t nat -L -v however.
> The packet and byte counts never get incremented either from zero.

Well that's another story. In my case most of my byte counters never get
incremented either. However the rules are working, since packets are
comping and going. No way for them to otherwise.

I believe there is a bug on the counters portion. But it's not across
the board because some of my multi port counters get incremented. And
some do not.

Linux version 2.6.14-hardened-r5 (root@lrt) (gcc version 3.4.5 (Gentoo
Hardened 3.4.5, ssp-3.4.5-1.0, pie-8.7.9))

iptables v1.3.4

-- 
Sincerely,
William L. Thomson Jr.
Obsidian-Studios, Inc.
http://www.obsidian-studios.com

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [LARTC] Possible bug with multiport?
  2006-03-15 17:12   ` Patrick McHardy
@ 2006-03-15 19:03     ` Kirk Reiser
  -1 siblings, 0 replies; 10+ messages in thread
From: Kirk Reiser @ 2006-03-15 19:03 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: lartc, Netfilter Development Mailinglist

Patrick McHardy <kaber@trash.net> writes:

> Please post your kernel version, your iptables version and the
> output of iptables -vxnL.

Woops!  The kernel is linux 2.6.15.6 and the iptables is 1.3.3.  I
will have to reconstruct the script using multiport so that will take
some time to get the iptables -vxnL.

  Kirk

-- 
Kirk Reiser				The Computer Braille Facility
e-mail: kirk@braille.uwo.ca		University of Western Ontario
phone: (519) 661-3061
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Possible bug with multiport?
@ 2006-03-15 19:03     ` Kirk Reiser
  0 siblings, 0 replies; 10+ messages in thread
From: Kirk Reiser @ 2006-03-15 19:03 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: lartc, Netfilter Development Mailinglist

Patrick McHardy <kaber@trash.net> writes:

> Please post your kernel version, your iptables version and the
> output of iptables -vxnL.

Woops!  The kernel is linux 2.6.15.6 and the iptables is 1.3.3.  I
will have to reconstruct the script using multiport so that will take
some time to get the iptables -vxnL.

  Kirk

-- 
Kirk Reiser				The Computer Braille Facility
e-mail: kirk@braille.uwo.ca		University of Western Ontario
phone: (519) 661-3061

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [LARTC] Possible bug with multiport?
  2006-03-15 19:03     ` Kirk Reiser
@ 2006-03-15 23:41       ` Patrick McHardy
  -1 siblings, 0 replies; 10+ messages in thread
From: Patrick McHardy @ 2006-03-15 23:41 UTC (permalink / raw)
  To: Kirk Reiser; +Cc: lartc, Netfilter Development Mailinglist

Kirk Reiser wrote:
> Patrick McHardy <kaber@trash.net> writes:
> 
> 
>>Please post your kernel version, your iptables version and the
>>output of iptables -vxnL.
> 
> 
> Woops!  The kernel is linux 2.6.15.6 and the iptables is 1.3.3.  I
> will have to reconstruct the script using multiport so that will take
> some time to get the iptables -vxnL.

IIRC we had a bug in iptables with revision matching (which affects
multiport), could you try the latest version?
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Possible bug with multiport?
@ 2006-03-15 23:41       ` Patrick McHardy
  0 siblings, 0 replies; 10+ messages in thread
From: Patrick McHardy @ 2006-03-15 23:41 UTC (permalink / raw)
  To: Kirk Reiser; +Cc: lartc, Netfilter Development Mailinglist

Kirk Reiser wrote:
> Patrick McHardy <kaber@trash.net> writes:
> 
> 
>>Please post your kernel version, your iptables version and the
>>output of iptables -vxnL.
> 
> 
> Woops!  The kernel is linux 2.6.15.6 and the iptables is 1.3.3.  I
> will have to reconstruct the script using multiport so that will take
> some time to get the iptables -vxnL.

IIRC we had a bug in iptables with revision matching (which affects
multiport), could you try the latest version?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [LARTC] Possible bug with multiport?
  2006-03-15 23:41       ` Patrick McHardy
@ 2006-03-16 12:24         ` Kirk Reiser
  -1 siblings, 0 replies; 10+ messages in thread
From: Kirk Reiser @ 2006-03-16 12:24 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: lartc, Netfilter Development Mailinglist

Patrick McHardy <kaber@trash.net> writes:

> IIRC we had a bug in iptables with revision matching (which affects
> multiport), could you try the latest version?

If you want to give me a pointer to it or to cvs I'd be happy to.

To my previous problem it appears that I was mistaken.  I was trying
to use nc with port 25 when testing and forgot that our ITS department
had port 25 blocked up stream so it wasn't iptables fault at all.
Took me some tcpdump monitoring to realize the packets were never even
getting to the box running the iptables script.  Subsequent test with
multiport statements appear to be running okay so far.

  Kirk

-- 

Kirk Reiser				The Computer Braille Facility
e-mail: kirk@braille.uwo.ca		University of Western Ontario
phone: (519) 661-3061
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Possible bug with multiport?
@ 2006-03-16 12:24         ` Kirk Reiser
  0 siblings, 0 replies; 10+ messages in thread
From: Kirk Reiser @ 2006-03-16 12:24 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: lartc, Netfilter Development Mailinglist

Patrick McHardy <kaber@trash.net> writes:

> IIRC we had a bug in iptables with revision matching (which affects
> multiport), could you try the latest version?

If you want to give me a pointer to it or to cvs I'd be happy to.

To my previous problem it appears that I was mistaken.  I was trying
to use nc with port 25 when testing and forgot that our ITS department
had port 25 blocked up stream so it wasn't iptables fault at all.
Took me some tcpdump monitoring to realize the packets were never even
getting to the box running the iptables script.  Subsequent test with
multiport statements appear to be running okay so far.

  Kirk

-- 

Kirk Reiser				The Computer Braille Facility
e-mail: kirk@braille.uwo.ca		University of Western Ontario
phone: (519) 661-3061

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-03-16 12:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-15 11:47 [LARTC] Possible bug with multiport? Kirk Reiser
2006-03-15 17:12 ` Patrick McHardy
2006-03-15 17:12   ` Patrick McHardy
2006-03-15 19:03   ` [LARTC] " Kirk Reiser
2006-03-15 19:03     ` Kirk Reiser
2006-03-15 23:41     ` [LARTC] " Patrick McHardy
2006-03-15 23:41       ` Patrick McHardy
2006-03-16 12:24       ` [LARTC] " Kirk Reiser
2006-03-16 12:24         ` Kirk Reiser
2006-03-15 17:32 ` [LARTC] " William L. Thomson Jr.

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.