LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

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

Rep: Reputation: 30
iptables + IP + MAC filter


Hello,
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 ?

Thanks

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

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

Code:
/sbin/modprobe ipt_mac

iptables -P FORWARD DROP

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

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


Reply


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 12:27 PM.

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