From: Iwan Fauzie Subject: Re[2]: MAC/IP PAIR MATCH Date: Sat, 28 Jan 2006 16:12:51 +0700 Message-ID: <10310383401.20060128161251@gorontalo.net> References: <164362107.20060127145214@gorontalo.net> <43DA2B8C.5050007@prosyst.com> Reply-To: Iwan Fauzie Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <43DA2B8C.5050007@prosyst.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org Hello Boryan, Thanks for you help Boryan. Please see http://www.netservers.co.uk/gpl/ this patch IPtables MAC/IP pair match This patch to help prevent users from: - users have not changed their IP address to conflict with or spoof others users - Users have not changed their MAC address (e.g. new network cards MAC spoofing or NAT) Friday, January 27, 2006, 9:17:48 PM, you wrote: > Iwan Fauzie wrote: >> Hello, >> >> I would like to patch mac/ip pair match, how to do that? any body help me >> > If you want to match IP against MAC address, then check the iptables's > _mac_ match: > # iptables -m mac -help > Example: rule for forwarding packets matching certain IP/MAC pair is: > # iptables -A FORWARD -s -m -mac --mac-source > -j ACCEPT > ... but if you want to "patch a match", then you need to specify a bit > more detailed what are you trying to do. > The _mac_ match exist into the default iptables source (./extensions) > e.g. you don't need to patch anything. Just install iptables and enable > the match inside your kernel's .config file (CONFIG_IP_NF_MATCH_MAC=y) > and finally recompile (and install) the new kernel. -- Best regards, Iwan mailto:iwan@gorontalo.net