Allowing one specific mac address access the modem?

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
ddwrtuser02
DD-WRT Novice


Joined: 09 Jul 2017
Posts: 7

PostPosted: Sun Jul 16, 2017 0:32    Post subject: Allowing one specific mac address access the modem? Reply with quote
Is it possible to allow only one mac address access the modem while blocking everyone else?

Ive tried these:

Code:
iptables -A FORWARD 1 -d 192.168.100.1 -m mac --mac-source 11:AA:BB:CC:22:33 -j ACCEPT
iptables -A FORWARD 2 -d 192.168.100.1 -j ACCEPT
iptables -A FORWARD 3 -d 192.168.100.1 -j DROP


Code:

iptables -A FORWARD 1 -d 192.168.100.1 -j DROP
iptables -A FORWARD 2 -d 192.168.100.1 -m mac --mac-source 11:AA:BB:CC:22:33 -j ACCEPT
iptables -A FORWARD 3 -d 192.168.100.1 -j ACCEPT


Code:
iptables -I INPUT -d 192.168.100.1 -m mac ! --mac-source 11:AA:BB:CC:22:33 -j REJECT --reject-with tcp-reset


But these didnt work.
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum