Skip to content

Commit

Permalink
Updates for youtube: added -u for ss-redir in /etc/init.d/shadowsocks…
Browse files Browse the repository at this point in the history
…, redirect udp port 443 to local port 7654 in /usr/bin/shadowsocks-firewall
  • Loading branch information
softwaredownload committed Jun 28, 2017
1 parent e3a4ec0 commit 28ce4f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion openwrt/default/etc/init.d/shadowsocks
Expand Up @@ -13,7 +13,7 @@ start() {
sed -i 's/114.114.114.114/127.0.0.1#3210/' /etc/dnsmasq.d/gfwlist.conf
/etc/init.d/dnsmasq restart

service_start /usr/bin/ss-redir -b 0.0.0.0 -c /etc/shadowsocks.json -f /var/run/shadowsocks.pid
service_start /usr/bin/ss-redir -b 0.0.0.0 -c /etc/shadowsocks.json -f /var/run/shadowsocks.pid -u
service_start /usr/bin/ss-tunnel -b 0.0.0.0 -c /etc/shadowsocks.json -l 3210 -L 8.8.8.8:53 -u
/usr/bin/shadowsocks-firewall
}
Expand Down
3 changes: 3 additions & 0 deletions openwrt/default/usr/bin/shadowsocks-firewall
Expand Up @@ -17,6 +17,9 @@ iptables -t nat -A SHADOWSOCKS -d 1.0.9.8 -j RETURN
iptables -t nat -A SHADOWSOCKS -p tcp --dport 1935 -j REDIRECT --to-ports 7654
iptables -t nat -A SHADOWSOCKS -p udp --dport 1935 -j REDIRECT --to-ports 7654

# for youtube
iptables -t nat -A SHADOWSOCKS -p udp --dport 443 -j REDIRECT --to-ports 7654

# Ignore LANs IP address
iptables -t nat -A SHADOWSOCKS -d 0.0.0.0/8 -j RETURN
iptables -t nat -A SHADOWSOCKS -d 10.0.0.0/8 -j RETURN
Expand Down
3 changes: 3 additions & 0 deletions openwrt/dir505/usr/bin/shadowsocks-firewall
Expand Up @@ -16,6 +16,9 @@ iptables -t nat -A SHADOWSOCKS -d 1.0.9.8 -j RETURN
iptables -t nat -A SHADOWSOCKS -p tcp --dport 1935 -j REDIRECT --to-ports 7654
iptables -t nat -A SHADOWSOCKS -p udp --dport 1935 -j REDIRECT --to-ports 7654

# for youtube
iptables -t nat -A SHADOWSOCKS -p udp --dport 443 -j REDIRECT --to-ports 7654

# Ignore LANs IP address
iptables -t nat -A SHADOWSOCKS -d 0.0.0.0/8 -j RETURN
iptables -t nat -A SHADOWSOCKS -d 10.0.0.0/8 -j RETURN
Expand Down

0 comments on commit 28ce4f6

Please sign in to comment.