Subject: Re: ipfilter and SIP
To: Stephen Borrill <netbsd@precedence.co.uk>
From: Darren Reed <darrenr@netbsd.org>
List: tech-net
Date: 08/22/2007 02:54:14
Darren Reed wrote:
> ...
> But it's obvious that ipnat.conf needs to be taught "portlow:porthigh".

I believe this is a one line fix but I need to test it some more...

Darren

Index: tools/ipnat_y.y
===================================================================
RCS file: /devel/CVS/IP-Filter/tools/ipnat_y.y,v
retrieving revision 1.30.2.26
diff -c -r1.30.2.26 ipnat_y.y
*** tools/ipnat_y.y     10 Dec 2006 16:03:02 -0000      1.30.2.26
--- tools/ipnat_y.y     22 Aug 2007 09:48:55 -0000
***************
*** 609,614 ****
--- 609,615 ----
  range:
        YY_RANGE_OUT                    { $$ = FR_OUTRANGE; }
        | YY_RANGE_IN                   { $$ = FR_INRANGE; }
+       | ':'                           { $$ = FR_INCRANGE; }
        ;
 
  ipv4: YY_NUMBER '.' YY_NUMBER '.' YY_NUMBER '.' YY_NUMBER