-
Notifications
You must be signed in to change notification settings - Fork 131
Description
I'm trying setting up 4 PC become 1 network inside VPN:
1 AWS: public IP: 57.130.54.170:51820 ( name: ip-172-26-4-213, Internal IP: 172.26.4.213 )
3 PC: Inside NAT network and we can't open Upnp to forwarding port (Home Network)
I've add 3 annotation for each node like this:
kubectl annotate node $node kilo.squat.ai/location=$node kilo.squat.ai/persistent-keepalive=10 kilo.squat.ai/force-endpoint=57.130.54.170:51820
this one will create full mesh network. And aws can ping to each worker node, but worker nodes can't ping each other
when I try to get wireguard config from PC in nat network
[Interface]
ListenPort = 51820
[Peer]
AllowedIPs = 10.42.6.0/24, 192.168.104.23/32, 10.4.0.1/32
Endpoint = 117.2.120.27:51820
PersistentKeepalive = 10
PublicKey = Ms2vIRAOqWZI3IRyhhubChN8pamvJT/Ctz3NPDtwjzY=
[Peer]
AllowedIPs = 10.42.2.0/24, 172.26.4.213/32, 10.4.0.2/32
Endpoint = 57.130.54.170:51820
PersistentKeepalive = 10
PublicKey = //A0GY434mNTe4ZVKlmM/em1k9nppJLRmFNtRUPNHBU=
[Peer]
AllowedIPs = 10.42.4.0/24, 192.168.103.72/32, 10.4.0.4/32
Endpoint = 117.3.83.42:51820
PersistentKeepalive = 10
PublicKey = 8SufnPe9OTpB5MjjTnRuOpAbk47ohyHNLap4VyEhWwI=
From setting above this setting is a reason. Because It dont have open 51820 port on home network
I think to make all nodes in same network it shoud be like this for each worker node
[Interface]
ListenPort = 51820
[Peer]
AllowedIPs = 10.42.0.0/16, 172.26.4.213/32 # this is also nginx ingress ip on running on AWS
Endpoint = 57.130.54.170:51820
PersistentKeepalive = 0
PublicKey = //A0GY434mNTe4ZVKlmM/em1k9nppJLRmFNtRUPNHBU=
Do we have anyway option to do like way?
I already try to following this way
https://kilo.squat.ai/docs/api#peer
but it's not work.
Does anyone have an idea on this?
