- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- iptables -- plz help
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО01-21-2006 08:26 PM
тАО01-21-2006 08:26 PM
iptables -A INPUT -s 10.2.2.255 -p tcp --dport 80 -j ACCEPT
plz let me know the syntax when instead of "Source IP" i allow/deny on the basis of Sources' MAC address
Thanks n Regards
Maaz
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2006 08:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2006 09:00 PM
тАО01-21-2006 09:00 PM
Re: iptables -- plz help
iptables -A INPUT -m mac --mac-source 00:11:22:33:44:55 -j ACCEPT
If your Linux will not accept that, it is possible that your iptables command and/or kernel are either too old or don't have MAC address matching module configured.
Remember that MAC address filters work in your local network segment only: anything that's coming in through a router has the router's MAC address when it gets to you.
Another thing that limits the usability of MAC address filtering is that the MAC addresses are easy to change: in Linux, it is usually as simple as "ifconfig eth0 hw ether 00:11:22:33:44:55". Even Windows usually allows you to do that, but the option is hidden rather deep in the network card's "Properties..." dialogs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2006 09:01 PM
тАО01-21-2006 09:01 PM
Re: iptables -- plz help
As far as this goes, be careful on the denial side. Mac addresses are easy to clone and spoof.
If I may ask, what are you trying to accomplish? I've done a lot with iptables and can suggest a few things.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2006 09:34 PM
тАО01-21-2006 09:34 PM
Re: iptables -- plz help
You DHCP to given MAC's, then only allow those details through the firewall for given services.
At my friends church, this is exactally how we do it for the network.
Two networks over-lap there, so the restrictions only allow given area's given access based on the machine's MAC.
.. Then you add username details on top of that, and well, you've got a pretty secure network ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 01:35 AM
тАО01-22-2006 01:35 AM
Re: iptables -- plz help
Dear Alexander Chuzhoy thanks for such a prompt reply .. esp thanks goes to u.
Dear Matti Kurkela... u r a very nice person ;), Zillions of thanks for such a nice and detailed reply.
Thanks Dear SEP... u too a nice/kind person ;). I am going to use S-MAC to only restric access to my own lan resources.
And Stuart Browne thank u so much for sharing ur knowledge ;). Dear Stuart Browne u wrote:
".. Then you add username details on top of that, and well, you've got a pretty secure network .."
I m sorry .. i always admit that i m dumb... what i understand is that its also possible that we can also use username as a source for deny/allow in IPtables ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 06:59 AM
тАО01-22-2006 06:59 AM
Re: iptables -- plz help
You do that on the protocol level (with Apache's Allow/Deny in this case).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 04:07 PM
тАО01-22-2006 04:07 PM