Mac OSX 10.12.2에서 TINC 설정 문제

Mac OSX 10.12.2에서 TINC 설정 문제

나는 몇 개의 Linux 상자에 TINC를 설정했는데 훌륭하게 작동하고 있습니다.

  • linux001(고정 IP VPN - 10.0.0.1)
  • macosx002(linux001 - 10.0.0.2에 연결)
  • linux050(linux001 - 10.0.0.50에 연결)

또한 linux001에 연결된 것처럼 보이지만 통신할 수 없는 OSX 10.12.2가 설치된 Mac이 있습니다. 나는 그것부터 시작해서 그 지점에 이르렀다.Tinc-vpn.org의 이 가이드. 가이드를 따르는 과정에서 /dev/tun0 또는 /dev/tap0이 없는 문제에 직면했습니다. 인터넷 검색을 꽤 많이 한 후에 설치 가능한 패키지를 찾았습니다.툰타포스동일한 패키지 버전을 설치하려고 할 때 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

쭉 읽어본 후이것tinc-up멋진 게시물 입니다. 파일을 다음으로 변경했습니다 .

ifconfig tun0 inet 10.0.0.2 10.0.0.1 up netmask 255.255.255.0

이제 .1과 .2 간에 ping과 SSH를 수행할 수 있습니다.

관련 정보