Re: Problems with ipnat on NetBSD 2.0.2

This is a discussion on Re: Problems with ipnat on NetBSD 2.0.2 within the IPFilter forums, part of the System Security and Security Related category; The below patch addresses your problem. Darren Index: ip_nat.c ================================================== ================= RCS file: /devel/CVS/IP-Filter/ip_nat.c,v retrieving ...


Go Back   Usenet Forums > System Security and Security Related > IPFilter

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-20-2005
Darren Reed
 
Posts: n/a
Default Re: Problems with ipnat on NetBSD 2.0.2


The below patch addresses your problem.

Darren

Index: ip_nat.c
================================================== =================
RCS file: /devel/CVS/IP-Filter/ip_nat.c,v
retrieving revision 2.195.2.14
diff -c -r2.195.2.14 ip_nat.c
*** ip_nat.c 29 Jun 2004 14:22:01 -0000 2.195.2.14
--- ip_nat.c 20 Jul 2005 06:07:13 -0000
***************
*** 3498,3504 ****
nat_t *nat;
int rval;

! if (nat_stats.ns_rules == 0 || fr_nat_lock != 0)
return 0;

fr = fin->fin_fr;
--- 3498,3504 ----
nat_t *nat;
int rval;

! if (nat_stats.ns_rules == 0 || fr_nat_lock != 0 || fin->fin_v != 4)
return 0;

fr = fin->fin_fr;
***************
*** 3776,3782 ****
u_32_t iph;
int rval;

! if (nat_stats.ns_rules == 0 || fr_nat_lock != 0)
return 0;

tcp = NULL;
--- 3776,3782 ----
u_32_t iph;
int rval;

! if (nat_stats.ns_rules == 0 || fr_nat_lock != 0 || fin->fin_v != 4)
return 0;

tcp = NULL;
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 10:56 AM.


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