-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
588 lines (242 loc) · 17.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>xixitalk's snippet</title>
<meta name="author" content="xixitalk">
<meta name="description" content="需求:家里内网的服务,办公室内网可以访问。 环境说明 办公室电脑是 10.40.xx.xx这样的内网IP。家里路由器是有公网IP的。家里一台树莓派3(IP 192.168.1.104)接在路由器下,路由器IP是192.168.1.1 公网IP假定是180.109.114.114。 …">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://xixitalk.github.io">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="/javascripts/ender.js"></script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<link href="/atom.xml" rel="alternate" title="xixitalk's snippet" type="application/atom+xml">
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32324744-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body >
<header role="banner"><hgroup>
<h1><a href="/">xixitalk's snippet</a></h1>
<h2>Post Longer Than 140 Characters Tweets</h2>
</hgroup>
</header>
<nav role="navigation"><ul class="subscription" data-subscription="rss">
<li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
</ul>
<form action="http://google.com/search" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:xixitalk.github.io" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
<ul class="main-navigation">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives">Archives</a></li>
<li><a href="/blog/categories/">Categories</a></li>
<li><a href="/wishlist/">My wishlist</a></li>
<li><a href="/about/">About me</a></li>
</ul>
</nav>
<div id="main">
<div id="content">
<div class="blog-index">
<article>
<header>
<h1 class="entry-title"><a href="/blog/2017/11/13/use-frp-instead-of-stunnel/">用frp代替stunnel进行服务共享和安全连接</a></h1>
<p class="meta">
<time datetime="2017-11-13T16:14:36+00:00" pubdate data-updated="true">Nov 13<span>th</span>, 2017</time>
| <a href="/blog/2017/11/13/use-frp-instead-of-stunnel/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>需求:家里内网的服务,办公室内网可以访问。</p>
<h4 id="section">环境说明</h4>
<p>办公室电脑是 10.40.xx.xx这样的内网IP。家里路由器是有公网IP的。家里一台树莓派3(IP 192.168.1.104)接在路由器下,路由器IP是192.168.1.1 公网IP假定是180.109.114.114。路由器上配置端口映射,把端口14828映射到树莓派3的192.168.1.104上。端口号14828可以自行选择其他的,和下面保持一致即可。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2017/11/13/use-frp-instead-of-stunnel/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2017/11/13/link-office-from-home-via-frp/">内网穿透:从家里连接办公室电脑</a></h1>
<p class="meta">
<time datetime="2017-11-13T09:11:13+00:00" pubdate data-updated="true">Nov 13<span>th</span>, 2017</time>
| <a href="/blog/2017/11/13/link-office-from-home-via-frp/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>环境说明: 办公室电脑是 10.40.xx.xx这样的内网IP,并且办公环境要通过HTTP代理才能访问外网。我没有公网IP的VPS,但是家里路由器是有公网IP的,可以借路由器的公网IP进行内网穿透。</p>
<h4 id="section">环境</h4>
<p>家里一台树莓派3(IP 192.168.1.104)接在路由器下,路由器IP是192.168.1.1 公网IP假定是180.109.114.114。路由器上配置端口映射,把14827和14828都映射到树莓派3的192.168.1.104上,端口号可以自行选择其他的,和下面保持一致即可。</p>
<p>内网穿透使用<a href="https://github.com/fatedier/frp/blob/master/README_zh.md">frp</a>软件。frp编译好的二进制下载地址<a href="https://github.com/fatedier/frp/releases">https://github.com/fatedier/frp/releases</a>,树莓派使用<code>frp_0.13.0_linux_arm.tar.gz</code>。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2017/11/13/link-office-from-home-via-frp/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2017/09/19/getaddrinfo-error/">getaddrinfo 返回Name or service not known错误</a></h1>
<p class="meta">
<time datetime="2017-09-19T14:23:57+00:00" pubdate data-updated="true">Sep 19<span>th</span>, 2017</time>
| <a href="/blog/2017/09/19/getaddrinfo-error/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>关键词:glibc getaddrinfo</p>
<p>同事反馈说程序调用<code>getaddrinfo</code>函数出错(arm linux平台),glibc是2.20,我想glibc不会这么弱,这么标准的函数都有问题。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2017/09/19/getaddrinfo-error/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2017/09/03/compile-haproxy-on-raspberry3/">树莓派3上编译haproxy</a></h1>
<p class="meta">
<time datetime="2017-09-03T06:01:08+00:00" pubdate data-updated="true">Sep 3<span>rd</span>, 2017</time>
| <a href="/blog/2017/09/03/compile-haproxy-on-raspberry3/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>最近发现树莓派上haproxy有点问题,Google Play下载有些不正常。所以想更新编译haproxy。raspbian软件仓库的haproxy的版本比较低,所以直接下载haproxy源代码编译。更新过程记录下来。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2017/09/03/compile-haproxy-on-raspberry3/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2017/08/28/When-a-child-eat-a-chinese-date-stone/">当小孩吞吃了一个红枣核</a></h1>
<p class="meta">
<time datetime="2017-08-28T10:51:54+00:00" pubdate data-updated="true">Aug 28<span>th</span>, 2017</time>
| <a href="/blog/2017/08/28/When-a-child-eat-a-chinese-date-stone/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p><strong>不要给小孩吃红枣!不要给小孩吃红枣!不要给小孩吃红枣!</strong></p>
</div>
<footer>
<a rel="full-article" href="/blog/2017/08/28/When-a-child-eat-a-chinese-date-stone/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2016/11/12/How-to-Format-Usb-Drive-for-asus-router/">华硕路由器外接硬盘格式化成什么文件系统最好</a></h1>
<p class="meta">
<time datetime="2016-11-12T15:33:41+00:00" pubdate data-updated="true">Nov 12<span>th</span>, 2016</time>
| <a href="/blog/2016/11/12/How-to-Format-Usb-Drive-for-asus-router/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>关键词:华硕 AC66U AC68U 外接硬盘 文件系统 EXT4 EXT3 NTFS FAT32</p>
<p>我有一台华硕AC66U,外接了一块2.5吋移动硬盘。不知道格式化成什么格式最好?硬盘本来是EXT4格式的,插上发现没有自动挂载,搜索发现,AC66U建议用<strong>EXT3</strong>格式,而AC68U建议用<strong>EXT4</strong>格式。果然格式成EXT3后,插上AC66U后<strong>自动挂载</strong>了。其他华硕机器未验证。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2016/11/12/How-to-Format-Usb-Drive-for-asus-router/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2016/11/01/pkcs11-helper-build/">pkcs11-helper编译</a></h1>
<p class="meta">
<time datetime="2016-11-01T18:37:08+00:00" pubdate data-updated="true">Nov 1<span>st</span>, 2016</time>
| <a href="/blog/2016/11/01/pkcs11-helper-build/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p><a href="https://github.com/OpenSC/pkcs11-helper/releases">pkcs11-helper</a>也真是的,软件包里<code>INSTALL</code>里说用<code>./configure</code>生成<code>Makefile</code>,但是软件包还没有<code>configure</code>文件,需要<code>autoreconf</code>生成<code>configure</code>文件。妈蛋,<code>INSTALL</code>多写一句<code>autoreconf -ivf</code>会死吗?</p>
</div>
<footer>
<a rel="full-article" href="/blog/2016/11/01/pkcs11-helper-build/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2016/10/31/Western-Digital-problems/">西部数据硬盘Load_Cycle_Count增长过快的问题</a></h1>
<p class="meta">
<time datetime="2016-10-31T08:39:21+00:00" pubdate data-updated="true">Oct 31<span>st</span>, 2016</time>
| <a href="/blog/2016/10/31/Western-Digital-problems/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>关键词:硬盘 西部数据 希捷 东芝 </p>
<p>我有一块西部数据的3.5寸硬盘,同时有一块笔记本淘汰下来的东芝的2.5寸硬盘,关键数据用这两个硬盘进行备份。最近东芝的硬盘偶尔读取失败,所以寻思再买一块硬盘替代东芝的这块硬盘。于是在网上搜索到底是买西部数据还是希捷,还是东芝的硬盘。搜索发现了西部数据硬盘曾经有“Load_Cycle_Count”的问题:<a href="https://blog.vandenbrand.org/2012/04/05/western-digital-green-caviar-wd10eads-and-hdparm-problems/">Western Digital Green Caviar WD10EADS and hdparm problems</a>
,一看我用着的这块西部数据硬盘恰恰中招了,并且寿命快终结了。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2016/10/31/Western-Digital-problems/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2016/10/19/compile-stunnel-from-source/">编译stunnel</a></h1>
<p class="meta">
<time datetime="2016-10-19T09:21:51+00:00" pubdate data-updated="true">Oct 19<span>th</span>, 2016</time>
| <a href="/blog/2016/10/19/compile-stunnel-from-source/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>现在最新的stunnel是v5.36,而很多平台都还是<code>stunnel4</code></p>
</div>
<footer>
<a rel="full-article" href="/blog/2016/10/19/compile-stunnel-from-source/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2016/10/18/stunnel-verify-config/">stunnel verify选项配置</a></h1>
<p class="meta">
<time datetime="2016-10-18T09:12:59+00:00" pubdate data-updated="true">Oct 18<span>th</span>, 2016</time>
| <a href="/blog/2016/10/18/stunnel-verify-config/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>verify配置认证方式,取值0 1 2 3 4。</p>
<p>0 - request and ignore peer cert<br />
1 - only validate peer cert if present<br />
2 - always require a valid peer cert<br />
3 - verify peer with locally installed cert<br />
4 - ignore CA chain and only verify peer cert </p>
</div>
<footer>
<a rel="full-article" href="/blog/2016/10/18/stunnel-verify-config/">Read on →</a>
</footer>
</article>
<div class="pagination">
<a class="prev" href="/blog/page/2/">← Older</a>
<a href="/blog/archives">Blog Archives</a>
</div>
</div>
<aside class="sidebar">
<section>
<h1>Categories</h1>
<ul id="category-list"><li><a href='/blog/categories/android'>android (2)</a></li><li><a href='/blog/categories/apple'>apple (1)</a></li><li><a href='/blog/categories/art'>art (2)</a></li><li><a href='/blog/categories/base64'>base64 (1)</a></li><li><a href='/blog/categories/book'>book (1)</a></li><li><a href='/blog/categories/bugfix'>bugfix (3)</a></li><li><a href='/blog/categories/bullshit'>bullshit (1)</a></li><li><a href='/blog/categories/censor'>censor (1)</a></li><li><a href='/blog/categories/cowproxy'>cowproxy (1)</a></li><li><a href='/blog/categories/cryptography'>cryptography (1)</a></li><li><a href='/blog/categories/ddns'>DDNS (1)</a></li><li><a href='/blog/categories/dnsmasq'>dnsmasq (1)</a></li><li><a href='/blog/categories/english'>english (1)</a></li><li><a href='/blog/categories/flashfire'>flashfire (1)</a></li><li><a href='/blog/categories/flask-twip'>flask_twip (2)</a></li><li><a href='/blog/categories/flickr'>flickr (1)</a></li><li><a href='/blog/categories/foursquare'>foursquare (1)</a></li><li><a href='/blog/categories/funny'>funny (1)</a></li><li><a href='/blog/categories/git'>git (4)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/golang'>golang (2)</a></li><li><a href='/blog/categories/heroku'>heroku (1)</a></li><li><a href='/blog/categories/hpv'>HPV (1)</a></li><li><a href='/blog/categories/iptables'>iptables (1)</a></li><li><a href='/blog/categories/kernel'>kernel (4)</a></li><li><a href='/blog/categories/libc'>libc (2)</a></li><li><a href='/blog/categories/life'>life (16)</a></li><li><a href='/blog/categories/linux'>linux (16)</a></li><li><a href='/blog/categories/markdown'>markdown (1)</a></li><li><a href='/blog/categories/math'>math (1)</a></li><li><a href='/blog/categories/mathjax'>mathjax (1)</a></li><li><a href='/blog/categories/movie'>movie (1)</a></li><li><a href='/blog/categories/network'>network (5)</a></li><li><a href='/blog/categories/octopress'>octopress (8)</a></li><li><a href='/blog/categories/owncloud'>owncloud (1)</a></li><li><a href='/blog/categories/proxy'>proxy (6)</a></li><li><a href='/blog/categories/pthread'>pthread (2)</a></li><li><a href='/blog/categories/python'>python (1)</a></li><li><a href='/blog/categories/raspberrypi'>raspberrypi (8)</a></li><li><a href='/blog/categories/raspbian'>raspbian (1)</a></li><li><a href='/blog/categories/shadowsocks'>shadowsocks (1)</a></li><li><a href='/blog/categories/sns'>SNS (1)</a></li><li><a href='/blog/categories/society'>society (5)</a></li><li><a href='/blog/categories/software'>software (1)</a></li><li><a href='/blog/categories/ssh'>ssh (2)</a></li><li><a href='/blog/categories/stunnel'>stunnel (4)</a></li><li><a href='/blog/categories/tech'>tech (22)</a></li><li><a href='/blog/categories/test'>test (2)</a></li><li><a href='/blog/categories/transgene'>transgene (1)</a></li><li><a href='/blog/categories/twip'>twip (1)</a></li><li><a href='/blog/categories/twitter'>twitter (4)</a></li><li><a href='/blog/categories/vpn'>vpn (1)</a></li><li><a href='/blog/categories/wpad'>WPAD (1)</a></li></ul>
</section>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright © 2017 - xixitalk -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
var disqus_shortname = 'gitblog';
var disqus_script = 'count.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
</body>
</html>