There is an urgent need to test netmaker (netclien...
# netmaker
h
There is an urgent need to test netmaker (netclient) for openwrt. I haven't seen the latest teaching and documentation in this area, and I haven't compiled successfully
b
I have install netclient on openwrt running in lxc container (arm64 and amd64). What issue are you having?
h
I did it this way
Mt7621 router
This version is 0.94, which is too backward,
I compiled it in Ubuntu 22.04. The openwrt version is 21.02.3. The compilation fails.
b
what arch is router?
just download the netclient binary from the releases page (appropriate architecture) to the router and run it.
you should raise an issue in the sbilly/netmaker-openwrt repo
h
Which is the best recommended installation method?
b
the project team officially supports packages (apt, rpm, pacman, mac pkg, homebrew, msi) build by the team and binary downloads for other os/distributions
h
OK, let me try,
root@OpenWrt:/tmp/tmp# netclient join -t eyJhcGljb25uc3RyaW5nIjoieHZwbi5jYzo4MSI sIm5ldHdvcmsiOiJ4dnBuIiwia2V5IjoiMTczYjE0MWUyOGM3NjBkMCIsImxvY2FscmFuZ2UiOiIifQ= = --daemon=install --vvv [netclient] 2022-06-27 12:26:09 joining xvpn at xvpn.cc:81 [netclient] 2022-06-27 12:26:09 node created on remote server...updating configs [netclient] 2022-06-27 12:26:09 starting wireguard [netclient] 2022-06-27 12:26:09 turn on UDP hole punching (dynamic port setting) ? yes [netclient] 2022-06-27 12:26:11 waiting for interface... [netclient] 2022-06-27 12:26:11 interface ready - netclient.. ENGAGE [netclient] 2022-06-27 12:26:12 sent a node update to server for node OpenWrt , 054eee87-cf40-4b1f-ad84-2786abae7c91 2022/06/27 12:26:12 open /etc/systemd/system/netclient.service: no such file or directory [netclient] 2022-06-27 12:26:12 error installing: open /etc/systemd/system/netc lient.service: no such file or directory [netclient] 2022-06-27 12:26:12 deleted node OpenWrt on network xvpn [netclient] 2022-06-27 12:26:13 removed WireGuard interface: nm-xvpn [netclient] 2022-06-27 12:26:13 removed xvpn network locally [netclient] 2022-06-27 12:26:14 removed systemd remnants if any existed [netclient] 2022-06-27 12:26:14 removed systemd remnants if any existed root@OpenWrt:/tmp/tmp#
b
try without --daemon install ... openWRT does not support systemd
h
nm-xvpn Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:1.1.1.2 P-t-P:1.1.1.2 Mask:255.255.255.0 UP POINTOPOINT RUNNING NOARP MTU:1280 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:9 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:428 (428.0 B) TX bytes:928 (928.0 B)
OK, let me try,
What else should I do to run in the background without being affected by disconnection or power failure?
b
you would need to create an rc file to start netclient daemon on powerup
h
Thank you.
Openwrt netclient can ping netmaker, but cannot Ping other clients
b
does it have handshakes with other clients?
h
Can't shake hands with any customers, and soon becomes a warning
[netclient] 2022-06-27 22:48:04 joining xvpn at xvpn.cc:81 [netclient] 2022-06-27 22:48:05 node created on remote server...updating configs [netclient] 2022-06-27 22:48:05 starting wireguard [netclient] 2022-06-27 22:48:05 turn on UDP hole punching (dynamic port setting)? yes [netclient] 2022-06-27 22:48:07 waiting for interface... [netclient] 2022-06-27 22:48:07 interface ready - netclient.. ENGAGE [netclient] 2022-06-27 22:48:08 register at https://xvpn.cc:81/api/server/register [netclient] 2022-06-27 22:48:08 certificates/key saved [netclient] 2022-06-27 22:48:08 sent a node update to server for node OpenWrt , 787553da-73f6-4c5d-8d74-91e7e4e68bc6 [netclient] 2022-06-27 22:48:09 restarting netclient.service [netclient] 2022-06-27 22:48:10 error running command: systemctl restart netclient.service [netclient] 2022-06-27 22:48:10 [netclient] 2022-06-27 22:48:10 joined xvpn root@OpenWrt:/tmp/tmp#
It is related to the openwrt version. The official version of 21.02.3 is available, but the version of 22.03-rc4 is not available. There will be warnings, and it is still under test
root@OpenWrt:~# netclient daemon [netclient] 2022-06-28 11:02:48 initializing network all [netclient] 2022-06-28 11:02:48 failed to retrieve file /etc/netclient/config/wgkey-all , retrying... [netclient] 2022-06-28 11:02:49 failed to retrieve file /etc/netclient/config/wgkey-all , retrying... [netclient] 2022-06-28 11:02:49 started daemon for server [netclient] 2022-06-28 11:02:49 initializing network xvpn [netclient] 2022-06-28 11:02:49 netclient daemon started for server: [netclient] 2022-06-28 11:02:49 could not read CA file open /etc/netclient//root.pem: no such file or directory [netclient] 2022-06-28 11:02:49 failed to append cert 2022/06/28 11:02:49 could not read client cert/key open /etc/netclient//client.pem: no such file or directory root@OpenWrt:~#
netclient daemon > /etc/netclient/netclient.log 2>&1 &
Add the startup item, OK
To test the openwrt relay, exit gateway, entry gateway, and the compilation of different CPU platforms
Memory usage 70%
b
is that a spike or idle usage
h
Idle
b
how much ram?
h
Mem: 120064K used, 891828K free, 228K shrd, 15888K buff, 19332K cached CPU: 1% usr 0% sys 0% nic 98% idle 0% io 0% irq 0% sirq Load average: 0.00 0.00 0.00 2/81 11376 PID PPID USER STAT VSZ %VSZ %CPU COMMAND 1932 1 root S 1068 0% 0% /usr/sbin/odhcpd 1226 1 ubus S 948 0% 0% /sbin/ubusd 2629 1 root S 696m 70% 0% netclient daemon 2098 1 root S 3532 0% 0% /usr/sbin/uhttpd -f -h /www -r OpenWrt 1558 1 root S 1472 0% 0% /sbin/rpcd -s /var/run/ubus/ubus.sock 1875 1 root S 1344 0% 0% /sbin/netifd 1 0 root S 1196 0% 0% /sbin/procd
b
that is virtual mem --- not real indication --- top line indicates that only 13% of total memory actually in use
h
I can't use "Egress status" yet. I hope to get help
Interface name is br-lan? Or eth1?
default via 10.255.255.1 dev eth1 src 10.255.255.149 1.1.1.0/24 dev nm-xvpn scope link src 1.1.1.2 10.255.255.0/24 dev eth1 scope link src 10.255.255.149 172.172.172.0/24 dev br-lan scope link src 172.172.172.1
10.255.255.149 is wan IP, 172.172.172.0 /24 is Lan subnet
b
Default is eth1
h
C:\Program Files (x86)\Netclient>ping 172.172.172.12 -t 正在 Ping 172.172.172.12 具有 32 字节的数据: 来自 1.1.1.2 的回复: 无法连到端口。 来自 1.1.1.2 的回复: 无法连到端口。 来自 1.1.1.2 的回复: 无法连到端口。 来自 1.1.1.2 的回复: 无法连到端口。 来自 1.1.1.2 的回复: 无法连到端口。 来自 1.1.1.2 的回复: 无法连到端口。 来自 1.1.1.2 的回复: 无法连到端口。 来自 1.1.1.2 的回复: 无法连到端口。 来自 1.1.1.2 的回复: 无法连到端口。
It still doesn't work
C:\Program Files (x86)\Netclient>ping 172.172.172.1 -t 正在 Ping 172.172.172.1 具有 32 字节的数据: 来自 172.172.172.1 的回复: 字节=32 时间=26ms TTL=64 来自 172.172.172.1 的回复: 字节=32 时间=25ms TTL=64 来自 172.172.172.1 的回复: 字节=32 时间=26ms TTL=64 来自 172.172.172.1 的回复: 字节=32 时间=30ms TTL=64 来自 172.172.172.1 的回复: 字节=32 时间=56ms TTL=64
I can ping 172.172.172.1 (openwrt LAN IP), but I can't Ping 172.172.172.12 (LAN PC), win11
2 Views