DreamTunnel

开发背景

在开发过程中,免不了要接收第三方通知。

比较典型的,就是在做电子商务时的各种支付网关的推送通知,还有接收微信的推送通知。

接收通知需要公网地址,但是目前的民用网络,是没有公网地址的,这给调试开发带来了很多麻烦。

一些下载软件,例如著名的BT下载,eMule下载等P2P下载工具,也是需要公网地址才能达到最高速,传统方法是通过UPnP来做端口映射。以前的电信是有公网地址的,通过UPnP是可以解决问题,但是现在电信也不分配公网地址了,所以这种方法也随之失效了。迅雷也通过中转服务器,离线服务器等来实现高速下载的。

细心的读者可能发现了,这个项目就是做DreamWeixin之前所必须解决的首要问题。

可以说,没有DreamTunnel就没有DreamWeixin。

数据转发

由于多年的专业路由器、可编程式路由器的操作经验,使我对网络有一定的了解。

项目的关键,就在于数据的转发,也类似于路由器的NAT操作(两种NAT方式这里不讨论)。

实际操作上还是比较复杂的。

而主要原因,就在于路由器的NAT操作是在内网的,路由器可以直接访问到主机,直接做转发还是很方便的。但是我利用的是境外服务器,服务器不在内网,远在美国,甚至还要通过电信→电信内网→路由器,经过重重路障才可以到达目标主机。

通讯加密

因为众所周知的原因,境外网络数据是经过审核的。

虽然我并不发布或接收敏感信息,但数据一多,难免会被误判。

一旦被判断为敏感信息,轻则中断连接几分钟到几小时,重则直接封IP。

为避免这些不必要的麻烦,服务端与客户端的通讯是全程加密的。

项目演示

CS架构的项目,且属于纯命令行项目,不方便在线演示,可现场演示。

286 评论

  1. What i do not understood is in truth how you are now not actually much more smartly-liked than you may be now. You’re so intelligent. You already know thus considerably in terms of this subject, made me in my opinion consider it from so many numerous angles. Its like women and men are not fascinated except it?¦s something to accomplish with Lady gaga! Your personal stuffs excellent. At all times deal with it up!

  2. [url=https://toradolrx.com/]buy toradol[/url] [url=https://iventolin.com/]can i buy ventolin online[/url] [url=https://prednisonestrd.com/]prednisone[/url] [url=https://tadalafilcls.com/]tadalafil over the counter canada[/url] [url=https://levitrav.com/]levitra 20 mg[/url] [url=https://amoxicillinlab.com/]amoxicillin buy online[/url] [url=https://advairdisk.com/]advair generic[/url]

  3. [url=http://robaxinmed.com/]generic robaxin[/url] [url=http://propeciaph.com/]buy propecia india[/url] [url=http://ampicillin24.com/]ampicillin 500 mg[/url] [url=http://anafranilmed.com/]anafranil price[/url] [url=http://trazodonemed.com/]trazodone drug[/url] [url=http://seroquel365.com/]seroquel 400[/url] [url=http://levitrav.com/]levitra 20 mg[/url]

  4. [url=http://anafranilmed.com/]anafranil drug[/url] [url=http://cymbaltarx.com/]cymbalta medication coupon[/url] [url=http://prednisonestrd.com/]where can i buy prednisone[/url] [url=http://advairdisk.com/]advair diskus cost in canada[/url] [url=http://indocinrx.com/]indocin tablets[/url] [url=http://cialissr.com/]cialis cheapest price canada[/url] [url=http://amoxicillinzt.com/]amoxicillin 500mg[/url] [url=http://seroquel365.com/]seroquel xr bipolar[/url]

  5. [url=https://ciproflxn.com/]cipro 500[/url] [url=https://furosemide.us.org/]furosemide 80 mg tablet[/url] [url=https://kamagra360.com/]kamagra tablets online[/url] [url=https://gabapentin.us.com/]neurontin 800 mg tablets best price[/url] [url=https://prozac.us.com/]prozac buy[/url] [url=https://celebrex.us.com/]celebrex canada[/url] [url=https://zofran365.com/]zofran medicine[/url] [url=https://plavix.us.com/]buy plavix[/url] [url=https://robaxinrx.com/]robaxin pill[/url] [url=https://erythromycin24.com/]can you buy erythromycin over the counter uk[/url]

  6. [url=http://furosemide.us.org/]cost of 50mg furosemide tablets[/url] [url=http://lisinoprilm.com/]lisinopril 10[/url] [url=http://amoxiltabs.com/]amoxil 500mg[/url] [url=http://ciproflxn.com/]cipro medication[/url] [url=http://sumycin365.com/]sumycin online[/url] [url=http://robaxinrx.com/]robaxin pill[/url] [url=http://zoviraxav.com/]zovirax online[/url] [url=http://triamterene.us.com/]triamterene hctz 37.5-25 mg[/url] [url=http://inderal.us.com/]inderal generic price[/url] [url=http://gabapentin.us.com/]neurontin 100 mg[/url]

  7. Friends call him Terrance Cage and he enjoys it. Doing inside style and design is anything she really enjoys carrying out. He is at the moment a creation and distribution officer but he strategies on changing it. California is the location I’ve usually been residing but I will have to shift in a yr or two.

  8. The identify of the author is Jere and he absolutely digs that name. Interviewing is wherever my major revenue arrives from but the advertising never will occur. Years in the earlier we moved to Louisiana. Doing magic is what she enjoys carrying out.

  9. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your weblog? My website is in the exact same niche as yours and my users would truly benefit from a lot of the information you provide here. Please let me know if this ok with you. Many thanks!

发表评论

电子邮件地址不会被公开。