Static Routing block google dns on one device

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


Joined: 01 Apr 2016
Posts: 12

PostPosted: Sat Nov 12, 2016 11:18    Post subject: Static Routing block google dns on one device Reply with quote
Hi Everyone,

I have blocked Google DNS (and more) using Advanced Routing->Static Routing to manage VPN and Netflix blocking on my Samsung tv (KS9500), but this action doing me issues with connecting to other applications/games on other devices (I get drop or no connection, if I disable the ip's block everything seems fine).

So I wonder if I can block this to a single device by Mac/Ip?

Routing Table (for blocked ip's):
Destination LAN NET Subnet Mask Gateway Flags Metric Interface
8.8.4.4 255.255.255.255 192.168.1.1 UGH 2 LAN & WLAN
8.8.8.8 255.255.255.255 192.168.1.1 UGH 2 LAN & WLAN
23.246.0.0 255.255.192.0 192.168.1.1 UG 2 LAN & WLAN
37.77.184.0 255.255.248.0 192.168.1.1 UG 2 LAN & WLAN
45.57.0.0 255.255.128.0 192.168.1.1 UG 2 LAN & WLAN
108.175.32.0 255.255.240.0 192.168.1.1 UG 2 LAN & WLAN
185.2.220.0 255.255.252.0 192.168.1.1 UG 2 LAN & WLAN
198.38.96.0 255.255.224.0 192.168.1.1 UG 2 LAN & WLAN
198.45.48.0 255.255.240.0 192.168.1.1 UG 2 LAN & WLAN

* the table looked much better when writing this (with tab indentations), don't sure how to fix this

I also use the following commands:
iptables -t nat -A PREROUTING -d 8.8.8.8 -j DNAT --to-destination 23.21.43.50
iptables -t nat -A PREROUTING -d 8.8.4.4 -j DNAT --to-destination 54.229.171.243

iptables -I PREROUTING -t nat -p udp --dport 53 -j DNAT --to-destination 195.28.181.161
iptables -I PREROUTING -t nat -p tcp --dport 53 -j DNAT --to-destination 195.28.181.161

iptables -I FORWARD -d 108.175.32.0/255.255.240.0 -j REJECT
iptables -I FORWARD -d 198.38.96.0/255.255.224.0 -j REJECT
iptables -I FORWARD -d 198.45.48.0/255.255.240.0 -j REJECT
iptables -I FORWARD -d 185.2.220.0/255.255.252.0 -j REJECT
iptables -I FORWARD -d 23.246.0.0/255.255.192.0 -j REJECT
iptables -I FORWARD -d 37.77.184.0/255.255.248.0 -j REJECT
iptables -I FORWARD -d 45.57.0.0/255.255.128.0 -j REJECT

All was given from the support of the VPN that I'm using.
FYI, it's seems to me like a double DNS ip block/redireciton, but I'm not sure, I know that the end goal is to redirect all google DNS (and the others) queries to the VPN DNS.

Thanks.
Sponsor
GoldenAxe
DD-WRT Novice


Joined: 01 Apr 2016
Posts: 12

PostPosted: Sat Nov 26, 2016 9:21    Post subject: Reply with quote
Bump...
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Sat Nov 26, 2016 9:40    Post subject: Reply with quote
Enable logging on the router for blocked packets.See if any addresses are present in the logs.
GoldenAxe
DD-WRT Novice


Joined: 01 Apr 2016
Posts: 12

PostPosted: Sat Nov 26, 2016 10:00    Post subject: Reply with quote
OK thanks I'll give it a try.

Log Management
Log Enable
Log Level High

Options
Dropped Disable
Rejected Enable
Accepted Disable
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