因此,我有一个具有 dns0 网络接口的 vps。(我使用 iodine 将我的 vps 用作客户端,将另一个 vps 用作 dns 隧道的服务器)。当我打开 Firefox 并浏览互联网时,Wireshark 会显示 Firefox 中的那些数据包是 dns。但是,当我尝试使用 vps(客户端)通过其端口代理我的互联网或创建 vpn 时,该数据包显示为普通的 tcp/udp 数据包,而不是 dns。
$ip 路由
default via 14.128.14.1 dev ens18 proto static
10.0.0.0/27 dev dns0 proto kernel scope link src 10.0.0.2
10.0.0.1 via 14.128.14.1 dev ens18
10.8.0.0/24 dev tun0 proto kernel scope link src 10.8.0.1
14.128.14.0/24 dev ens18 proto kernel scope link src 14.128.14.159
$ifconfig
dns0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1130
inet 10.0.0.2 netmask 255.255.255.224 destination 10.0.0.2
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1 bytes 48 (48.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens18: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet $myIp netmask 255.255.255.0 broadcast 14.128.14.255
inet6 fe80::b83a:b1ff:fec2:5f44 prefixlen 64 scopeid 0x20<link>
ether ba:3a:b1:c2:5f:44 txqueuelen 1000 (Ethernet)
RX packets 1940754 bytes 183869209 (183.8 MB)
RX errors 0 dropped 926 overruns 0 frame 0
TX packets 91794 bytes 79877589 (79.8 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1836 bytes 228911 (228.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1836 bytes 228911 (228.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.8.0.1 netmask 255.255.255.0 destination 10.8.0.1
inet6 fe80::5c11:635b:444b:d9c4 prefixlen 64 scopeid 0x20<link>
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 8586 bytes 1515134 (1.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16047 bytes 15462296 (15.4 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
那么,有没有办法通过我的 vps 隧道传输我的互联网,从而显示我发送的数据包是 dns,而不是 tcp 或 udp?(我使用 http 上的 dns,但如果我通过特定端口隧道传输互联网,则此方法不起作用)