Re: How do packet filtering?
==> ladios.bbs@bbs.cse.ttu.edu.tw (依偎的感覺) 提到:
: ※ 引述《nosrep.bbs@bbs.mgt.ncu.edu.tw (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
討論串 (同標題文章)
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章