Find the answer to your Linux question:
Results 1 to 2 of 2
Hello. 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. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    7

    allow only a range of MAC address in iptables


    Hello.

    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

    Thanks,

    Jon

  2. #2
    Linux Newbie framp's Avatar
    Join Date
    Jul 2006
    Location
    Stuttgart, Germany
    Posts
    240
    Quote from man iptables
    Code:
       mac
           --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
  •