Не могу получить доступ к нескольким конечным точкам с помощью apt update или wireguard, но может использовать netcat для связи с ними.
У меня возникла проблема, когда мое устройство Ubuntu не может подключиться к нескольким конечным точкам, когда я пытаюсь это сделать.
Устройство Jetson Nano
Вот мой вывод при запуске
sudo apt update
:
Ign:1 https://repo.download.nvidia.com/jetson/common r32.6 InRelease
Ign:2 https://repo.download.nvidia.com/jetson/t210 r32.6 InRelease
Err:3 https://repo.download.nvidia.com/jetson/common r32.6 Release
Could not handshake: Error in the pull function. [IP: 104.77.174.144 443]
Err:4 https://repo.download.nvidia.com/jetson/t210 r32.6 Release
Could not handshake: Error in the pull function. [IP: 104.77.174.144 443]
Err:5 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Connection failed [IP: 91.189.88.152 80]
Err:6 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease
Connection failed [IP: 91.189.88.152 80]
Err:7 http://ppa.launchpad.net/amanusk/python-s-tui/ubuntu bionic InRelease
Connection failed [IP: 91.189.95.85 80]
Err:8 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
Connection failed [IP: 91.189.88.152 80]
Err:9 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease
Connection failed [IP: 91.189.88.152 80]
Reading package lists... Done
E: The repository 'https://repo.download.nvidia.com/jetson/common r32.6 Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://repo.download.nvidia.com/jetson/t210 r32.6 Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Но когда я запускаю netcat на одних и тех же адресах:
jetson@jetson:~$ nc -z -v 91.189.88.152 80
Connection to 91.189.88.152 80 port [tcp/http] succeeded!
То же самое относится и к моему проводному соединению. Я не могу подключиться к своей конечной точке с помощью wireguardm, но я могу с помощью netcat, например:
jetson@jetson:~$ nc -z -v -u my.wireguard.endpoint 5555
Connection to my.wireguard.endpoint 5555 port [udp/rplay] succeeded!
В журналах wireguard ему никогда не удается достичь конечной точки:
[Fri Nov 26 11:46:09 2021] wireguard: my_vpn: Sending handshake initiation to peer 3 (my.wireguard.endpoint:5555)
[Fri Nov 26 11:46:14 2021] wireguard: my_vpn: Handshake for peer 3 (my.wireguard.endpoint:5555) did not complete after 5 seconds, retrying (try 15)
[Fri Nov 26 11:46:14 2021] wireguard: my_vpn: Sending handshake initiation to peer 3 (my.wireguard.endpoint:5555)
[Fri Nov 26 11:46:19 2021] wireguard: my_vpn: Handshake for peer 3 (my.wireguard.endpoint:5555) did not complete after 5 seconds, retrying (try 16)
[Fri Nov 26 11:46:19 2021] wireguard: my_vpn: Sending handshake initiation to peer 3 (my.wireguard.endpoint:5555)
[Fri Nov 26 11:46:25 2021] wireguard: my_vpn: Handshake for peer 3 (my.wireguard.endpoint:5555) did not complete after 5 seconds, retrying (try 17)
[Fri Nov 26 11:46:25 2021] wireguard: my_vpn: Sending handshake initiation to peer 3 (my.wireguard.endpoint:5555)
[Fri Nov 26 11:46:30 2021] wireguard: my_vpn: Handshake for peer 3 (my.wireguard.endpoint:5555) did not complete after 5 seconds, retrying (try 18)
[Fri Nov 26 11:46:30 2021] wireguard: my_vpn: Sending handshake initiation to peer 3 (my.wireguard.endpoint:5555)
[Fri Nov 26 11:46:35 2021] wireguard: my_vpn: Handshake for peer 3 (my.wireguard.endpoint:5555) did not complete after 5 seconds, retrying (try 19)
[Fri Nov 26 11:46:35 2021] wireguard: my_vpn: Sending handshake initiation to peer 3 (my.wireguard.endpoint:5555)
[Fri Nov 26 11:46:41 2021] wireguard: my_vpn: Handshake for peer 3 (my.wireguard.endpoint:5555) did not complete after 5 seconds, retrying (try 20)
В целом на устройстве я могу правильно получить доступ к Интернету:
jetman@camera:~$ ping google.com
PING google.com (142.250.70.206) 56(84) bytes of data.
64 bytes from google.com (142.250.70.206): icmp_seq=1 ttl=58 time=36.9 ms
64 bytes from google.com (142.250.70.206): icmp_seq=2 ttl=58 time=17.9 ms
Как это может произойти? Ведет ли себя netcat иначе, чем обычное интернет-соединение, которое он может пройти, но никакое другое?