id: 984be3506b3e4d07bd8fb6e047fc5612
parent_id: 
item_type: 1
item_id: 080e0c5601bc4503a62e046fd2ab990e
item_updated_time: 1764345564967
title_diff: "[{\"diffs\":[[1,\"openwrt 透明代理上网 - Rabbit Nick - 博客园\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":34}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>openwrt 透明代理上网 - Rabbit Nick - 博客园</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"application-data:2525275\\\" content=\\\"6692893/s30/3b3c12a1-ca38-4a28-9524-22f034517632/app.yinxiang.com\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"9707\\\"></a>\\\r\\\n<h1>openwrt 透明代理上网 - Rabbit Nick - 博客园</h1>\\\r\\\n\\\r\\\n<div><span><br/><div style=\\\"font-size: 16px\\\"><div><div style=\\\"font-family:Verdana, Arial, Helvetica, sans-serif;color:rgb(0, 0, 0);font-size:9pt;line-height:1.5;background:url(http://www.cnblogs.com/Skins/coffee/images/bg_body.gif) 0% 0%;\\\"><div><div style=\\\"text-align:left;\\\"><div style=\\\"text-align:left;overflow-x:hidden;background:transparent;\\\"><div style=\\\"background:url(http://www.cnblogs.com/Skins/coffee/images/bg_left.gif) 0% 0% repeat-x rgb(254, 254, 242);\\\"><div><div style=\\\"text-overflow:ellipsis;overflow:hidden;word-break:break-all;\\\"><div>\\\n\\t\\t<h1 style=\\\"margin:0px;padding:0px;width:100%;clear:both;font-weight:bold;float:left;line-height:1.5;font-size:14px;padding-left:5px;\\\">\\\n\\t\\t\\t<a href=\\\"http://www.cnblogs.com/nickchan/p/3141516.html\\\" style=\\\"margin:0px;padding:0px;text-decoration:none;color:rgb(7, 93, 179);\\\">openwrt 透明代理上网</a>\\\n\\t\\t</h1>\\\n\\t\\t<div style=\\\"margin:0px;padding:0px;clear:both;\\\"></div>\\\n\\t\\t<div style=\\\"margin:0px;padding:5px 2px 5px 5px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin-top:5px;\\\">\\\n\\t\\t\\t<div style=\\\"margin:0px;padding:0px;margin-bottom:20px;word-break:break-word;\\\"><p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">最近搞了个openwrt的router，以往都用代理来上网，但是代理每次都要设置端口啊，代理IP这些，觉得很心烦。现在好了，用openwrt搭建一个透明代理，让所有接上这个router的人都通过代理上网，还可以对他们监控和进行一些规则设定: )</p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">我的Local proxy是这样的，如图：</p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> <img src=\\\":/071a981b08cf46fdbef96c485c052d86\\\" type=\\\"image/jpeg\\\" data-filename=\\\"18010606-a7f41a8d5aac41ce81cf0af11a6c820e.jpg\\\" alt=\\\"\\\" height=\\\"312\\\" style=\\\"margin:0px;padding:0px;border:0px;display:block;margin-left:auto;margin-right:auto;\\\" width=\\\"554\\\"/></p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">我的squid版本为2.7</p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">非常多的电脑接入我的openwrt，我用的是淘宝买的DB120。感觉还不错，然后我ssh进入openwrt。</p>\\\n<div style=\\\"margin:5px 0px;padding:5px;border:1px solid rgb(204, 204, 204);overflow:auto;color:rgb(0, 0, 0);background-color:rgb(245, 245, 245);font-family:'Courier New';font-size:12px;\\\">\\\n<pre style=\\\"margin:0px;padding:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;font-family:'Courier New';font-size:12px;\\\"><span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#008080;\\\">1</span> ssh <span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">192.168</span>.<span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">8.1</span> –l root</pre>\\\n</div>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">随后输入密码，进入登陆界面，先安装squid。</p>\\\n<div style=\\\"margin:5px 0px;padding:5px;border:1px solid rgb(204, 204, 204);overflow:auto;color:rgb(0, 0, 0);background-color:rgb(245, 245, 245);font-family:'Courier New';font-size:12px;\\\">\\\n<pre style=\\\"margin:0px;padding:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;font-family:'Courier New';font-size:12px;\\\"><span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#008080;\\\">1</span> <span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#000000;\\\">opkg update\\\n</span><span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#008080;\\\">2</span> opkg install squid</pre>\\\n</div>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">安装完后，和对PC机Linux的squid操作一样，编辑squid.conf</p>\\\n<div style=\\\"margin:5px 0px;padding:5px;border:1px solid rgb(204, 204, 204);overflow:auto;color:rgb(0, 0, 0);background-color:rgb(245, 245, 245);font-family:'Courier New';font-size:12px;\\\">\\\n<pre style=\\\"margin:0px;padding:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;font-family:'Courier New';font-size:12px;\\\"><span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#008080;\\\">1</span> vim /etc/squid/squid.conf</pre>\\\n</div>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">按照另一篇我的另一篇《Linux network proxy and route》里边对squid.conf的配置后，要多添加点东东。首先说一些相关的语法：</p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">cache_peer [上层proxy主机名] [proxy角色] [proxy port] [icp port] [额外参数]</p>\\\n<ul style=\\\"margin:0px;padding:0px;word-break:break-all;margin-left:30px;padding-left:0px;\\\">\\\n<li style=\\\"margin:0px;padding:0px;list-style:none;list-style-type:disc;margin-bottom:1em;\\\">  上层proxy主机名：其实就是上层proxy的IP，我的就是172.16.54.159</li>\\\n<li style=\\\"margin:0px;padding:0px;list-style:none;list-style-type:disc;margin-bottom:1em;\\\"> Proxy角色：这部proxy是我们的上层(parent)，还是邻居sibling的协作proxy？在这里，我们要向parent proxy拿数据，所以肯定是parent啦: )</li>\\\n<li style=\\\"margin:0px;padding:0px;list-style:none;list-style-type:disc;margin-bottom:1em;\\\">Proxy port：当然就是端口号啦，一般都是3128. 因为我比较懒，所以不改设置…</li>\\\n<li style=\\\"margin:0px;padding:0px;list-style:none;list-style-type:disc;margin-bottom:1em;\\\">Icp port：通常是3130</li>\\\n<li style=\\\"margin:0px;padding:0px;list-style:none;list-style-type:disc;margin-bottom:1em;\\\">额外参数：针对parent proxy，想要对它操作的行为设定。主要有：</li>\\\n</ul>\\\n<ol style=\\\"margin:0px;padding:0px;padding-left:50px;\\\">\\\n<li style=\\\"margin:0px;padding:0px;list-style:none;margin-bottom:1em;list-style-type:decimal;\\\">Proxy-only：向parent proxy要数据不会存储到本地proxy的服务器，降低本地proxy的负担。</li>\\\n<li style=\\\"margin:0px;padding:0px;list-style:none;margin-bottom:1em;list-style-type:decimal;\\\">Weight=n：权重，因为可以指定多部上层的proxy服务器，所以可以设定哪个比较重要。N越大表示这部proxy越重要！</li>\\\n<li style=\\\"margin:0px;padding:0px;list-style:none;margin-bottom:1em;list-style-type:decimal;\\\">no-query：向上层proxy需要拿数据，可以不发送icp封包，以降低主机的负担。</li>\\\n<li style=\\\"margin:0px;padding:0px;list-style:none;margin-bottom:1em;list-style-type:decimal;\\\">no-digest：表示不向附近主机要求建立digest记录表格</li>\\\n<li style=\\\"margin:0px;padding:0px;list-style:none;margin-bottom:1em;list-style-type:decimal;\\\">no-netdb-exchange：表示不向附近的proxy主机送出imcp封包要求。</li>\\\n</ol>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">cache_peer_access [上层proxy主机名] [allow|deny] [acl名称]</p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">主要是用acl设计一个名称后，再以cache_peer_access去放行或者拒绝读取。</p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">好了，我的上层proxy是172.16.54.159，所以在squid.conf里边添加：</p>\\\n<div style=\\\"margin:5px 0px;padding:5px;border:1px solid rgb(204, 204, 204);overflow:auto;color:rgb(0, 0, 0);background-color:rgb(245, 245, 245);font-family:'Courier New';font-size:12px;\\\">\\\n<pre style=\\\"margin:0px;padding:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;font-family:'Courier New';font-size:12px;\\\"><span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#008080;\\\">1</span> cache_peer <span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">172.16</span>.<span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">54.159</span> parent <span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">3128</span> <span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">3130</span> proxy-only no-query no-digest</pre>\\\n</div>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"><span style=\\\"margin:0px;padding:0px;line-height:1.5;\\\">这样就成功设置了上层proxy，下面如何强制所有在192.168.8.x网段的人都一定要用我的proxy上网呢？也就是说每台机不用设置proxy也可以直接使用openwrt的proxy上网。其实很简单，继续在squid.conf里边的http_port中添加：</span></p>\\\n<div style=\\\"margin:5px 0px;padding:5px;border:1px solid rgb(204, 204, 204);overflow:auto;color:rgb(0, 0, 0);background-color:rgb(245, 245, 245);font-family:'Courier New';font-size:12px;\\\">\\\n<pre style=\\\"margin:0px;padding:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;font-family:'Courier New';font-size:12px;\\\"><span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#008080;\\\">1</span> http_port <span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">3128</span> transparent</pre>\\\n</div>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"><span style=\\\"margin:0px;padding:0px;line-height:1.5;\\\">保存后退出，启动squid就可以了，很简单吧？当然这里只是简单的配置了，如果还想要更多的功能，需要自己去了解下squid.conf就可以了，我比较懒，就做到这么多了: &gt;</span></p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">还有一些问题需要注意，怎么知道自己的squid.conf启动了呢？</p>\\\n<ol style=\\\"margin:0px;padding:0px;padding-left:50px;\\\">\\\n<li style=\\\"margin:0px;padding:0px;list-style:none;margin-bottom:1em;list-style-type:decimal;\\\">ps –aux 看看是否有squid的进程</li>\\\n<li style=\\\"margin:0px;padding:0px;list-style:none;margin-bottom:1em;list-style-type:decimal;\\\">netstat –an 看是否有用户连接到squid所监听的ip及端口</li>\\\n</ol>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">但是只是做了squid.conf的配置还不行呢，必须把端口80重定向到3128才可以哦，不然用了透明代理也上不了网呀:&lt;</p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">网上有些人是这么做的，所以在终端输入：</p>\\\n<div style=\\\"margin:5px 0px;padding:5px;border:1px solid rgb(204, 204, 204);overflow:auto;color:rgb(0, 0, 0);background-color:rgb(245, 245, 245);font-family:'Courier New';font-size:12px;\\\">\\\n<pre style=\\\"margin:0px;padding:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;font-family:'Courier New';font-size:12px;\\\"><span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#008080;\\\">1</span> opkg install iptables-utils iptables-mod-nat-<span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#000000;\\\">extra\\\n</span><span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#008080;\\\">2</span> iptables-save &gt;<span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#000000;\\\"> iptables.org\\\n</span><span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#008080;\\\">3</span> iptables –t nat –A PREROUTING –i br-lan –p tcp --dport <span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">80</span> –j REDIRECT --to-ports <span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">3128</span></pre>\\\n</div>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"><span style=\\\"margin:0px;padding:0px;line-height:1.5;\\\"> </span></p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">第1行是openwrt安装iptables的一些工具，第2行是保存现在的iptalbes设置，如果以后不想用透明代理，就可以直接在终端输入：</p>\\\n<div style=\\\"margin:5px 0px;padding:5px;border:1px solid rgb(204, 204, 204);overflow:auto;color:rgb(0, 0, 0);background-color:rgb(245, 245, 245);font-family:'Courier New';font-size:12px;\\\">\\\n<pre style=\\\"margin:0px;padding:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;font-family:'Courier New';font-size:12px;\\\"><span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#008080;\\\">1</span> iptables-restore iptables.org</pre>\\\n</div>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"><span style=\\\"margin:0px;padding:0px;line-height:1.5;\\\">这样就恢复原状了嘛J</span></p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">第三行是用iptables重定向80到3128，网上好多人好像都可以，但是我遇到一个问题，就是我输入这个命令以后，出现：</p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">iptables: No chain/target/match by that name</p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">我到现在还没弄清楚怎么回事呢，在网上也找了好久，好像是某些模块没编译进内核，但是根据openwrt官网上说的，我应该编译进去了。我后来用了另一个命令来redirect，现在也运行得不错，凑合着用吧。</p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\">我这么做的，在终端输入了：</p>\\\n<div style=\\\"margin:5px 0px;padding:5px;border:1px solid rgb(204, 204, 204);overflow:auto;color:rgb(0, 0, 0);background-color:rgb(245, 245, 245);font-family:'Courier New';font-size:12px;\\\">\\\n<pre style=\\\"margin:0px;padding:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;font-family:'Courier New';font-size:12px;\\\"><span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#008080;\\\">1</span> iptables –t nat –A PREROUTING –i br-lan –p tcp --src <span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">192.168</span>.<span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">8.0</span>/<span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">24</span> --dport <span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">80</span> –j DNAT --to <span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">192.168</span>.<span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">8.1</span>:<span style=\\\"margin:0px;padding:0px;font-family:'Courier New';font-size:12px;line-height:1.5;color:#800080;\\\">3128</span></pre>\\\n</div>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"><span style=\\\"margin:0px;padding:0px;line-height:1.5;\\\">结果成功运行了，可以访问网站，我对iptables也不是很熟悉，等熟悉了再分析吧:&gt;</span></p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p>\\\n<p style=\\\"padding:0px;line-height:1.5;color:rgb(0, 0, 0);font-size:13px;margin:10px auto;text-indent:0px;\\\"> </p></div>\\\n<div style=\\\"margin:0px;padding:0px;clear:both;\\\"></div>\\\n<div style=\\\"margin:0px;padding:0px;margin-top:20px;\\\">\\\n<div style=\\\"margin:0px;padding:0px;margin-bottom:10px;\\\">分类: <a href=\\\"http://www.cnblogs.com/nickchan/category/495982.html\\\" style=\\\"margin:0px;padding:0px;text-decoration:underline;color:rgb(7, 93, 179);\\\">Computer Network</a>, <a href=\\\"http://www.cnblogs.com/nickchan/category/495988.html\\\" style=\\\"margin:0px;padding:0px;text-decoration:underline;color:rgb(7, 93, 179);\\\">Linux</a></div>\\\n<div style=\\\"margin:0px;padding:0px;font-size:9pt;color:rgb(102, 102, 102);margin-top:0px;\\\"></div>\\\n<div style=\\\"margin:0px;padding:0px;\\\"><div style=\\\"margin:0px;padding:10px 0px;margin-bottom:10px;margin-top:10px;border:1px dashed silver;font-size:12px;width:350px;text-align:center;\\\">\\\n<a href=\\\"#\\\" style=\\\"margin-right:10px;margin:0px;border-radius:10px;background-color:rgb(45, 174, 191);display:inline-block;font-weight:bold;cursor:pointer;padding:3px 8px;text-decoration:none;box-shadow:rgba(0, 0, 0, 0.498039) 0px 1px 3px;text-shadow:rgba(0, 0, 0, 0.247059) 0px -1px 1px;vertical-align:middle;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAYAAABIdFAMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNo8zjsOxCAMBFB/KEAUFFR0Cbng3nQPw68ArZdAlOZppPFIBhH5EAB8b+Tlt9MYQ6i1BuqFaq1CKSVcxZ2Acs6406KUgpt5/LCKuVgz5BDCSb13ZO99ZOdcZGvt4mJjzMVKqcha68iIePB86GAiOv8CDADlIUQBs7MD3wAAAABJRU5ErkJggg%3D%3D) repeat-x;border:none;color:rgb(255, 255, 255);\\\">好文要顶</a>\\\n<a href=\\\"#\\\" style=\\\"margin-right:10px;margin:0px;border-radius:10px;background-color:rgb(227, 49, 0);display:inline-block;font-weight:bold;cursor:pointer;padding:3px 8px;text-decoration:none;box-shadow:rgba(0, 0, 0, 0.498039) 0px 1px 3px;text-shadow:rgba(0, 0, 0, 0.247059) 0px -1px 1px;vertical-align:middle;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAYAAABIdFAMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNo8zjsOxCAMBFB/KEAUFFR0Cbng3nQPw68ArZdAlOZppPFIBhH5EAB8b+Tlt9MYQ6i1BuqFaq1CKSVcxZ2Acs6406KUgpt5/LCKuVgz5BDCSb13ZO99ZOdcZGvt4mJjzMVKqcha68iIePB86GAiOv8CDADlIUQBs7MD3wAAAABJRU5ErkJggg%3D%3D) repeat-x;border:none;color:rgb(255, 255, 255);\\\">关注我</a>\\\n<a href=\\\"#\\\" style=\\\"margin-right:10px;margin:0px;border-radius:10px;background-color:rgb(255, 181, 21);display:inline-block;font-weight:bold;cursor:pointer;padding:3px 8px;text-decoration:none;box-shadow:rgba(0, 0, 0, 0.498039) 0px 1px 3px;text-shadow:rgba(0, 0, 0, 0.247059) 0px -1px 1px;vertical-align:middle;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAYAAABIdFAMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNo8zjsOxCAMBFB/KEAUFFR0Cbng3nQPw68ArZdAlOZppPFIBhH5EAB8b+Tlt9MYQ6i1BuqFaq1CKSVcxZ2Acs6406KUgpt5/LCKuVgz5BDCSb13ZO99ZOdcZGvt4mJjzMVKqcha68iIePB86GAiOv8CDADlIUQBs7MD3wAAAABJRU5ErkJggg%3D%3D) repeat-x;border:none;color:rgb(255, 255, 255);\\\">收藏该文</a>\\\n<a href=\\\"#\\\" style=\\\"margin-right:10px;margin:0px;border-radius:10px;color:rgb(255, 255, 255);display:inline-block;font-weight:bold;cursor:pointer;padding:3px 2px;text-decoration:none;box-shadow:none;text-shadow:none;vertical-align:middle;background:none;border:none;\\\" title=\\\"分享至新浪微博\\\"><img src=\\\":/036c1aa10de5400d975171c2a281611a\\\" type=\\\"image/png\\\" data-filename=\\\"icon_weibo_24.png\\\" alt=\\\"\\\" height=\\\"24\\\" style=\\\"margin:0px;padding:0px;border:none;vertical-align:middle;margin-left:5px;box-shadow:none;\\\" width=\\\"24\\\"/></a>\\\n<a href=\\\"#\\\" style=\\\"margin-right:10px;margin:0px;border-radius:10px;color:rgb(255, 255, 255);display:inline-block;font-weight:bold;cursor:pointer;padding:3px 2px;text-decoration:none;box-shadow:none;text-shadow:none;vertical-align:middle;background:none;border:none;\\\" title=\\\"分享至微信\\\"><img src=\\\":/345437eb19ac45c5aed631d325f6130d\\\" type=\\\"image/png\\\" data-filename=\\\"wechat.png\\\" alt=\\\"\\\" height=\\\"24\\\" style=\\\"margin:0px;padding:0px;border:medium none;width:24px;height:24px;box-shadow:none;margin-left:5px;vertical-align:middle;\\\" width=\\\"24\\\"/></a>\\\n</div>\\\n<div style=\\\"margin:0px;padding:0px;float:left;width:280px;margin-top:0px;margin-bottom:10px;color:rgb(0, 0, 0);margin-left:0px;font-size:12px;\\\">\\\n<div style=\\\"margin:0px;padding:0px;float:left;line-height:18px;\\\">\\\n<a href=\\\"http://home.cnblogs.com/u/nickchan/\\\" style=\\\"margin:0px;padding:0px;text-decoration:underline;color:rgb(7, 93, 179);\\\" target=\\\"_blank\\\"><img src=\\\":/2ba9fe6c2b7f4e898f918a890da91756\\\" type=\\\"image/gif\\\" data-filename=\\\"sample_face.gif\\\" alt=\\\"\\\" height=\\\"48\\\" style=\\\"margin:0px;padding:0px;border:0px;vertical-align:top;float:left;margin-right:5px;padding-top:5px;padding-left:2px;\\\" width=\\\"48\\\"/></a>\\\n<div style=\\\"margin:0px;padding:0px;float:left;line-height:18px;\\\">\\\n<a href=\\\"http://home.cnblogs.com/u/nickchan/\\\" style=\\\"margin:0px;padding:0px;text-decoration:underline;color:rgb(7, 93, 179);\\\">Rabbit Nick</a><br style=\\\"margin:0px;padding:0px;\\\"/>\\\n<a href=\\\"http://home.cnblogs.com/u/nickchan/followees\\\" style=\\\"margin:0px;padding:0px;text-decoration:underline;color:rgb(7, 93, 179);\\\">关注 - 0</a><br style=\\\"margin:0px;padding:0px;\\\"/>\\\n<a href=\\\"http://home.cnblogs.com/u/nickchan/followers\\\" style=\\\"margin:0px;padding:0px;text-decoration:underline;color:rgb(7, 93, 179);\\\">粉丝 - 3</a>\\\n</div>\\\n</div>\\\n<div style=\\\"margin:0px;padding:0px;clear:both;\\\"></div>\\\n<div style=\\\"margin:0px;padding:0px;\\\"></div>\\\n<div style=\\\"margin:0px;padding:0px;\\\">\\\n    <a href=\\\"#\\\" style=\\\"margin:0px;padding:0px;text-decoration:underline;color:rgb(7, 93, 179);\\\">+加关注</a>\\\n</div>\\\n</div>\\\n<div style=\\\"margin:0px;padding:0px;float:right;margin-bottom:10px;margin-right:30px;font-size:12px;width:125px;text-align:center;margin-top:10px;\\\">\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\\n    <div style=\\\"margin:0px;padding:0px;float:left;width:46px;height:52px;text-align:center;cursor:pointer;margin-top:2px;padding-top:5px;background:url(http://static.cnblogs.com/images/upup.gif) no-repeat;\\\">\\\n        <span style=\\\"margin:0px;padding:0px;font-size:14px;color:rgb(7, 93, 179);font-family:Verdana;line-height:1.5em;\\\">0</span>\\\n    </div>\\\n\\t<div style=\\\"height:52px;margin:0px;padding:0px;margin-left:20px;width:46px;float:right;text-align:center;cursor:pointer;margin-top:2px;padding-top:5px;background:url(http://static.cnblogs.com/images/downdown.gif) no-repeat;\\\"> \\\n\\t\\t<span style=\\\"margin:0px;padding:0px;font-size:14px;color:rgb(7, 93, 179);font-family:Verdana;line-height:1.5em;\\\">0</span>\\\n\\t</div>\\\n\\t<div style=\\\"margin:0px;padding:0px;clear:both;\\\"></div>\\t\\\n\\t<div style=\\\"margin:0px;padding:0px;margin-top:5px;margin-left:0px;font-size:12px;color:gray;\\\">\\\n    (请您对文章做出评价)\\\n    </div>\\t\\\n</div>\\\n</div>\\\n<div style=\\\"margin:0px;padding:0px;clear:both;\\\"></div>\\\n<div style=\\\"margin:0px;padding:0px;line-height:1.8;font-size:12px;\\\"><a href=\\\"http://www.cnblogs.com/nickchan/archive/2013/05/20/3104369.html\\\" style=\\\"margin:0px;padding:0px;color:rgb(7, 93, 179);text-decoration:none;\\\">« </a> 上一篇：<a href=\\\"http://www.cnblogs.com/nickchan/archive/2013/05/20/3104369.html\\\" style=\\\"margin:0px;padding:0px;text-decoration:underline;color:rgb(7, 93, 179);\\\" title=\\\"发布于2013-05-20 19:20\\\">Linux单网卡，双IP，双网关配置，并搭建squid proxy上网</a><br style=\\\"margin:0px;padding:0px;\\\"/><a href=\\\"http://www.cnblogs.com/nickchan/p/3180670.html\\\" style=\\\"margin:0px;padding:0px;color:rgb(7, 93, 179);text-decoration:none;\\\">» </a> 下一篇：<a href=\\\"http://www.cnblogs.com/nickchan/p/3180670.html\\\" style=\\\"margin:0px;padding:0px;text-decoration:underline;color:rgb(7, 93, 179);\\\" title=\\\"发布于2013-07-09 18:32\\\">在Ubuntu中用命令行(command line)打开PDF</a><br style=\\\"margin:0px;padding:0px;\\\"/></div>\\\n</div>\\\n\\\n\\\n\\t\\t</div>\\\n\\t\\t<div style=\\\"margin:0px;padding:0px;clear:both;font-size:12px;float:right;width:100%;text-align:right;padding-right:5px;color:rgb(102, 102, 102);margin-top:5px;\\\">posted @ <span style=\\\"margin:0px;padding:0px;\\\">2013-06-18 01:13</span> <a href=\\\"http://www.cnblogs.com/nickchan/\\\" style=\\\"margin:0px;padding:0px;text-decoration:none;color:rgb(7, 93, 179);\\\">Rabbit Nick</a> 阅读(<span style=\\\"margin:0px;padding:0px;\\\">3298</span>) 评论(<span style=\\\"margin:0px;padding:0px;\\\">0</span>)  <a href=\\\"http://i.cnblogs.com/EditPosts.aspx?postid=3141516\\\" rel=\\\"nofollow\\\" style=\\\"margin:0px;padding:0px;text-decoration:none;color:rgb(7, 93, 179);\\\">编辑</a> <a href=\\\"http://www.cnblogs.com/nickchan/p/3141516.html#\\\" style=\\\"margin:0px;padding:0px;text-decoration:none;color:rgb(7, 93, 179);\\\">收藏</a></div>\\\n\\t</div></div></div></div></div></div></div></div></div></div><br/></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":24980}]"
metadata_diff: {"new":{"id":"080e0c5601bc4503a62e046fd2ab990e","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348827636,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:04:03.287Z
created_time: 2025-11-28T21:04:03.287Z
type_: 13