使用碘的DNS到TCP隧道

时间:2019-02-25 11:43:07

标签: tcp dns tunnel http-tunneling

我正在尝试在服务器和客户端上都使用iodine通过DNS协议来隧道TCP通信。 这是我的主机名配置:

t1              IN      NS      t1ns.mydomain.com. 
t1ns            IN      A       SERVER_IP

碘服务器:

sudo iodined -f -c -P password 10.0.1.1 t1.mydomain.com &

当我使用碘客户端进行连接时:

sudo iodine -f -P password t1.mydomain.com &

输出:

    [2] 3379
root@elhadj-Lenovo-G50-80:/home/elhadj# Opened dns1
Opened IPv4 UDP socket
Sending DNS queries for t1.tewsila.com to 127.0.0.53
Autodetecting DNS query type (use -T to override).iodine: Got NOTIMP as reply: server does not support our request
...iodine: Got NOTIMP as reply: server does not support our request
..iodine: Got NOTIMP as reply: server does not support our request
.
Using DNS type TXT queries
Version ok, both using protocol v 0x00000502. You are user #1
Setting IP of dns1 to 10.0.1.3
Setting MTU of dns1 to 1130
Server tunnel IP is 10.0.1.1
Testing raw UDP data to the server (skip with -r)
Server is at 172.31.17.74, trying raw login: ....failed
Using EDNS0 extension
Switching upstream to codec Base128
Server switched upstream to codec Base128
Autodetecting downstream codec (use -O to override)
Switching downstream to codec Raw
Server switched downstream to codec Raw
Switching to lazy mode for low-latency
Server switched to lazy mode
Autoprobing max downstream fragment size... (skip with -m fragsize)
..768 ok.. .1152 ok.. ...1344 not ok.. ...1248 not ok.. ...1200 not ok.. 1176 ok.. ...1188 not ok.. will use 1176-2=1174
Setting downstream fragment size to max 1174...
Connection setup complete, transmitting data.

我也遇到这个错误:

iodine: Got SERVFAIL as reply: server failed or recursion timeout

我可以通过ssh连接到服务器:

ssh -i test.pem ubuntu@10.0.1.1 -D 5000

这有效:

curl --socks5-hostname 127.0.0.1:5000 http://httpbin.org/ip

但是没有其他工作。

0 个答案:

没有答案