ask a question about netfilter

mini guqitao@hotmail.com
Sat, 15 Dec 2001 23:56:25 -0800


This is a multi-part message in MIME format.

------=_NextPart_000_0033_01C185C4.1AF0D6C0
Content-Type: text/plain;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable

Hi guys, I have a computer which monitors the packets on the network and =
redirects these packet to another computer. I add a hook function at the =
first point NF_PRE_ROUTING. But I'm not sure whether I can capture the =
packets whose destination is not this computer. I have checked the =
function ip_rcv() which drop the packets whose pkt_type =3D=3D =
PACKET_OTHERHOST before the first hook point. I have enabled the =
promiscous mode.

Any suggestions are appreciated.



------=_NextPart_000_0033_01C185C4.1AF0D6C0
Content-Type: text/html;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi guys, I have a computer&nbsp;which =
monitors the=20
packets on the network and redirects these packet to another computer. I =
add a=20
hook function&nbsp;at the first point NF_PRE_ROUTING. But I'm not sure =
whether I=20
can capture the packets whose destination is not this computer. I have =
checked=20
the function ip_rcv() which drop the packets whose pkt_type =3D=3D =
PACKET_OTHERHOST=20
before the first hook point. I have enabled the promiscous =
mode.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any suggestions are =
appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0033_01C185C4.1AF0D6C0--