gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.5k stars 552 forks source link

[Bug]: netclient-arm7 problem #2121

Open virusczz opened 1 year ago

virusczz commented 1 year ago

Contact Details

nebulacz@gmail.com

What happened?

instalation ok, tryed to join network: [netclient] 2023-03-16 01:52:35 network: prace UDP hole punching enabled for node Teltonika-RUTX14com
[netclient] 2023-03-16 01:52:36 starting wireguard
[netclient] 2023-03-16 01:52:41 error running command: systemctl restart netclient.service
[netclient] 2023-03-16 01:52:41

I am on Arm version of openWRT (more on RutOS from Teltonika) on a RUTX14

Version

v0.17.1

What OS are you using?

Unlisted

Relevant log output

[netclient] 2023-03-16 01:52:35 network: prace UDP hole punching enabled for node Teltonika-RUTX14com           
[netclient] 2023-03-16 01:52:36 starting wireguard                                                              
[netclient] 2023-03-16 01:52:41 error running command: systemctl restart netclient.service                      
[netclient] 2023-03-16 01:52:41      

root@Teltonika-RUTX14:~# opkg install systemctl                                                                 
Unknown package 'systemctl'. 

and with start of node i loose GSM connection :(

[netclient] 2023-03-16 02:02:46 network: prace error setting cfg.Node.Endpoint.                                 
[netclient] 2023-03-16 02:02:46 error installing:  public address not found    

but my GSM is connected: mob1s1a1   100.127.247.159

Contributing guidelines

virusczz commented 1 year ago

root@Teltonika-RUTX14:~# ifconfig -a
br-lan Link encap:Ethernet HWaddr 0xxxxx
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fde5:3e35:6fc0::1/60 Scope:Global
inet6 addr: fe80::21e:42ff:fe48:c3cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7202 errors:0 dropped:3 overruns:0 frame:0
TX packets:6644 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:791078 (772.5 KiB) TX bytes:2816632 (2.6 MiB)

erspan0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1450 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr 0xxxxxxx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11204 errors:0 dropped:31 overruns:0 frame:0
TX packets:9860 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1404518 (1.3 MiB) TX bytes:4259203 (4.0 MiB)

eth1 Link encap:Ethernet HWaddr 0xxxxxxx
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

gre0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1476 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

gretap0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1462 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

ip6gre0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1448 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1452 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3078 errors:0 dropped:0 overruns:0 frame:0
TX packets:3078 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:244862 (239.1 KiB) TX bytes:244862 (239.1 KiB)

miireg Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
[NO FLAGS] MTU:0 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 0xxxxxxx
inet6 addr: fe80::21e:42ff:fe48:c3ce/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1349 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:338342 (330.4 KiB)

wlan1 Link encap:Ethernet HWaddr 0xxxxxxx
inet6 addr: fe80::21e:42ff:fe48:c3cf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1489 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:358229 (349.8 KiB)

wwan0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:100.126.5.222 P-t-P:100.126.5.222 Mask:255.255.255.255
inet6 addr: fe80::af05:eafa:99ef:74e9/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:318 errors:0 dropped:0 overruns:0 frame:0
TX packets:1522 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:44453 (43.4 KiB) TX bytes:129435 (126.4 KiB)

virusczz commented 1 year ago

root@Teltonika-RUTX14:~# netclient
NAME: Netclient - Netmaker's netclient agent and CLI.

USAGE:
netclient [global options] command [command options] [arguments...]. Adjust verbosity of given command with - v, -vv or -vvv (max).

VERSION:
v0.17.1

DESCRIPTION:
Used to perform interactions with Netmaker server and set local WireGuard config.

COMMANDS:
join Join a Netmaker network.
leave Leave a Netmaker network.
pull Pull latest configuration and peers from server.
list Get list of networks.
uninstall Uninstall the netclient system service.
daemon run netclient as daemon
install install binary and daemon
connect connect netclient to a given network if disconnected
disconnect disconnect netclient from a given network if connected
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
--help, -h show help (default: false)
--version, -v print the version (default: false)
root@Teltonika-RUTX14:~# netclient pull
[netclient] 2023-03-16 02:39:14 No network selected. Running Pull for all networks.
[netclient] 2023-03-16 02:39:15 used backup file for network: all
root@Teltonika-RUTX14:~# netclient list
[netclient] 2023-03-16 02:39:36 used backup file for network: all
[netclient] Fatal: reading configuration for network all: EOF
root@Teltonika-RUTX14:~# netclient install
[netclient] 2023-03-16 02:39:56 updating netclient binary in /sbin/
[netclient] 2023-03-16 02:39:56 open /sbin/netclient: text file busy
[netclient] 2023-03-16 02:39:56 error installing daemon open /sbin/netclient: text file busy
[netclient] Fatal: open /sbin/netclient: text file busy

root@Teltonika-RUTX14:~# ubus call system board
{
"kernel": "5.4.229",
"hostname": "Teltonika-RUTX14.com",
"system": "ARMv7 Processor rev 5 (v7l)",
"model": "RUTX14 STM32",
"board_name": "teltonika,rutx",
"release": {
"distribution": "OpenWrt",
"version": "21.02.0",
"revision": "r16279-5cc0535800",
"target": "ipq40xx/generic",
"description": "OpenWrt 21.02.0 r16279-5cc0535800"
}
}

virusczz commented 1 year ago

and after long tryes ... when is running i can not ping from my notebook to end point. The gate x.x.x.254 is ok, my notebook is ok x.x.x.3 but the modem itself: x.x.x.1 no. I already make this Engres and also Ingress but no help, updatete with pull but no help

image

image

image

virusczz commented 1 year ago

i made the instalation according to this: https://community.teltonika-networks.com/62790/rutx14-vpn-provider-netmaker from https://www.reddit.com/r/netmaker/comments/10sqnjg/netmaker_openwrt_mesh_vpn_site_to_site_how_to/ and now is loking that i have a stable connection. Still i need to adjust the routes due to no forward to the subnet in lan ... but this is already a progress