Chion82 / kcptun-raw

Kcptun with raw socket and fake TCP headers.
GNU General Public License v3.0
416 stars 101 forks source link

与ss不兼容? #8

Closed chestnutprog closed 6 years ago

chestnutprog commented 7 years ago

本身似乎是可以用的,映射一个普通端口比如http可以正常使用

[2017-04-21 10:28:51] Re-init fake TCP connection.
[2017-04-21 10:28:51] Trying port 39501
[2017-04-21 10:28:51] [trans_packet]Client sending SYN.
[2017-04-21 10:28:51] [trans_packet]Client replying ACK.
[2017-04-21 10:28:52] Request kcp init
[2017-04-21 10:28:52] kcp ready.
[2017-04-21 10:28:53] kcp ready.
[2017-04-21 10:29:22] New connection conv 1404.
[2017-04-21 10:29:22] Notifying remote new connection. conv=1404
[2017-04-21 10:29:22] New connection conv 1405.
[2017-04-21 10:29:22] Notifying remote new connection. conv=1405
[2017-04-21 10:29:23] Remote notifies closing. conv=1404
[2017-04-21 10:29:23] Closing connection. conv=1404
[2017-04-21 10:29:23] Remote notifies closing. conv=1405
[2017-04-21 10:29:23] Closing connection. conv=1405
[2017-04-21 10:29:23] New connection conv 1406.
[2017-04-21 10:29:23] Notifying remote new connection. conv=1406
[2017-04-21 10:29:23] Remote notifies closing. conv=1406
[2017-04-21 10:29:23] Closing connection. conv=1406
[2017-04-21 10:29:24] New connection conv 1407.
[2017-04-21 10:29:24] Notifying remote new connection. conv=1407
[2017-04-21 10:29:24] Remote notifies closing. conv=1407
[2017-04-21 10:29:24] Closing connection. conv=1407
[2017-04-21 10:29:29] New connection conv 1410.
[2017-04-21 10:29:29] Notifying remote new connection. conv=1410
[2017-04-21 10:29:29] Remote notifies closing. conv=1410
[2017-04-21 10:29:29] Closing connection. conv=1410
[2017-04-21 10:29:31] New connection conv 1411.
[2017-04-21 10:29:31] Notifying remote new connection. conv=1411
[2017-04-21 10:29:31] New connection conv 1412.
[2017-04-21 10:29:31] Notifying remote new connection. conv=1412
[2017-04-21 10:29:32] recv ends. conv=1412
[2017-04-21 10:29:32] Closing connection. conv=1412
[2017-04-21 10:29:32] Notifying remote closing. conv=1412
[2017-04-21 10:29:32] recv ends. conv=1411
[2017-04-21 10:29:07] [trans_packet]Server replying SYN+ACK.
[2017-04-21 10:29:08] Remote notifies re-init KCP connection.
[2017-04-21 10:29:38] Remote notifies new connection. conv=1404
[2017-04-21 10:29:38] Remote notifies new connection. conv=1405
[2017-04-21 10:29:39] recv ends. conv=1404
[2017-04-21 10:29:39] Closing connection. conv=1404
[2017-04-21 10:29:39] Notifying remote closing. conv=1404
[2017-04-21 10:29:39] recv ends. conv=1405
[2017-04-21 10:29:39] Closing connection. conv=1405
[2017-04-21 10:29:39] Notifying remote closing. conv=1405
[2017-04-21 10:29:39] Remote notifies new connection. conv=1406
[2017-04-21 10:29:39] recv ends. conv=1406
[2017-04-21 10:29:39] Closing connection. conv=1406
[2017-04-21 10:29:39] Notifying remote closing. conv=1406
[2017-04-21 10:29:40] Remote notifies new connection. conv=1407
[2017-04-21 10:29:40] recv ends. conv=1407
[2017-04-21 10:29:40] Closing connection. conv=1407
[2017-04-21 10:29:40] Notifying remote closing. conv=1407
[2017-04-21 10:29:45] Remote notifies new connection. conv=1410
[2017-04-21 10:29:45] recv ends. conv=1410
[2017-04-21 10:29:45] Closing connection. conv=1410
[2017-04-21 10:29:45] Notifying remote closing. conv=1410
[2017-04-21 10:29:47] Remote notifies new connection. conv=1411
[2017-04-21 10:29:47] Remote notifies new connection. conv=1412
[2017-04-21 10:29:48] Remote notifies closing. conv=1412
[2017-04-21 10:29:48] Closing connection. conv=1412
[2017-04-21 10:29:48] Remote notifies closing. conv=1411
[2017-04-21 10:29:48] Closing connection. conv=1411
[2017-04-21 10:29:51] Remote notifies new connection. conv=1414
[2017-04-21 10:29:52] recv ends. conv=1414
[2017-04-21 10:29:52] Closing connection. conv=1414
[2017-04-21 10:29:52] Notifying remote closing. conv=1414

但是一旦连接ss,服务器那边就完全收不到了。。。。。

[2017-04-21 10:37:17] [trans_packet]Server replying SYN+ACK.
[2017-04-21 10:37:18] Remote notifies re-init KCP connection.
[2017-04-21 10:37:01] Re-init fake TCP connection.
[2017-04-21 10:37:01] Trying port 34988
[2017-04-21 10:37:01] [trans_packet]Client sending SYN.
[2017-04-21 10:37:01] [trans_packet]Client replying ACK.
[2017-04-21 10:37:02] Request kcp init
[2017-04-21 10:37:02] kcp ready.
[2017-04-21 10:37:02] kcp ready.
[2017-04-21 10:37:03] kcp ready.
[2017-04-21 10:37:15] New connection conv 1708.
[2017-04-21 10:37:15] Notifying remote new connection. conv=1708
[2017-04-21 10:37:15] New connection conv 1710.
[2017-04-21 10:37:15] Notifying remote new connection. conv=1710
[2017-04-21 10:37:16] New connection conv 1713.
[2017-04-21 10:37:16] Notifying remote new connection. conv=1713
[2017-04-21 10:37:16] New connection conv 1714.
[2017-04-21 10:37:16] Notifying remote new connection. conv=1714
[2017-04-21 10:37:16] New connection conv 1716.
[2017-04-21 10:37:16] Notifying remote new connection. conv=1716
Chion82 commented 7 years ago

跟上层协议无关的。kcptun-raw换了端口之后,检查iptables是否正确配置?