IP and MAC Address check

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

 



Hi All,

I have list of Mac addresses and also have range of IP addresses.. how to set iptables with conditions below:

Range of IP addresses: 172.16.2.241 to 172.16.2.250

List of MAC Addresses: (stored in a file named maclist)
01:02:03:04:05:0a
01:02:03:04:05:0b
01:02:03:04:05:0c
01:02:03:04:05:0d
01:02:03:04:05:0e
01:02:03:04:05:0f
01:02:03:04:05:1a
01:02:03:04:05:2a
01:02:03:04:05:3a
01:02:03:04:05:4a

When Incoming package from the ranged IP address (172.16.2.241 to 172.16.2.250)  then the mac address must be checked from the list of MAC Address, if the MAC Address matched then it allowed otherwise it will be rejected or dropped..


please advise

thanks a lot in advance

Regards
Winanjaya


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux