Block wan Interface via iptables

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
Oxbow
DD-WRT Novice


Joined: 20 Jun 2017
Posts: 12

PostPosted: Sun Jun 25, 2017 16:35    Post subject: Block wan Interface via iptables Reply with quote
Hello
I am looking for a iptables rule, which blocked the complete access to the Wan interface via the MAC address. So that my tv in the Lan is attainable but no connection to the Wan (Internet) has. Can someone tell me how the rule would look?
I have already tried the following, but unfortunately without success.
Thanks
Oxbow

Iptables -I FORWARD -i br0 -m mac -mac-source 00: 00: 00: 00: 00: 00 -j DROP

Iptables -A PREROUTING -i br0 -m mac -mac-source 00: 00: 00: 00: 00: 00 -j DROP
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Sun Jun 25, 2017 18:07    Post subject: Reply with quote
Use the IP Address

iptables -I FORWARD -i br0 -s 192.168.1.10 -o `get_wanface` -j DROP
Oxbow
DD-WRT Novice


Joined: 20 Jun 2017
Posts: 12

PostPosted: Tue Jul 11, 2017 14:07    Post subject: Reply with quote
Hi Per Yngve Berg

Yes this works fine Razz

Thanks
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions 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 can attach files in this forum
You can download files in this forum