LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-25-2010, 07:29 AM   #1
JFNash
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Rep: Reputation: 1
Cool iptables 1.4.1 mac module doesn't work (error message), Fedora Core 8


I use iptables firewall (v1.4.1) installed on FC8. I'm trying to limit the inflow traffic for the port 1723 to certain MAC addresses. To experiment with the mac option, I've written the following iptables rule:

Quote:
iptables -A INPUT -m -mac --mac-source 10:08:08:08:08:10 -j ACCEPT
It didn't work. It gave me this error message:

Quote:
iptables v1.4.1: Couldn't load match `-mac':/usr/local/libexec/xtables/libipt_-mac.so: cannot open shared object file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
Does that mean the mac module wasn't installed/enabled?

How to go about that?

Thanks in advance!
 
Old 11-25-2010, 09:15 AM   #2
ruckus_laci
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Rep: Reputation: 0
There's plus one -mac in it.
Try this:

iptables -A INPUT --mac-source 10:08:08:08:08:10 -j ACCEPT
 
Old 11-25-2010, 09:25 AM   #3
JFNash
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ruckus_laci View Post
There's plus one -mac in it.
Try this:

iptables -A INPUT --mac-source 10:08:08:08:08:10 -j ACCEPT
Thanks for your input. I've tried your suggestion before to no avail.

I took the syntax of the command from iptables manual. Surprisingly I couldn't locate a single similar issue on the interweb. I read something about having to recompile the kernel to include any additional iptables options. But the post's accuracy couldn't be verified.
 
Old 11-26-2010, 02:24 AM   #4
ruckus_laci
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by JFNash View Post
Thanks for your input. I've tried your suggestion before to no avail.

I took the syntax of the command from iptables manual. Surprisingly I couldn't locate a single similar issue on the interweb. I read something about having to recompile the kernel to include any additional iptables options. But the post's accuracy couldn't be verified.
Yes, you're right. There are different syntaxes on every pages But a found a new one

iptables -A INPUT -m mac --mac-source 00:0F:EA:91:04:08 -j ACCEPT

http://www.cyberciti.biz/tips/iptabl...filtering.html
 
Old 11-26-2010, 10:51 AM   #5
JFNash
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Original Poster
Rep: Reputation: 1
You know, I think I've mistakenly (and stupidly) added an unnecessary dash before the mac switch. Though I'd be too embarrassed, I hope this is the problem.

I'll try that out tomorrow when I go to office. I'll report back.
 
  


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
[SOLVED] Output redirection doesn't work with iptables (Fedora Core 11) andrei.wap Linux - Newbie 8 03-17-2011 05:30 PM
Error Message During Bootup - Fedora Core 7 silentray Linux - Newbie 2 10-03-2007 06:28 PM
Fedora Core 5 - VMware partition error message deardoom Fedora - Installation 7 10-17-2006 05:13 AM
Fedora Core 4 Mplayer flashes error message and doesn't start up. gvigorus Linux - Software 5 02-04-2006 12:00 AM
Fedora Core Test 2; iptables; recent module; missing libipt_recent.so GMcFall Red Hat 3 10-20-2003 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:30 AM.

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