看板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