首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Mac 10.12.2上设置TINC的问题

在Mac 10.12.2上设置TINC的问题
EN

Server Fault用户
提问于 2017-01-22 23:31:35
回答 1查看 1.9K关注 0票数 2

我在几个linux机顶盒上安装了TINC,它们工作得很好。

  • linux001 (静态ip 10.0.0.1)
  • macosx002 (连接到linux001 - 10.0.0.2)
  • linux050 (连接到linux001 - 10.0.0.50)

我还有一个带有OSX10.12.2的Mac,它似乎与linux001相连,但无法通信。我从本指南载于tinc-vpn.org.开始就把它说到了点子上。在遵循指南的过程中,我遇到了一个问题,其中没有/dev/tun0或/dev/tap0 0.在谷歌了相当一段时间后,我在sourceforge上找到并安装了绒毡层包,因为当尝试安装相同软件包的版本时,国产和macport都失败了。

因此,目前macosx002似乎连接到linux001。

代码语言:javascript
复制
Sending PING to linux001 (x.x.x.x port 655): 8
Sending 2 bytes of metadata to linux001 (x.x.x.x port 655)
Flushing 2 bytes to linux001 (x.x.x.x port 655)
Got PING from linux001 (x.x.x.x port 655): 8
Sending PONG to linux001 (x.x.x.x port 655): 9
Sending 2 bytes of metadata to linux001 (x.x.x.x port 655)
Flushing 2 bytes to linux001 (x.x.x.x port 655)
Got PONG from linux001 (x.x.x.x port 655): 9

但是,当我试图从macosx002中ping linux001时,我得到了以下错误:

代码语言:javascript
复制
Error while writing to Generic BSD tun device /dev/tun0: Input/output error
Error while writing to Generic BSD tun device /dev/tun0: Input/output error
Error while writing to Generic BSD tun device /dev/tun0: Input/output error
Error while writing to Generic BSD tun device /dev/tun0: Input/output error

如果我试图向另一个方向切换,则会出现以下错误:

代码语言:javascript
复制
user-mac-mini:~ user$ ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
^C
--- 10.0.0.1 ping statistics ---
6 packets transmitted, 0 packets received, 100.0% packet loss

这让我相信tincd实际上是把两者联系在一起的..。但是在macosx002上路由到tun/tap有问题

如果我转到/dev/ tun0和tap0,实际上是存在的,但只在我从sourceforge安装软件包时.如果我通过macport,自制,或者安装.tun0和tap0不存在。

任何帮助都将不胜感激..。如果我最终第一次找到答案,我会在这里发布。

EN

回答 1

Server Fault用户

回答已采纳

发布于 2017-01-23 00:43:24

在阅读了出色的文章之后,我将tinc-up文件更改为:

代码语言:javascript
复制
ifconfig tun0 inet 10.0.0.2 10.0.0.1 up netmask 255.255.255.0

现在我可以在.1和.2之间进行ping和SSH操作。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/827890

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档