web-dev-qa-db-ja.com

Mac OSX10.12.2でのTINCの設定に関する問題

私はいくつかのLinuxボックスにTINCをセットアップしていて、それらはうまく機能しています。

  • linux001(static ip vps-10.0.0.1)
  • macosx002(linux001-10.0.0.2に接続します)
  • linux050(linux001-10.0.0.50に接続します)

Linux001に接続されているように見えるが通信できないOSX10.12.2のMacもあります。 tinc-vpn.orgのこのガイド で始めることで、その時点に到達しました。ガイドに従う過程で、/ dev/tun0または/ dev/tap0がないという問題に遭遇しました...かなりのグーグルの後、 tuntaposx onのインストール可能なパッケージを見つけました同じパッケージのバージョンをインストールしようとしたときにhomebrewとmacportsが失敗したため、sourceforge。

したがって、現在macosx002はlinux001に接続しているようです

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

ただし、linux001からmacosx002にpingを実行しようとすると、次のエラーが発生します。

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

他の方向にpingを実行しようとすると、次のエラーが発生します。

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からパッケージをインストールする場合にのみ... macports、homebrew、またはmake installを介してパッケージをインストールする場合... tun0とtap0は存在しません。

どんな助けでもありがたいです...私が最初に自分で答えを見つけることになった場合、私はそれをここに投稿します。

1

[〜#〜] this [〜#〜] 素晴らしい投稿を読んだ後、tinc-upファイルを次のように変更しました。

ifconfig tun0 inet 10.0.0.2 10.0.0.1 up netmask 255.255.255.0

これで、.1と.2との間でpingとSSHを実行できます。

0