Ipv6 Filtering strange problem

This is a discussion on Ipv6 Filtering strange problem within the IPFilter forums, part of the System Security and Security Related category; This is a multi-part message in MIME format. ------_=_NextPart_001_01C62E67.98D3AEA8 Content-Type: text/plain; charset="us-ascii&...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-10-2006
PradeepReddy, Maram
 
Posts: n/a
Default Ipv6 Filtering strange problem

This is a multi-part message in MIME format.

------_=_NextPart_001_01C62E67.98D3AEA8
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello=20

I would like to thank Mr Laxman Amruth for help and
analysing IPv6 filtering along with me.

Little bit progress in configuring IPFilter for IPv6 Filtering. I was
able to view IPv6 stats in "ipfstat" ouput .

We have to insert "pfil" module on Network Interface with "inet6" option
also.

Something like #ifconfig ce3 inet6 modinsert pfil@1[ immedietly
after "ip" stream]

As soon as pfil module inserted the complete packtes passing through
that Network Interface getting blocked.

We suspect problem with IPv6 packet matching ..

"ipfstat" output showing like below ..

root@sf44ce22> ipfstat=20
bad packets: in 0 out 0
IPv6 packets: in 13829 out 6769
input packets: blocked 0 passed 13829 nomatch 1 counted 0 short
0
output packets: blocked 0 passed 6769 nomatch 0 counted 0 short
0
input packets logged: blocked 0 passed 0
output packets logged: blocked 0 passed 0
packets logged: input 0 output 0
log failures: input 0 output 0
fragment state(in): kept 0 lost 0 not fragmented 0
fragment state(out): kept 0 lost 0 not fragmented 0
packet state(in): kept 0 lost 0
packet state(out): kept 0 lost 0
ICMP replies: 0 TCP RSTs sent: 0
Invalid source(in): 0
Result cache hits(in): 5 (out): 0
IN Pullups succeeded: 0 failed: 13823
OUT Pullups succeeded: 0 failed: 6769
Fastroute successes: 0 failures: 0
TCP cksum fails(in): 0 (out): 0
IPF Ticks: 7377
Packet log flags set: (0)
none
------------------------------------------------------------------------
----------------------------------------
root@sf44ce22> ipfstat -6hio
empty list for ipfilter(out)
0 block in log on ce3 proto tcp from any to 2106:22:188:252:0:66:1:4/64
port =3D ssh
------------------------------------------------------------------------
-------------------------------------------

root@sf44ce22> ndd /dev/pfil pfil_inet6
in
function flags
7847a0e8 3
out
function flags
7847a0e8 3

root@sf44ce22> ndd /dev/pfil qif_status
ifname ill q OTHERQ ipmp num sap hl nr nw bad copy copyfail drop notip
nodata notdata
ce3 0x3000393f940 0x300296aa298 0x300296aa388 0x0 14 86dd 14 14865 7328
0 0 0 0 0 0 0
QIF2 0x0 0x3002965eb48 0x3002965ec38 0x0 2 8035 0 0 0 0 0 0 0 0 0 0
QIF1 0x0 0x30008cea820 0x30008cea910 0x0 1 806 0 2 13 0 0 0 0 0 0 0
root@sf44ce22>=20

Best Regards
Pradeep Reddy=20


------_=_NextPart_001_01C62E67.98D3AEA8
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7638.1">
<TITLE>Ipv6 Filtering strange problem </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hello </FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; I would like to thank Mr&nbsp; Laxman Amruth for help =
and&nbsp; analysing IPv6 filtering along with me.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Little bit progress in configuring =
IPFilter for IPv6 Filtering.&nbsp; I was able to view IPv6 stats in =
&quot;ipfstat&quot; ouput .</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">We have to insert &quot;pfil&quot; =
module on Network Interface with &quot;inet6&quot; option also.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Something =
like&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #ifconfig ce3 inet6 modinsert pfil@1[ =
immedietly after &quot;ip&quot; stream]</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">As soon as pfil module inserted the =
complete packtes passing through that Network Interface getting =
blocked.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">We suspect problem with IPv6 packet =
matching ..</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&quot;ipfstat&quot; output showing like =
below ..</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">root@sf44ce22&gt; ipfstat </FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">bad =
packets:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp=
; in 0&nbsp;&nbsp;&nbsp; out 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;IPv6 =
packets:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; in 13829 =
out 6769</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;input =
packets:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; blocked 0 =
passed 13829 nomatch 1 counted 0 short 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">output =
packets:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; blocked 0 =
passed 6769 nomatch 0 counted 0 short 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;input packets logged:&nbsp; =
blocked 0 passed 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">output packets logged:&nbsp; blocked 0 =
passed 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;packets =
logged:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; input 0 output =
0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;log =
failures:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp; input 0 =
output 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">fragment =
state(in):&nbsp;&nbsp;&nbsp;&nbsp; kept 0&nbsp; lost 0&nbsp; not =
fragmented 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">fragment state(out):&nbsp;&nbsp;&nbsp; =
kept 0&nbsp; lost 0&nbsp; not fragmented 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">packet =
state(in):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kept 0&nbsp; lost =
0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">packet =
state(out):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kept 0&nbsp; lost 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">ICMP replies:&nbsp;&nbsp; =
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TCP RSTs sent:&nbsp; 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Invalid =
source(in):&nbsp;&nbsp;&nbsp;&nbsp; 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Result cache hits(in):&nbsp; =
5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (out):&nbsp; 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">IN Pullups succeeded:&nbsp;&nbsp; =
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; failed: 13823</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">OUT Pullups succeeded:&nbsp; =
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; failed: 6769</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Fastroute successes:&nbsp;&nbsp;&nbsp; =
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
failures:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">TCP cksum fails(in):&nbsp;&nbsp;&nbsp; =
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (out):&nbsp; 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">IPF =
Ticks:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7377</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Packet log flags set: (0)</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp; none</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">----------------------------------------------------------=
------------------------------------------------------</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">root@sf44ce22&gt; ipfstat -6hio</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">empty list for ipfilter(out)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">0 block in log on ce3 proto tcp from =
any to 2106:22:188:252:0:66:1:4/64 port =3D ssh</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">----------------------------------------------------------=
---------------------------------------------------------</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">root@sf44ce22&gt;&nbsp; ndd /dev/pfil =
pfil_inet6</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">in</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">function&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; =
flags</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">7847a0e8&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; =
3</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">out</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">function&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; =
flags</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">7847a0e8&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; =
3</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">root@sf44ce22&gt;&nbsp; ndd /dev/pfil =
qif_status</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">ifname ill q OTHERQ ipmp num sap hl nr =
nw bad copy copyfail drop notip nodata notdata</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">ce3 0x3000393f940 0x300296aa298 =
0x300296aa388 0x0 14 86dd 14 14865 7328 0 0 0 0 0 0 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">QIF2 0x0 0x3002965eb48 0x3002965ec38 =
0x0 2 8035 0 0 0 0 0 0 0 0 0 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">QIF1 0x0 0x30008cea820 0x30008cea910 =
0x0 1 806 0 2 13 0 0 0 0 0 0 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">root@sf44ce22&gt; </FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Best Regards</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Pradeep Reddy </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C62E67.98D3AEA8--
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 04:27 AM.


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