Skip to content

Instantly share code, notes, and snippets.

@crazcdll
Forked from willwhui/Connect to Google Home
Created July 1, 2017 11:17
Show Gist options
  • Save crazcdll/b6be1f564a3538f52274b684ea7bb7d0 to your computer and use it in GitHub Desktop.
Save crazcdll/b6be1f564a3538f52274b684ea7bb7d0 to your computer and use it in GitHub Desktop.
Connect to Google Home
Connect to Google Home
@crazcdll
Copy link
Author

crazcdll commented Jul 1, 2017

在/usr/bin/shadowsocks-firewall 中对局域网的跳过段之后增加如下内容,可以解决问题。

for google home

iptables -t nat -A PREROUTING -s 192.168.1.1/24 -p udp --dport 53 -j DNAT --to 192.168.1.1
iptables -t nat -A PREROUTING -s 192.168.1.1/24 -p tcp --dport 53 -j DNAT --to 192.168.1.1
iptables -I PREROUTING -t nat -p udp -d 8.8.4.4 --dport 53 -j REDIRECT --to-ports 1053
iptables -I PREROUTING -t nat -p udp -d 8.8.8.8 --dport 53 -j REDIRECT --to-ports 1053

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment