Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 04-30-2005, 04:27 AM   #1
Registered: Dec 2004
Posts: 188

Rep: Reputation: 30
iptables + IP + MAC filter

My server is on Mandrake 10.1
eth0 is WAN with static IP
eth1 is LAN

I am using iptables for firewalling.

I would like control access to the internet
using IP + MAC address filtering.

Can anybody help with syntax ?


Old 04-30-2005, 06:16 AM   #2
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
here's an example:

/sbin/modprobe ipt_mac

iptables -P FORWARD DROP

iptables -A FORWARD -i eth1 -o eth0 -s \
-m mac --mac-source XX:XX:XX:XX:XX:XX -j ACCEPT

Last edited by win32sux; 04-30-2005 at 06:17 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting around a MAC filter == problem? mulletman13 Linux - Networking 5 09-26-2005 10:15 AM
DHCP3 Mac Filter linx win Debian 2 07-28-2005 11:50 AM
mac filter at server lever collen Linux - Wireless Networking 3 06-13-2005 09:43 AM
Need to filter devices out from a firewall by MAC address bhenry Linux - Security 3 10-07-2004 11:29 PM
senao SL2511BG2 PLUS mac filter romolo67 Linux - Wireless Networking 0 09-23-2004 07:36 AM

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration