Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i want to use arp as MAC filtering
i know that on microtic routers this works well and this is the most sipmle and most effective way to filter macs
i have a pretty wide LAN on my neighbourhood and i need MAC filtering to secure my network.
for now i tried
ifconfig eth0 -arp
*eth0 - internal i-face of router
i made a file containig IP's and MAC's of my custumers
arp -f /path/filename adds all this to arp table as static arps
everithing works well for about 10 minutes
after that i cant ping anyone
when i do :
ifconfig eth0 arp
ifconfig eth0 -arp
everything works again - but 10 minutes and network is down
You are specifying in a file, what the Layer 2-Layer 3 mapping is. This simply saves the arp daemon from having to query those machines.
It will still, however, accept new entries.
You need to compile MAC filtering support into your kernel, and do it using iptables.
What you are doing, will not secure a network.
Layer 2 filtering is - you are correct - great security - but not in this method.
You can't control your arp table that finitely, with such little effort......
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.