sing-box icon indicating copy to clipboard operation
sing-box copied to clipboard

Suggestion for supporting MAC address filter in the route rules

Open PiggyRan opened this issue 1 year ago • 6 comments

As title, sing-box is perfect for me except MAC address filter in the route rules.

I have to add many iptables rules for implement MAC address filter now, it's a simple functionality, but really important to make sing-box perfect!

PiggyRan avatar Dec 20 '23 10:12 PiggyRan

What is the status of this issue? Is it under development?

I can provide an implementation idea on Linux system: We can monitor the file /proc/net/arp, read the file into memory when it changes, and then use the hash table to search when the rules need to be matched.

Of course, the common method for Windows/MacOS/Linux is to execute the arp -an command regularly (for example, once every second), remember the results, and then use the hash table to search when the rules need to be matched.

I think this is a pretty easy job for our developers, and thank you very much for your efforts!

PiggyRan avatar Dec 27 '23 03:12 PiggyRan

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Feb 26 '24 01:02 github-actions[bot]

Any update for this suggestion?

PiggyRan avatar Feb 26 '24 01:02 PiggyRan

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Apr 27 '24 01:04 github-actions[bot]

Any update for this suggestion?

PiggyRan avatar Apr 27 '24 03:04 PiggyRan

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Jun 27 '24 01:06 github-actions[bot]