Closed dongdongbh closed 1 year ago
Finally made relay work, I forgot add relay host on my client computer
relay:
relays:
- 192.168.100.1
There are two active tunnels, one is the lighthouse, the other is my client computer. There are three active addresses on the client computer tunnel, one is the the lighthouse ip, and one is my client computer address, the other one is my client computer's router public ip. I'm not sure the connection between my phone and client computer is works on relay or punching. I guess it works on relay since the ping delay is around two times of directly ping lighthouse.
The network is a bit unstable between client computer and phone. I found only if the phone first ping the lighthouse and client computer, then they can ping back to the phone. I have to make sure disable battery optmizer for nebula to make it work.
The ssh console output ssh -i id_rsa -p 2222 xx.xx.xx.xx -l user
$ list-hostmap
192.168.100.2: [112.64.195.178:2781 10.212.142.63:4242 192.168.122.1:4242]
192.168.100.3: [101.82.187.97:39011]
$ list-lighthouse-addrmap
192.168.100.1: {"192.168.100.1":{"reported":[{"ip":"xx.xx.xx.xx","port":4242}],"relay":[]}}
192.168.100.2: {"192.168.100.2":{"learned":[{"ip":"112.64.195.178","port":2781}],"reported":[{"ip":"10.212.142.63","port":4242},{"ip":"192.168.122.1","port":4242}],"relay":["192.168.100.1"]}}
192.168.100.3: {"192.168.100.3":{"learned":[{"ip":"101.82.187.97","port":39011}],"relay":[]}}
$ print-relays
{"Relays":[{"NebulaIp":"192.168.100.3","RelayForIps":
[{"Error":null,"Type":"forwarding","State":"established","PeerIp":"192.168.100.2","LocalIndex":2001840543,"RemoteIndex":419371349,"RelayedThrough":null}]},{"NebulaIp":"192.168.100.2","RelayForIps":
[{"Error":null,"Type":"forwarding","State":"established","PeerIp":"192.168.100.3","LocalIndex":4294893792,"RemoteIndex":653339614,"RelayedThrough":null}]}]}
I have similar problem as #84, I have a server which has public ip as lighthouse with ip
192.168.100.1
, I set up a computer client with ip192.168.100.2
, which works fine. Then I setup a client on Andriod. When I started connection, it gets ip192.168.100.3
from lighthouse. I can ping Andriod device192.168.100.3
on lighthouse server, but I can not ping the Andriod device the client computer. There is one active lighthouse tunel on Android. When I use a ping tool to ping192.168.100.1
on Android, it also works fine. But I can't ping192.168.100.2
on my phone.I changed
listen.host
on lighthouse and client computer to"[::]"
didn't make any difference.I follow announcing-relay-support-in-nebula to setup relay, I enabled relay on lighthouse, but I can not modify the config file on Andriod to add
to make relay work.
The config on Android
The log on Android