- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to Block MAC address
Operating System - Linux
1820136
Members
3325
Online
109619
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2007 04:59 PM
тАО09-14-2007 04:59 PM
How to Block MAC address
Dear
I am using RedHat 4 and squid for proxy. I need to block MAC address as we block IP address. Please inform me how to block mac in squid server.
Thanks with regards
shahid
I am using RedHat 4 and squid for proxy. I need to block MAC address as we block IP address. Please inform me how to block mac in squid server.
Thanks with regards
shahid
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2007 06:53 AM
тАО09-15-2007 06:53 AM
Re: How to Block MAC address
Squid must be compiled with mac address support (--enable-arp-acl). Check with squid -v.
If it's enabled, then you need to configure an acl like this:
acl aclname arp mac-address ... (xx:xx:xx:xx:xx:xx notation)
But I think that if you have dynamic IP configuration, then the preferred method is to use user based authentication.
If it's enabled, then you need to configure an acl like this:
acl aclname arp mac-address ... (xx:xx:xx:xx:xx:xx notation)
But I think that if you have dynamic IP configuration, then the preferred method is to use user based authentication.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2007 10:07 AM
тАО09-15-2007 10:07 AM
Re: How to Block MAC address
Documentation is a wonderful thing..
This is from the 2.6 documentation:
acl aclname arp mac-address ... (xx:xx:xx:xx:xx:xx notation)
( http://www.squid-cache.org/Versions/v2/2.6/cfgman/acl.html )
The 2.5 configuration file doesn't list it as a viable option (and 2.5.STABLE14 is what comes with RHEL4), so not sure if it will work. Give it a spin, see what happens.
If that doesn't work, fall back to using IPTables to filter based on MAC address:
iptables -A INPUT -j REJECT -m mac --mac-source -p tcp --dport 80
or some such..
This is from the 2.6 documentation:
acl aclname arp mac-address ... (xx:xx:xx:xx:xx:xx notation)
( http://www.squid-cache.org/Versions/v2/2.6/cfgman/acl.html )
The 2.5 configuration file doesn't list it as a viable option (and 2.5.STABLE14 is what comes with RHEL4), so not sure if it will work. Give it a spin, see what happens.
If that doesn't work, fall back to using IPTables to filter based on MAC address:
iptables -A INPUT -j REJECT -m mac --mac-source
or some such..
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2007 11:45 PM
тАО09-16-2007 11:45 PM
Re: How to Block MAC address
Shalom Mohammed,
Note that its easy to clone and forge mac addresses. Its very common and a feature in the setup of many internet sharing devices like wireless hubs.
If you are trying to block access to a particular site or system by mac address, they can stop the block merely by changing network configuration or actual NIC cards.
The situation is a little more simple if you are blocking an internal user.
SEP
Note that its easy to clone and forge mac addresses. Its very common and a feature in the setup of many internet sharing devices like wireless hubs.
If you are trying to block access to a particular site or system by mac address, they can stop the block merely by changing network configuration or actual NIC cards.
The situation is a little more simple if you are blocking an internal user.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP