Ошибка network device is not present

OpenWrt Forum

Loading

OpenWrt Forum

Loading

luci-proto-sstp
Add new interface with name VPNSSTP
SSTP server sstp.test.com
PAP/CHAP Username test
PAP/CHAP password test
connection is not established with an error:Network device is not present and no messages in system log.

If replace the domain name (sstp.test.com) with the ip address (195.201.63.43) then there is no error and connection is not established. If you add —cert-warn —tls-ext to the Extra sstpc options field (Tab Advanced settings), then there is still no connection.
Log:
Thu Jul 7 11:19:19 2022 user.notice URL-DEBUG: hotplug (iface): action=’ifdown’ interface=’VPNSSTP’
Thu Jul 7 11:20:20 2022 daemon.notice netifd: Interface ‘VPNSSTP’ is setting up now
Thu Jul 7 11:20:21 2022 daemon.notice netifd: VPNSSTP (7483): Command failed: Unknown error
Thu Jul 7 11:20:21 2022 local0.notice sstpc[7548]: Resolved 195.201.63.43 to 195.201.63.43
Thu Jul 7 11:20:23 2022 local0.notice sstpc[7548]: Connected to 195.201.63.43
Thu Jul 7 11:20:31 2022 daemon.notice netifd: VPNSSTP (7483): Command failed: Unknown error
Thu Jul 7 11:20:46 2022 local0.debug sstpc[7548]: Unrecoverable SSL error 0
Thu Jul 7 11:20:46 2022 local0.debug sstpc[7548]: HTTP handshake with server failed
Thu Jul 7 11:20:46 2022 daemon.notice netifd: VPNSSTP (7548): **Error: HTTP handshake with server failed, (-1)
Thu Jul 7 11:20:46 2022 daemon.notice netifd: Interface ‘VPNSSTP’ is now down

If run sstpc —cert-warn —tls-ext —user test —password test sstp.test.com —log-level 3, then everything works fine, but no data in luci.

Additional Information:

OpenWrt version information from system /etc/openwrt_release
ISTRIB_ID=’OpenWrt’
DISTRIB_RELEASE=’21.02.0-rc3′
DISTRIB_TARGET=’ramips/mt7621′


0

1

Жил был у меня роутер ASUS и хорошо дружил с 3G модемом, никаких проблем с их совместной работой не было. Но в роутере регулярно по непонятным причинам слетали все настройки к дефолтным и его приходилось очень часто перенастраивать, а альтернативных прошивок к нему не существует ни одной. Купил ему на замену Tp-Link на который есть альтернативные прошивки на любой вкус. Так вот остановился я на OpenWrt, подружил с новым роутером тот же модем, соединение подымается без проблем. Но есть один нюанс в работе, соединение держится когда 5 минут, когда 30 и более но обязательно обрывается и сразу же переподключается. 3G модем сеть ловит хорошо и на старом роутере соединение держалось часами если не сутками, а на Tp-Link больше чем полтора часа не видел чтобы держалось соединение. При сёрфинге обрывов и переподключений можно и не заметить, но при IP телефонии обрывы достают. Добавлю так же то что сам модем работает на USB удлинители около 8 метров по экранированной витой паре поэтому первым делом грешу на недостаток питания через работу в TP-Link (воткнуть напрямую модем в роутер без проводов для теста в моем случае крайне проблематично). Как то для эксперимента добавлял к своим 8 метрам кабеля еще 3 метра удлинителя и такой длинный кабель без проблем работал на старом роутере Asus. Когда добавил те же 3 метра кабеля к основному и воткнул в новый Tp-Link тот не увидел модем вовсе. И когда отслеживал что происходит в Luci на Tp-Link с подключением, то в момент обрыва вижу сообщение Ошибка: Network device is not present. Блок питания для Tp-Link 12 вольт и 1 ампер, ставил другой блок на 12 вольт и 1.5 ампера, такие же обрывы. Если дело в питании, может на OpenWrt можно как то рулить силу тока на USB порт? Или может дело не в питании? Кто чего скажет на этот счет? Можно конечно купить активный USB хаб, но для начала хотелось бы понять в чем проблема. Нашел вот здесь https://stackoverflow.com/questions/4702216/controlling-a-usb-power-supply-on… команду echo «0» > «/sys/bus/usb/devices/usbX/power/autosuspend» но подключившись к роутеру по SSH из под рута она у меня не выполняется.

Maintainer: Jason A. Donenfeld Jason@zx2c4.com / Kevin Darbyshire-Bryant ldir@darbyshire-bryant.me.uk
@zx2c4 @ldir-EDB0 @nbd168 @hauke @diizzyy @notgood

Environment: MediaTek MT7628AN ver:1 eco:2 / GL-MT300N-V2 / OpenWrt 22.03.2 r19803-9a599fee93 / LuCI openwrt-22.03 branch git-22.339.35241-4ca7a8d

Description:

Hello,

I want to build a WireGuard tunnel over the Yggdrasil overlay network. The Yggdrasil network is provided by the package yggdrasil. Yggdrasil successfully establishes its connection to the network over a WiFi Adhoc network. My endpoint is 218:4feb:a509:9db2:2b34:6e7e:e071:5dee. I have a route to this endpoint and I can ping it. The WireGuard tunnel works when the device is connected to the Internet via WAN. However, if I disconnect the WAN, the message Error: Network device is not present appears and it does not even try to establish the WG tunnel, although it is possible because the endpoint is reachable.

My expected behavior is that OpenWrt always tries to reach the endpoint if there is a route to it in the kernel routing table.

# ip r g 218:4feb:a509:9db2:2b34:6e7e:e071:5dee
218:4feb:a509:9db2:2b34:6e7e:e071:5dee from :: dev ygg0  src 21e:295a:a561:adb1:f834:9e20:1757:183a  metric 256 
# ping 218:4feb:a509:9db2:2b34:6e7e:e071:5dee
PING 218:4feb:a509:9db2:2b34:6e7e:e071:5dee (218:4feb:a509:9db2:2b34:6e7e:e071:5dee): 56 data bytes
64 bytes from 218:4feb:a509:9db2:2b34:6e7e:e071:5dee: seq=0 ttl=64 time=1347.156 ms
64 bytes from 218:4feb:a509:9db2:2b34:6e7e:e071:5dee: seq=1 ttl=64 time=384.689 ms
64 bytes from 218:4feb:a509:9db2:2b34:6e7e:e071:5dee: seq=2 ttl=64 time=72.068 ms
64 bytes from 218:4feb:a509:9db2:2b34:6e7e:e071:5dee: seq=3 ttl=64 time=69.410 ms
64 bytes from 218:4feb:a509:9db2:2b34:6e7e:e071:5dee: seq=4 ttl=64 time=69.935 ms
64 bytes from 218:4feb:a509:9db2:2b34:6e7e:e071:5dee: seq=5 ttl=64 time=69.803 ms
^C
--- 218:4feb:a509:9db2:2b34:6e7e:e071:5dee ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 69.410/335.510/1347.156 ms

The command wg does not output anything.

Screenshot at 2022-12-08 23-34-00
Screenshot at 2022-12-08 23-36-36
Screenshot at 2022-12-08 23-37-10

config wireguard_crxn_p2pnodeygg
	list allowed_ips '::/0'
	option route_allowed_ips '1'
	option endpoint_host '218:4feb:a509:9db2:2b34:6e7e:e071:5dee'
	option endpoint_port 'XXXXX'
	option persistent_keepalive '20'
	option public_key 'XXXXXXXXXXXXXXXXXXXXXXXXXXx'
	option preshared_key 'XXXXXXXXXXXXXXXXXXXXXXXXXXx'
config interface 'yggdrasil'
	option device 'ygg0'
	option proto 'none'

Понравилась статья? Поделить с друзьями:
  • Ошибка netstart при запуске windows
  • Ошибка netflix nw 6 404
  • Ошибка netbt 4321 windows 10
  • Ошибка net sendpacket error wsaenetunreach
  • Ошибка net sdk что это