Compare commits

..

47 Commits

Author SHA1 Message Date
wangyu-
28e182cea4 changed -h page 2017-11-18 09:51:50 -06:00
wangyu-
65cacab30a Merge branch 'master' of https://github.com/wangyu-/udp2raw-tunnel 2017-11-18 09:50:30 -06:00
wangyu-
fb330f3700 new option mtu-warn 2017-11-18 09:50:23 -06:00
wangyu-
bf9a98edab Update README.zh-cn.md 2017-11-18 02:11:46 -08:00
wangyu-
8cee48bd69 Update README.zh-cn.md 2017-11-18 02:10:59 -08:00
wangyu-
6f2a286168 Merge branch 'master' of https://github.com/wangyu-/udp2raw-tunnel 2017-11-17 02:17:53 -06:00
wangyu-
2610760b61 increased conv_timeout to 180s 2017-11-17 02:17:41 -06:00
wangyu-
1988bff9ba Update README.zh-cn.md 2017-11-14 21:20:02 -08:00
wangyu-
2a16a198b3 Add files via upload 2017-11-15 13:15:21 +08:00
wangyu-
400e148bce Delete udp2rawopenvpn.PNG 2017-11-14 21:14:49 -08:00
wangyu-
58eae7736a Update README.zh-cn.md 2017-11-11 14:35:08 -08:00
wangyu-
9dc2e5a391 trival 2017-11-11 01:58:21 -06:00
wangyu-
e41accc38c help page 2017-11-11 01:46:58 -06:00
wangyu-
1628c15fcb new option hb-len 2017-11-11 01:15:50 -06:00
wangyu-
79855b445d Merge branch 'master' of https://github.com/wangyu-/udp2raw-tunnel 2017-11-11 01:07:57 -06:00
wangyu-
9e010c7f97 improve heartbeat 2017-11-11 01:07:28 -06:00
wangyu-
dce81b3fbf Update README.md 2017-11-09 17:02:02 -08:00
wangyu-
24310edd35 tuned parameter 2017-11-09 02:37:26 -06:00
wangyu-
2e1d4f001d Merge branch 'master' of https://github.com/wangyu-/udp2raw-tunnel 2017-11-09 02:20:44 -06:00
wangyu-
ae82925a74 tune parameter 2017-11-09 02:18:22 -06:00
wangyu-
f953d6d702 Update README.zh-cn.md 2017-11-08 16:03:34 -08:00
wangyu-
9e522f79b8 Update README.zh-cn.md 2017-11-08 15:59:04 -08:00
wangyu-
72c6240716 Update README.md 2017-11-08 15:55:41 -08:00
wangyu-
aac9453518 new option hb-mode 2017-11-07 01:07:32 -06:00
wangyu-
b24784b26c changed parameter 2017-11-06 03:15:05 -06:00
wangyu-
5660eed366 increase heart beat length 2017-11-06 03:00:16 -06:00
wangyu-
4c92c29948 added version.txt into makefile 2017-11-03 01:04:59 -05:00
wangyu-
cadb142455 added missing files 2017-11-02 19:49:04 -05:00
wangyu-
fcb418f5ea Merge branch 'master' of https://github.com/wangyu-/udp2raw-tunnel 2017-11-01 23:01:23 -05:00
wangyu-
63eb7f1f7f fixed bug of last few commit, and fixed a bug of bind error 2017-11-01 08:25:50 -05:00
wangyu-
66b2bb87c5 Update README.md 2017-10-30 20:25:17 -07:00
wangyu-
6b27f8624d Update README.md 2017-10-30 20:24:53 -07:00
wangyu-
ce7b89f6b6 Update README.md 2017-10-30 20:22:42 -07:00
wangyu-
a0bfa86699 Update README.zh-cn.md 2017-10-30 08:42:38 -07:00
wangyu-
e332cabfed Update README.zh-cn.md 2017-10-30 08:42:21 -07:00
wangyu-
9798bf496a Update README.zh-cn.md 2017-10-30 08:41:54 -07:00
wangyu-
7aa4b8745e trival 2017-10-30 08:59:47 -05:00
wangyu-
ea6a41ebb3 more fix 2017-10-30 08:37:53 -05:00
wangyu-
77ba1161f5 fix timer of fd64 2017-10-30 08:19:21 -05:00
wangyu-
7858c4d832 fixed some bug of last commit 2017-10-30 08:02:23 -05:00
wangyu-
71152ffbe3 added an assert 2017-10-30 07:29:40 -05:00
wangyu-
b06e979dc8 Merge branch 'master' of https://github.com/wangyu-/udp2raw-tunnel 2017-10-30 07:24:26 -05:00
wangyu-
5300f98b0a Update README.md 2017-10-25 21:10:26 -07:00
wangyu-
063d133463 Update README.md 2017-10-25 21:09:59 -07:00
wangyu-
4c88df9c0e Add files via upload 2017-10-26 12:09:09 +08:00
wangyu-
52cb20ec20 Update README.md 2017-10-25 21:04:18 -07:00
wangyu-
7aede9edd0 Update README.md 2017-10-25 21:00:10 -07:00
15 changed files with 13 additions and 28 deletions

View File

@@ -1,6 +0,0 @@
For English speaking user
https://github.com/wangyu-/UDPspeeder/wiki/Issue-Guide
中文用户请看:
https://github.com/wangyu-/UDPspeeder/wiki/发Issue前请看
(否则Issue可能被忽略或被直接关掉)

View File

@@ -3,9 +3,11 @@
A Tunnel which turns UDP Traffic into Encrypted FakeTCP/UDP/ICMP Traffic by using Raw Socket, helps you Bypass UDP FireWalls(or Unstable UDP Environment). It can defend Replay-Attack and supports Multiplexing. It also acts as a Connection Stabilizer.
When used alone,udp2raw tunnels only UDP traffic. Nevertheless,if you used udp2raw + any UDP-based VPN together,you can tunnel any traffic(include TCP/UDP/ICMP),currently OpenVPN/L2TP/ShadowVPN and [tinyFecVPN](https://github.com/wangyu-/tinyFecVPN) are confirmed to be supported.
![image0](images/image0.PNG)
When used alone,udp2raw tunnels only UDP traffic. Nevertheless,if you used udp2raw + any UDP-based VPN together,you can tunnel any traffic(include TCP/UDP/ICMP),currently OpenVPN/L2TP/ShadowVPN and [tinyFecVPN](https://github.com/wangyu-/tinyFecVPN) are confirmed to be supported.
or
![image_vpn](images/udp2rawopenvpn.PNG)

View File

@@ -16,7 +16,7 @@ u64_t get_current_time()
{
timespec tmp_time;
clock_gettime(CLOCK_MONOTONIC, &tmp_time);
return ((u64_t)tmp_time.tv_sec)*1000llu+((u64_t)tmp_time.tv_nsec)/(1000*1000llu);
return tmp_time.tv_sec*1000+tmp_time.tv_nsec/(1000*1000l);
}
u64_t pack_u64(u32_t a,u32_t b)

View File

@@ -1,5 +1,5 @@
# Udp2raw-tunnel
![image2](/images/image0.PNG)
![image2](/images/image2.PNG)
udp2raw tunnel通过raw socket给UDP包加上TCP或ICMP header进而绕过UDP屏蔽或QoS或在UDP不稳定的环境下提升稳定性。可以有效防止在使用kcptun或者finalspeed的情况下udp端口被运营商限速。
支持心跳保活、自动重连,重连后会恢复上次连接,在底层掉线的情况下可以保持上层不掉线。同时有加密、防重放攻击、信道复用的功能。
@@ -20,17 +20,7 @@ https://github.com/wangyu-/UDPspeeder
# 支持的平台
Linux主机有root权限。可以是PC、android手机/平板、openwrt路由器、树莓派。主机上最好安装了iptables命令(apt/yum很容易安装)。
Release中提供了`amd64``x86``arm``mips_be``mips_le`的预编译binary.
##### 对于windows和mac用户
在虚拟机中可以稳定使用udp2raw跑在Linux里其他应用照常跑在window里确保虚拟机网卡工作在桥接模式。可以使用[这个](https://github.com/wangyu-/udp2raw-tunnel/releases/download/20171108.0/lede-17.01.2-x86_virtual_machine_image.zip)虚拟机镜像大小只有7.5mb免去在虚拟机里装系统的麻烦虚拟机自带ssh server可以scp拷贝文件可以ssh进去可以复制粘贴root密码123456。
如果你的网络不允许桥接也是有办法用的具体方法请看wiki。
##### 对于ios和游戏主机用户
可以把udp2raw运行在局域网的其他机器上。最好的办法是买个能刷OpenWrt/LEDE/梅林的路由器把udp2raw运行在路由器上。
对于windows和mac用户在虚拟机中可以稳定使用udp2raw跑在Linux里其他应用照常跑在window里确保虚拟机网卡工作在桥接模式。可以使用[这个](https://github.com/wangyu-/udp2raw-tunnel/releases/download/20171108.0/lede-17.01.2-x86_virtual_machine_image.zip)虚拟机镜像大小只有7.5mb免去在虚拟机里装系统的麻烦虚拟机自带ssh server可以scp拷贝文件可以ssh进去可以复制粘贴root密码123456。
# 功能特性
### 把udp流量伪装成tcp /icmp
@@ -60,7 +50,7 @@ NAT 穿透 tcp icmp udp模式都支持nat穿透。
支持Openvz配合finalspeed使用可以在openvz上用tcp模式的finalspeed
支持Openwrt没有编译依赖容易编译到任何平台上。
支持Openwrt没有编译依赖容易编译到任何平台上。release中提供了ar71xx版本的binary
epoll实现高并发除了回收过期连接外所有操作的时间复杂度都跟连接数无关。回收过期连接的操做也是柔和进行的不会因为消耗太多cpu时间造成延迟抖动。

View File

@@ -1 +0,0 @@

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

View File

@@ -1196,13 +1196,13 @@ int client_event_loop()
if (nfds < 0) { //allow zero
if(errno==EINTR )
{
mylog(log_info,"epoll interrupted by signal,continue\n");
mylog(log_info,"epoll interrupted by signal\n");
//close(fifo_fd);
//myexit(0);
myexit(0);
}
else
{
mylog(log_fatal,"epoll_wait return %d,%s\n", nfds,strerror(errno));
mylog(log_fatal,"epoll_wait return %d\n", nfds);
myexit(-1);
}
}
@@ -1440,12 +1440,12 @@ int server_event_loop()
if (nfds < 0) { //allow zero
if(errno==EINTR )
{
mylog(log_info,"epoll interrupted by signal,continue\n");
//myexit(0);
mylog(log_info,"epoll interrupted by signal\n");
myexit(0);
}
else
{
mylog(log_fatal,"epoll_wait return %d,%s\n", nfds,strerror(errno));
mylog(log_fatal,"epoll_wait return %d\n", nfds);
myexit(-1);
}
}