<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Soul Of Free Loop &#187; 广电</title>
	<atom:link href="https://zohead.com/archives/tag/bc-tv/feed" rel="self" type="application/rss+xml" />
	<link>https://zohead.com</link>
	<description>Uranus Zhou&#039;s Blog</description>
	<lastBuildDate>Sat, 19 Jul 2025 15:42:46 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8</generator>
	<item>
		<title>广电宽带DNS访问某些国内网站的问题</title>
		<link>https://zohead.com/archives/bcnet-dns/</link>
		<comments>https://zohead.com/archives/bcnet-dns/#comments</comments>
		<pubDate>Sat, 28 Oct 2017 03:44:15 +0000</pubDate>
		<dc:creator><![CDATA[Uranus Zhou]]></dc:creator>
				<category><![CDATA[网络]]></category>
		<category><![CDATA[dnsmasq]]></category>
		<category><![CDATA[ipset]]></category>
		<category><![CDATA[pdnsd]]></category>
		<category><![CDATA[广电]]></category>

		<guid isPermaLink="false">https://zohead.com/?p=1508</guid>
		<description><![CDATA[问题说明 有段时间没有更新博客了，最近全国都处于重要的开会期间，不出所料常用的爬墙路线都被各种封锁，而我在的住处使用的广电宽带也出幺蛾子了。前两周我发现突然无法访问 www.ip138.com、www.chinaz.com 之类的国内网站，浏览器上的表现似乎是没有正常打开连接就中断了。 通过在本地运行 nslookup 命令解析这些域名我才发现，这些网站在我的电脑上根本没有解析到任何有效的 IP 地址，难怪无法正常访问了。 为此我登录到 OpenWRT 路由器，直接在路由器系统上运行 nslookup 命令解析这些无法访问的域名，从返回的结果才看出端倪： 可以看到百度域名可以返回正确的结果，因 [&#8230;]]]></description>
				<content:encoded><![CDATA[<h2 id="dns-problem">问题说明</h2>
<p>有段时间没有更新博客了，最近全国都处于重要的开会期间，不出所料常用的爬墙路线都被各种封锁，而我在的住处使用的广电宽带也出幺蛾子了。前两周我发现突然无法访问 www.ip138.com、www.chinaz.com 之类的国内网站，浏览器上的表现似乎是没有正常打开连接就中断了。</p>
<p>通过在本地运行 nslookup 命令解析这些域名我才发现，这些网站在我的电脑上根本没有解析到任何有效的 IP 地址，难怪无法正常访问了。</p>
<p>为此我登录到 OpenWRT 路由器，直接在路由器系统上运行 nslookup 命令解析这些无法访问的域名，从返回的结果才看出端倪：</p>
<pre class="brush: bash; title: ; notranslate">
[root@PandoraBox:/root]#nslookup www.baidu.com
Server:    127.0.0.1
Address 1: 127.0.0.1 localhost

Name:      www.baidu.com
Address 1: 180.97.33.108
Address 2: 180.97.33.107

[root@PandoraBox:/root]#nslookup www.ip138.com
Server:    127.0.0.1
Address 1: 127.0.0.1 localhost

Name:      www.ip138.com
Address 1: ::ffff:172.30.1.23

[root@PandoraBox:/root]#nslookup www.dasai8.com
Server:    127.0.0.1
Address 1: 127.0.0.1 localhost

Name:      www.dasai8.com
Address 1: ::ffff:172.30.0.44
Address 2: 172.30.0.44
</pre>
<p>可以看到百度域名可以返回正确的结果，因此能正常访问。</p>
<p>无法访问的 www.ip138.com 和 www.dasai8.com 域名返回的则是诡异的 IPv6 和 IPv4 地址，实际上这两个网站从目前来看是不太可能部署了 IPv6 支持的，而且返回的结果中 172.30.1.23 和 172.30.0.44 也是明显的本地局域网地址。</p>
<p>到此我也大概了解原因了：</p>
<p>广电宽带不知道出于节省成本还是什么的考虑，对某些国内网站内容做了缓存，用户解析这些网站域名时直接返回广电网内缓存服务器的地址，这样访问起来也比较快。但不巧的是这些解析到的局域网服务器地址没有通过路由器正确返回给我使用的电脑，导致无法正常访问这些网站。</p>
<h2 id="dns-fix">问题原因</h2>
<p>目前的问题看起来出在路由器上了，为此需要检查路由器的 DNS 服务器设置。最后终于在 PandoraBox 的 “DHCP/DNS” 界面中找到的相关的 “重绑定保护” 设置，把默认选中的 “丢弃RFC1918上行响应数据” 勾去掉之后保存并应用就可以了。</p>
<p><img src="http://res.cloudinary.com/digwht2y0/image/upload/v1737370814/dns_rebind_protection.png" alt="DNS 重绑定保护" title="DNS 重绑定保护"></p>
<p>这样修改之后，路由器就不会忽略内网地址的解析结果了。</p>
<p>现在再来看看修改之后 ping 这些网站的结果（广电宽带对于非广电内部网络的地址一般都是不允许 ping 的）：</p>
<pre class="brush: bash; title: ; notranslate">
(trusty)zzm@localhost:~$ ping -c 4 www.dasai8.com
PING www.dasai8.com (172.30.0.44) 56(84) bytes of data.
64 bytes from 172.30.0.44: icmp_seq=1 ttl=58 time=7.94 ms
64 bytes from 172.30.0.44: icmp_seq=2 ttl=58 time=9.74 ms
64 bytes from 172.30.0.44: icmp_seq=3 ttl=58 time=7.40 ms
64 bytes from 172.30.0.44: icmp_seq=4 ttl=58 time=9.97 ms

--- www.dasai8.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3037ms
rtt min/avg/max/mdev = 7.402/8.766/9.975/1.115 ms

(trusty)zzm@localhost:~$ ping -c 4 www.chinaz.com
PING www.chinaz.com (172.30.1.22) 56(84) bytes of data.
64 bytes from 172.30.1.22: icmp_seq=1 ttl=57 time=7.57 ms
64 bytes from 172.30.1.22: icmp_seq=2 ttl=57 time=9.66 ms
64 bytes from 172.30.1.22: icmp_seq=3 ttl=57 time=8.59 ms
64 bytes from 172.30.1.22: icmp_seq=4 ttl=57 time=10.8 ms

--- www.chinaz.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 7.573/9.177/10.870/1.230 ms

(trusty)zzm@localhost:~$ ping -c 4 www.baidu.com
PING www.a.shifen.com (180.97.33.107) 56(84) bytes of data.

--- www.a.shifen.com ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 2999ms
</pre>
<p>可以看到前面两个域名的 ping 值显然是局域网内的结果，而 ping 百度则是 <strong>“正常”</strong> 地返回超时了 -_-#。</p>
<h2 id="dns-solve">解决方法</h2>
<p>经过后续测试我发现广电宽带甚至对土豆网这种级别的网站都做了缓存，解析时会返回 172.30.1.23 之类的局域网地址。</p>
<p>尽管可以忽略路由器 DNS 的重绑定保护机制，但访问这些网站完全使用广电缓存的话，很可能会出现网页不正确甚至被插广告的风险，为此我还是在路由器上开启了 pdnsd 服务，修改了 dnsmasq 配置文件，将这些可能被广电缓存的网站域名单独发给本地的 pdnsd 服务进行解析。</p>
<p>dnsmasq 配置文件类似这样：</p>
<pre class="brush: plain; title: dnsmasq.conf; notranslate">
server=/.google.com/127.0.0.1#5353
ipset=/.google.com/gfwlist
server=/.twitter.com/127.0.0.1#5353
ipset=/.twitter.com/gfwlist
server=/.facebook.com/127.0.0.1#5353
ipset=/.facebook.com/gfwlist
server=/.dasai8.com/127.0.0.1#5353
server=/.ip138.com/127.0.0.1#5353
server=/.chinaz.com/127.0.0.1#5353
</pre>
<p>前面几个是必须爬墙的域名，通过 pdnsd 解析并加入到名为 gfwlist 的 ipset 中，这样可以自动走 Shadowsocks ss-redir 线路，后面的几个常规情况下被缓存的域名则只是通过 pdnsd 解析。</p>
<p>pdnsd 服务器的配置是以 TCP 协议通过第三方的 DNS 服务器进行域名解析，考虑到 TCP 的 DNS 协议仍然会被广电给劫持的问题，还需要将 pdnsd 配置中的 DNS 服务器加入到 ipset 中，这样就可以让 pdnsd 的解析请求完全走 Shadowsocks 或者 OpenVPN 来避免污染了。</p>
]]></content:encoded>
			<wfw:commentRss>https://zohead.com/archives/bcnet-dns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用OpenVPN连接Windscribe免费VPN</title>
		<link>https://zohead.com/archives/windscribe-openvpn/</link>
		<comments>https://zohead.com/archives/windscribe-openvpn/#comments</comments>
		<pubDate>Fri, 07 Jul 2017 16:59:16 +0000</pubDate>
		<dc:creator><![CDATA[Uranus Zhou]]></dc:creator>
				<category><![CDATA[网络]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[Windscribe]]></category>
		<category><![CDATA[广电]]></category>
		<category><![CDATA[翻墙]]></category>

		<guid isPermaLink="false">https://zohead.com/?p=1466</guid>
		<description><![CDATA[前言 最近换了住处之后，我还是没想到平时上网的宽带问题会成为一大痛点：现在住的地方基本上只能办理南京的广电宽带。广电宽带不但有着臭名昭著的速度慢游戏卡以及墙中墙问题，而且由于其 IP 地址资源有限，访问一些网站经常出现 IP 全国各地乱飞的情况，最要命的是其出国线路与我之前用的移动宽带完全没法比。 我观察到的南京广电宽带基本出国都是走联通线路，使用的是内蒙古包头之类的奇葩 IP 地址。之前在住处用于翻墙的 AlphaRacks VPS 和 Arukas 容器搭建的 Shadowsocks 服务器现在基本都处于不可用的状态，Google 搜索勉强能打开，Gmail 经常卡的不要不要的，YouTu [&#8230;]]]></description>
				<content:encoded><![CDATA[<h2 id="前言">前言</h2>
<p>最近换了住处之后，我还是没想到平时上网的宽带问题会成为一大痛点：现在住的地方基本上只能办理南京的广电宽带。广电宽带不但有着臭名昭著的速度慢游戏卡以及墙中墙问题，而且由于其 IP 地址资源有限，访问一些网站经常出现 IP 全国各地乱飞的情况，最要命的是其出国线路与我之前用的移动宽带完全没法比。</p>
<p>我观察到的南京广电宽带基本出国都是走联通线路，使用的是内蒙古包头之类的奇葩 IP 地址。之前在住处用于翻墙的 AlphaRacks VPS 和 Arukas 容器搭建的 Shadowsocks 服务器现在基本都处于不可用的状态，Google 搜索勉强能打开，Gmail 经常卡的不要不要的，YouTube 视频则基本不用想了。</p>
<p>更恶心的是广电宽带还直接屏蔽了 ICMP ping 外网的请求，只能 ping 广电内网的地址，至于普通的 <code>traceroute</code> 路由跟踪就更别想了。</p>
<p>下面贴出来的是我在 Linux 下使用专用的 TCP 路由跟踪 <code>tcptraceroute</code> 命令看到的惨不忍睹的结果，目的地址是移动宽带下用的无比顺畅的日本免费 Arukas 容器：</p>
<pre class="brush: bash; title: ; notranslate">
(trusty)zzm@localhost:~$ tcptraceroute -n 153.125.238.173 31626
Selected device wlan0, address 192.168.1.243, port 50713 for outgoing packets
Tracing the path to 153.125.238.173 on TCP port 31626, 30 hops max
 1  192.168.1.1  1.321 ms  1.567 ms  3.853 ms
 2  10.58.71.1  9.688 ms  14.964 ms  11.497 ms
 3  192.168.104.57  8.138 ms  20.722 ms  9.597 ms
 4  111.208.1.141  10.785 ms  11.364 ms  8.861 ms
 5  111.208.1.190  9.602 ms  10.524 ms  11.136 ms
 6  192.168.3.225  8.822 ms  9.481 ms  8.833 ms
 7  * * *
 8  172.16.116.13  70.035 ms  71.014 ms  68.664 ms
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
Destination not reached
</pre>
<p>由于我平常也使用 Chromebook 设备，特别依赖 Google 服务，Gmail 自不必说，经常要用 Google Drive 同步文件，另外也使用 Google Photos 备份照片，这样必须无法忍受需要找其它翻墙方案。</p>
<h2 id="关于-windscribe-vpn">关于 Windscribe VPN</h2>
<p><a href="https://windscribe.com/?friend=uxavdz64">Windscribe</a> 还是从我一个同事那里了解到的免费 VPN 服务，默认提供每个月 10GB 的流量，免费账户也有多国服务器可选，通过代金券可以增加到每月 50GB 或者 60GB。</p>
<p>需要的朋友可以通过下面的链接注册（没错，带了我的推荐小尾巴 ^_^），需要注意 Windscribe 网站必须翻墙才能打开：</p>
<p><a href="https://windscribe.com/?friend=uxavdz64" target="_blank">https://windscribe.com/?friend=uxavdz64</a></p>
<p>Windscribe 的付费账户则是无限流量每月 $7.50 美元起，最近他们在搞 Lobster Lover 优惠活动，现在付费账户限时 3 折促销每年 $29.99 美元，有需要的朋友可以注册之后用 <a href="https://windscribe.com/upgrade?promo=LOBSTER1&amp;pcpid=lobster_july_2017" target="_blank">Lobster Lover</a> 链接优惠升级哦。</p>
<p>账户注册完成之后登录，在 <code>My Account</code> 页面中点击 <code>Claim Voucher</code> 按钮输入代金券代码：</p>
<ul>
<li><code>SOS60GBS</code>，流量增加到每个月 60 GB，暂不确定什么时候过期；</li>
<li><code>50GBFREE</code>，流量增加到每个月 50 GB。</li>
</ul>
<p>Windscribe 提供了 Windows、Mac OS X、iPhone 下的客户端，而且还有官方的 Chrome、Firefox、Opera 浏览器下的 VPN 扩展程序，客户端下载链接在此：</p>
<p><a href="https://chn.windscribe.com/download" target="_blank">https://chn.windscribe.com/download</a></p>
<p>从下载页面可以看到 Linux、Android 客户端都只有收费账户才支持，而且 Windscribe 并没有直接提供 Linux 和 Android 下的官方客户端，而是通过 OpenVPN、IKEv2、SOCKS5 等配置文件的方式让用户使用其它工具来连接 Windscribe VPN 服务器。</p>
<h2 id="openvpn-连接-windscribe">OpenVPN 连接 Windscribe</h2>
<p>如此看来 Windscribe 是直接支持以 OpenVPN 方式来连接的，当然收费账户可以从下面的链接直接下载 OpenVPN 配置文件和证书：</p>
<p><a href="https://chn.windscribe.com/getconfig/openvpn" target="_blank">https://chn.windscribe.com/getconfig/openvpn</a></p>
<p>虽然免费账户无法下载 OpenVPN 配置，但我估计 Windows 等系统下的客户端很有可能还是以 OpenVPN 方式实现的，马上下载安装 Windows 客户端来确认。</p>
<p>客户端安装的时候会自动提示安装 OpenVPN 的 TAP 驱动，完成之后使用 Windscribe 账户登录，默认会选择离我们最近的香港服务器。连接成功之后就能在进程列表看到 Windscribe 的 <code>windscribeopenvpn.exe</code> 程序，而且在命令行参数中还能看到 OpenVPN 配置文件路径：</p>
<pre class="brush: plain; title: ; notranslate">
&quot;C:\Program Files (x86)\Windscribe\windscribeopenvpn.exe&quot; --config &quot;C:/Users/xxx/AppData/Local/Windscribe/Windscribe/config.ovpn&quot; --management 127.0.0.1 57593 --management-query-passwords --management-hold
</pre>
<p>首先从下面的路径把 OpenVPN 配置文件拷贝出来：</p>
<pre class="brush: plain; title: ; notranslate">
C:/Users/xxx/AppData/Local/Windscribe/Windscribe/config.ovpn
</pre>
<p>配置文件内容大概是这样的：</p>
<pre class="brush: plain; title: config.ovpn; notranslate">
client
dev tun

nobind
auth-user-pass
reneg-sec 432000
resolv-retry infinite

auth SHA512
cipher AES-256-CBC
keysize 256
comp-lzo
verb 2
mute-replay-warnings
ns-cert-type server
persist-key
persist-tun

key-direction 1
&lt;ca&gt;
-----BEGIN CERTIFICATE-----
xxxxxx
-----END CERTIFICATE-----
&lt;/ca&gt;
&lt;tls-auth&gt;
-----BEGIN OpenVPN Static key V1-----
xxxxxx
-----END OpenVPN Static key V1-----
&lt;/tls-auth&gt;
block-outside-dns

remote 103.10.197.3
port 443
proto udp
</pre>
<p>中间的 CA 证书和 TLS 认证 key 太长就没有全部贴出来了，<code>remote</code> 明显就是 Windscribe OpenVPN 服务器的地址，这里的 <code>103.10.197.3</code> 就是 Windscribe 的香港服务器。</p>
<p>现在剩下的问题就是 OpenVPN 的登录用户名和密码了，Windscribe 的 <a href="https://chn.windscribe.com/guides/ubuntu" target="_blank">Linux 客户端说明</a> 中明确提醒用户需要注意的就是 OpenVPN 用户名和密码并不是 Windscribe 账户名和密码。</p>
<p>Windscribe 的 Windows 客户端里并没有直接提供用户名和密码，而且 Windscribe 网站上也只有付费账户才能得到，但这并不妨碍我们从 Windscribe 客户端的日志文件中找出端倪。</p>
<p>打开 Windscribe 客户端的日志文件：</p>
<pre class="brush: plain; title: ; notranslate">
C:\Users\xxx\AppData\Local\Windscribe\Windscribe\log.txt
</pre>
<p>不出意外的话你应该能在其中找到类似下面的输出：</p>
<pre class="brush: plain; title: ; notranslate">
[0607 03:18     36.573] [basic]	 state = CONNECT_BUTTON_CONNECTING
[0607 03:18     36.574] [basic]	 radiusUsername:  &quot;nocwat_xxx&quot;
[0607 03:18     36.574] [basic]	 radiusPassword:  &quot;pppppp&quot;
[0607 03:18     36.574] [basic]	 Connecting to &quot;最佳位置&quot;
[0607 03:18     36.574] [connection]	 Use latest successfully connection protocol: &quot;UDP&quot;
[0607 03:18     36.574] [connection]	 Connection settings: automatic
[0607 03:18     36.574] [connection]	 Location nodes: &quot;node1 = {ip1 = 103.10.197.2, ip2 = 103.10.197.3, ip3 = 103.10.197.4}; &quot;
[0607 03:18     36.575] [connection]	 OVPN-config path: &quot;C:/Users/xxx/AppData/Local/Windscribe/Windscribe/config.ovpn&quot;
[0607 03:18     36.575] [connection]	 Connecting to IP: &quot;103.10.197.3&quot;  protocol: &quot;UDP&quot;  port: 443
</pre>
<p>上面日志里的 <code>radiusUsername</code> 和 <code>radiusPassword</code> 就是 Windscribe 的 OpenVPN 服务器登录用户名和密码了。</p>
<p>接着就是打开 OpenVPN 软件使用刚才拷贝出来的 <code>config.ovpn</code> 配置文件，然后用上面的 OpenVPN 用户名和密码登录了，我的免费账户使用这种绕过 Windscribe 官方客户端的方式登录在测试中并没有发现什么问题。</p>
<h2 id="windscribe-服务器列表">Windscribe 服务器列表</h2>
<p>到这里你应该能使用泛用型 OpenVPN 客户端来连接 Windscribe VPN 了，只是 Windscribe 多个地区的 VPN 服务器地址稍微麻烦点，毕竟使用过程中总会遇到某些地区的服务器比较慢需要切换的。</p>
<p>不过还好网上已经有人整理好了 Windscribe 的各地区 VPN 服务器地址了，大家直接从下面的地址下载 UDP 或者 TCP 协议的各地区 OpenVPN 配置文件：</p>
<p><a href="https://github.com/haugene/docker-transmission-openvpn/files/502948/Windscribe-OVPN-UDP.zip" target="_blank">Windscribe-OVPN-UDP.zip</a> <br />
<a href="https://github.com/haugene/docker-transmission-openvpn/files/502949/Windscribe-OVPN-TCP.zip" target="_blank">Windscribe-OVPN-TCP.zip</a></p>
<p>解压缩之后使用其中某个地区的 OpenVPN 配置文件即可，登录时仍然使用前面日志文件中找到的用户名和密码。</p>
<p>当然后面很可能会碰到配置文件中的服务器地址不正确或者 Windscribe 修改了证书之类的情况，不过大家还是可以从 Windscribe 客户端的服务日志中找到正确的服务器地址，例如：</p>
<pre class="brush: plain; title: ; notranslate">
[04-07 12:11:06]	Service started
[04-07 12:15:14]	AA_COMMAND_FIREWALL_CHANGE, AllowLocalTraffic=1, Ips=38.95.108.xxx;xxxxxx;104.18.56.xxx
[04-07 12:15:14]	AA_COMMAND_FIREWALL_IPV6_ENABLE
[04-07 12:15:14]	Error 13
[04-07 12:15:14]	AA_COMMAND_EXECUTE, blocking=0, cmd=&quot;C:\Program Files (x86)\Windscribe\windscribeopenvpn.exe&quot; --config &quot;C:/Users/xxx/AppData/Local/Windscribe/Windscribe/config.ovpn&quot; --management 127.0.0.1 57593 --management-query-passwords --management-hold
</pre>
<p>上面日志输出中的 <code>Ips</code>（并没有全部列出来） 就是客户端获取到的所有 Windscribe VPN 服务器的地址了。</p>
]]></content:encoded>
			<wfw:commentRss>https://zohead.com/archives/windscribe-openvpn/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
