We help IT Professionals succeed at work.

MAC Address

Medium Priority
703 Views
Last Modified: 2013-11-16
Hello,
I want to get SSH login Users MAC address , But please note the server not on LAN network it's WAN and I want to block MAC address Via Iptables Can any one help me to do That
Comment
Watch Question

Top Expert 2009
Commented:
what about this

iptables -A INPUT -p tcp -m mac --mac-source 00:0BB:45:56:42 -j DROP


ref :http://www.linuxquestions.org/questions/linux-networking-3/by-using-iptables-block-mac-address-to-restric-user-to-access-internet-489144/

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT

Commented:
Mac address is just  working on LAN. You never use MAC address filter trough Layer 3 network after first hop.
Maciej Ssysadmin
CERTIFIED EXPERT

Commented:
If you are not on the same network (same LAN), then answer is: you can't.
Maciej Ssysadmin
CERTIFIED EXPERT

Commented:
Sorry equalizer, I didn't see your answer before posting.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.