the migration tool doesn’t initialise correctly. Might be related to a broken network configuration due to a vm clone.
It looks like the wg tunnel doesn’t pass ns7 → ns8 packets
UDP is ok :
# nc -u -v -z ns8ip 55820
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to ns8ip:55820.
Ncat: UDP packet sent successfully
Ncat: 1 bytes sent, 0 bytes received in 2.01 seconds.
ns7 side :
# wg
interface: ns8
public key: eeFBt/5GFP3xAIH7KSo3FK5zxiHHcv730/ZF05DD4wM=
private key: (hidden)
listening port: 49781
peer: Q4KHXnl0W30xvee9kLFG/7Kiz6lSZwU9h9pGTuY14Tc=
endpoint: ns8ip:55820
allowed ips: 10.5.4.0/24
transfer: 0 B received, 2.31 KiB sent
persistent keepalive: every 25 seconds
ns8 side :
# wg
interface: wg0
public key: Q4KHXnl0W30xvee9kLFG/7Kiz6lSZwU9h9pGTuY14Tc=
private key: (hidden)
listening port: 55820
peer: eeFBt/5GFP3xAIH7KSo3FK5zxiHHcv730/ZF05DD4wM=
endpoint: ns7ip:49781
allowed ips: 10.5.4.5/32
transfer: 2.75 KiB received, 1.85 KiB sent
persistent keepalive: every 25 seconds
peer: ePFv1JlVWfmv/+4VNRS6hyKnf5R/6aXM4y1TN4OY0HI=
allowed ips: 10.5.4.3/32
persistent keepalive: every 25 seconds
peer: VADjvxTQPb4uFbPIynCUKDMnz8RJ1KmaXNhvzWr7AjI=
allowed ips: 10.5.4.2/32
persistent keepalive: every 25 seconds
peer: vFdZxzJagP9X85puBWHfjq8futckHlY5jAvtsQr6GjY=
allowed ips: 10.5.4.4/32
persistent keepalive: every 25 seconds
Notice the four peers ? I tried to delete them using wg set peer xx remove but they keep coming when relaunching the migration tool. Is this expected ?
Does the cloned VM use same IP, hostname or MAC or something else that could cause issues?
Is ping working from NS7 wg to NS8 wg and other way round?
Maybe try to disconnect NS7 migration tool and clean up NS8 as explained in Release notes — NS8 documentation (Updates are suspended during NS7 migration)
Maybe firewall issue? UDP port 49781 is opened? (usually it’s 55820/UDP)
Yes everything changed so I believe there is some leftover at the local firewall (shorewall / iptables) but resetting the rules and stopping shorewall doesn’t seems to help.
I did it and that cleared the unwanted peers but still it’s not functioning.
[root@neth ~]# cat /etc/wireguard/ns8.conf
# ================= DO NOT MODIFY THIS FILE =================
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at NethServer official site: https://www.nethserver.org
#
#
[Interface]
Address = 10.5.4.2
PrivateKey = wHwAtnAcKRIv291SbV7EXd2Uocrfv7POgEmTOsT9UHQ=
[Peer]
PublicKey = rlMdLPEG6O+MgWEWLzvh+tkjKoFBmxWCPz5zm8pzS0w=
AllowedIPs = 10.5.4.0/24
Endpoint = node.ns8rockytest2.com:55820
PersistentKeepalive = 25
If there are hostnames used, is the DNS working correctly?
I tried to connect with another client, it works. NS8 is ok, the problem is related to NS7, probably the network config is broken : the ping packets are not leaving or reaching ns7.
the routing table is ok. I’m out if ideas. And that’s just to setup a clone to test the migration path… Seriously considering migrating by hand.
[root@node ~]# ip r
default via 192.168.3.11 dev eth0 proto static metric 100
10.5.4.2 dev wg0
192.168.3.0/24 dev eth0 proto kernel scope link src 192.168.3.141 metric 100
NS7:
[root@neth ~]# ip r
default via 192.168.3.11 dev eth0
10.5.4.0/24 dev ns8 scope link
192.168.3.0/24 dev eth0 proto kernel scope link src 192.168.3.159
Just to clarify : NS8 is the VPN server, correct ? So there is no need to forward ports since asfaik nethsec passes all the outgoing traffic (including UDP ?) when NS7 tries to connect…