Can I add MAC address in firewall rules instead of IP address?

Asked by Prakash_RC on 2012-12-08

I have problem accessing a shared folder on my Ubuntu from my Android phone. I tried adding the IP address of my android device.. but when ever I reconnect my phone to the wifi it's choosing some random IP address so I can't access the shared folder.. since the firewall is enabled and blocking that connection. I have to turn off the firewall for that session to establish a connection. So I thought is it possible for me to add the MAC address in the firewall rules instead of IP address. Im using GUFW... could some one help me with this?..

Question information

Language:
English Edit question
Status:
Answered
For:
Gufw Edit question
Assignee:
No assignee Edit question
Last query:
2012-12-08
Last reply:
2012-12-08
costales (costales) said : #1

Hi! I'm sorry, but Gufw can't filter by MAC address.
I think could be a solution: Assign the same IP for a MAC address in the router. My router has a live connected device and I can assign one IP for once device.
Best regards.

Can you help with this problem?

Provide an answer of your own, or ask Prakash_RC for more information if necessary.

To post a message you must log in.