E
E
Egor Volkov2017-07-31 20:28:01
MySQL
Egor Volkov, 2017-07-31 20:28:01

How to give access to the server by MAC address?

Task: There is a server on linux. How can I configure it so that only certain MAC addresses can connect to it, and the rest are immediately forwarded.
If you can somehow organize access from a specific list of devices - write, I will be glad.
PS I know that the MAC address can be changed, I don't need to talk about it.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
L
Lazy @BojackHorseman MySQL, 2019-03-04
@24LID

#1227 - Access denied. You need SUPER privileges for this operation

delegate privileges to the SUPER user to the user who has the right to do so

X
xmoonlight, 2017-07-31
@angel367

Through iptables:

iptables -t nat -A PREROUTING -m mac --mac-source xx-xx-xx-xx-xx-xx -j ACCEPT (Host A)
iptables -t nat -A PREROUTING -m mac --mac-source xx-xx-xx-xx-xx-xx -j ACCEPT (Host B)
iptables -t nat -A PREROUTING -p tcp --dport 80  -j DNAT --to 127.0.0.1:8080

Via PHP:
https://stackoverflow.com/questions/1420381/how-ca...
If you can somehow organize access from a specific list of devices
Keys, VPN or VLAN (on the switch)

D
Dimonchik, 2017-07-31
@dimonchik2013

the easiest way - on a switch

D
d-stream, 2017-07-31
@d-stream

I know that the MAC address can be changed, I don’t need to talk about it.
but about the level of the model, where does mac appear?
and yes, 802.1X

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question