Re: Use firewall-cmd to filter by MAC address?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday, December 21, 2013 01:31:30 AM Michael Hannon wrote:
> Greetings. In a previous version of Fedora I had iptables rules of the
> form:
> 
> -A INPUT -p tcp --destination-port 25 -m mac --mac-source \
> AA:BB:CC:DD:EE:FF -j ACCEPT
> 
> in order to accept email only from selected local systems.
> 
> I've just installed Fedora 20, and I'm trying to implement the same kind of
> thing using:
> 
> firewall-cmd
> 
> but I've been unable to figure out how to do this. Any thoughts?
> 
> Thanks,
> 
> -- Mike

I believe the firewalld devs are working on this, but for now, you can 
manually enter something like the following in /etc/firewalld/direct.xml.  Of 
course, you'll need to unwrap the lines and choose the right chain for your 
system (it might not be IN_internal_allow).  I use something like this for my 
HDHomeRun tuners.

<?xml version="1.0" encoding="utf-8"?>
<direct>
  <passthrough ipv="ipv4">-t filter -A IN_internal_allow -m mac --mac-source \ 
AA:BB:CC:DD:EE:FF -j ACCEPT</passthrough>
  <passthrough ipv="ipv6">-t filter -A IN_internal_allow -m mac --mac-source \ 
AA:BB:CC:DD:EE:FF -j ACCEPT</passthrough>
</direct>

Merry Christmas!
-A

-- 
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E

Attachment: signature.asc
Description: This is a digitally signed message part.

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux