LinuxQuestions.org
Help answer threads with 0 replies.
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, 05: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, 07:16 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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 07: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 11:15 AM
DHCP3 Mac Filter linx win Debian 2 07-28-2005 12:50 PM
mac filter at server lever collen Linux - Wireless Networking 3 06-13-2005 10:43 AM
Need to filter devices out from a firewall by MAC address bhenry Linux - Security 3 10-08-2004 12:29 AM
senao SL2511BG2 PLUS mac filter romolo67 Linux - Wireless Networking 0 09-23-2004 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:54 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration