Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    allow only a range of MAC address in iptables


    Does anyone know how to configure in iptables to allow only a range of MAC address with specific ports?

    I want to allow only a few computers in firewall.

    I fond one article which can allow or block range of IP addresses and ports.
    Linux Iptables: How to specify a range of IP addresses or ports | nixCraft



  2. #2
    Linux Newbie framp's Avatar
    Join Date
    Jul 2006
    Stuttgart, Germany
    Quote from man iptables
           --mac-source [!] address
                  Match source MAC address.  It must be  of  the
                  form  XX:XX:XX:XX:XX:XX.   Note that this only
                  makes sense for packets coming from an  Ether‐
                  net  device  and entering the PREROUTING, FOR‐
                  WARD or INPUT chains.
    "Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." Linus Benedict Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts