看板FreeBSD
标 题Re: How do packet filtering?
发信站中大资管龙猫资讯天地 (Sat Apr 10 04:43:50 2004)
转信站ptt!ctu-reader!ctu-peer!Spring!news.nctu!news.ntu!news.mcu!news.csie.m
==> [email protected] (依偎的感觉) 提到:
: ※ 引述《[email protected] (person)》之铭言:
: > 怎麽写 c program 将 rejects the packets?
: 1. set your nic to the promicious mode.
: 2. while receving the packet, drop them depend on your filter policy.
If i want immediately filter while receving the packet.
How I do it?@@
Does it use "divert socket" with ipfw in FreeBSD? I refer to "natd".
I known that it can use libipq with iptables in Linux.
: 3. done.
--
◎
龙猫资讯天地(
bbs.mgt.ncu.edu.tw)
◎[
nosrep]From: nw191.csie.ncu.edu.tw