jolly-london-20127
05/19/2023, 2:29 AMcat /etc/netclient/netclient.yml | grep firewallinuse
iptables --version
nft --version
iptables-legacy --version
iptables-legacy-save --version
iptables-nft-save --versionstale-judge-54185
05/19/2023, 2:32 AMfirewallinuse: nftables
iptables v1.8.7 (legacy)
nftables v1.0.2 (Lester Gooch)
iptables v1.8.7 (legacy)
iptables-save v1.8.7 (legacy)
iptables-nft-save v1.8.7 (nf_tables)stale-judge-54185
05/19/2023, 2:33 AM/usr/sbin/iptables-legacystale-judge-54185
05/19/2023, 2:34 AMjolly-london-20127
05/19/2023, 2:36 AMstale-judge-54185
05/19/2023, 2:36 AMstale-judge-54185
05/19/2023, 2:36 AMstale-judge-54185
05/19/2023, 2:37 AMstale-judge-54185
05/19/2023, 2:46 AMfirewallinuse: iptables
iptables v1.8.7 (nf_tables)
nftables v1.0.2 (Lester Gooch)
iptables v1.8.7 (legacy)
iptables-save v1.8.7 (legacy)
iptables-nft-save v1.8.7 (nf_tables)jolly-london-20127
05/19/2023, 2:47 AMstale-judge-54185
05/19/2023, 2:47 AMjolly-london-20127
05/19/2023, 2:47 AMstale-judge-54185
05/19/2023, 2:47 AMjolly-london-20127
05/19/2023, 2:47 AMstale-judge-54185
05/19/2023, 2:49 AMjolly-london-20127
05/19/2023, 2:50 AMstale-judge-54185
05/19/2023, 2:50 AMqrencode hahastale-judge-54185
05/19/2023, 2:51 AMstale-judge-54185
05/19/2023, 2:51 AMjolly-london-20127
05/19/2023, 2:52 AMjolly-london-20127
05/19/2023, 2:53 AMstale-judge-54185
05/19/2023, 2:54 AMjolly-london-20127
05/19/2023, 2:54 AMjolly-london-20127
05/19/2023, 2:55 AMjolly-london-20127
05/19/2023, 2:55 AMstale-judge-54185
05/19/2023, 2:56 AMstale-judge-54185
05/19/2023, 2:56 AMansible folder is how the systems are configuredstale-judge-54185
05/19/2023, 2:57 AMnetclient is preloaded into systems so they're pre-connected into the network (join on first-boot)jolly-london-20127
05/19/2023, 2:57 AMiptables --version output anything?stale-judge-54185
05/19/2023, 2:57 AMiptables v1.8.7 (legacy)stale-judge-54185
05/19/2023, 2:58 AMjolly-london-20127
05/19/2023, 2:59 AMcat /etc/netclient/netclient.yml | grep firewallinuse
iptables --version
nft --version
iptables-legacy --version
iptables-legacy-save --version
iptables-nft-save --versionstale-judge-54185
05/19/2023, 2:59 AMfirewallinuse: iptables
iptables v1.8.7 (nf_tables)
nftables v1.0.2 (Lester Gooch)
iptables v1.8.7 (legacy)
iptables-save v1.8.7 (legacy)
iptables-nft-save v1.8.7 (nf_tables)jolly-london-20127
05/19/2023, 3:00 AMstale-judge-54185
05/19/2023, 3:01 AMansible folder in the repo i linked. It's a whole bunch of commands... Mainly setting mounts, users, hosts, packges, docker, etc.stale-judge-54185
05/19/2023, 3:02 AMjolly-london-20127
05/19/2023, 3:02 AMstale-judge-54185
05/19/2023, 3:03 AMstale-judge-54185
05/19/2023, 3:05 AMstale-judge-54185
05/19/2023, 3:05 AMstale-judge-54185
05/19/2023, 3:07 AMnetmakerfilter is at the bottom of the list I think? https://gist.github.com/IAreKyleW00t/01cdd2bbc7ae42f6a8b128fd44abb4e5stale-judge-54185
05/19/2023, 3:10 AMjolly-london-20127
05/19/2023, 3:10 AMstale-judge-54185
05/19/2023, 3:10 AMbored-solstice-58967
05/19/2023, 3:10 AMstale-judge-54185
05/19/2023, 3:10 AMstale-judge-54185
05/19/2023, 3:11 AMbored-solstice-58967
05/19/2023, 3:11 AMstale-judge-54185
05/19/2023, 3:11 AMstale-judge-54185
05/19/2023, 3:11 AMbored-solstice-58967
05/19/2023, 3:12 AMstale-judge-54185
05/19/2023, 3:12 AMstale-judge-54185
05/19/2023, 3:13 AMstale-judge-54185
05/19/2023, 3:16 AMjolly-london-20127
05/19/2023, 3:16 AMstale-judge-54185
05/19/2023, 3:19 AMstale-judge-54185
05/19/2023, 3:23 AMiptables -I DOCKER-USER -j ACCEPT got things working!stale-judge-54185
05/19/2023, 3:30 AMsudo iptables -I DOCKER-USER -i netmaker -j ACCEPTstale-judge-54185
05/19/2023, 3:34 AMiptables -I FORWARD -i netmaker -j ACCEPTstale-judge-54185
05/19/2023, 3:35 AMbored-solstice-58967
05/19/2023, 3:47 AMChain netmakerfilterstale-judge-54185
05/19/2023, 3:48 AMChain netmakerfilter (1 references)
pkts bytes target prot opt in out source destinationbored-solstice-58967
05/19/2023, 3:51 AMnetmakerfilter chainbored-solstice-58967
05/19/2023, 3:52 AMstale-judge-54185
05/19/2023, 3:52 AMstale-judge-54185
05/19/2023, 3:54 AMstale-judge-54185
05/19/2023, 3:54 AMbored-solstice-58967
05/19/2023, 3:54 AMjournalctl -fu netclient
run this on ingress clientstale-judge-54185
05/19/2023, 3:56 AMubuntu@test-1:~$ journalctl -fu netclient
May 19 03:20:21 test-1 netclient[930]: [GIN-debug] POST /leave/:net --> github.com/gravitl/netclient/functions.leave (3 handlers)
May 19 03:20:21 test-1 netclient[930]: [GIN-debug] GET /servers --> github.com/gravitl/netclient/functions.servers (3 handlers)
May 19 03:20:21 test-1 netclient[930]: [GIN-debug] POST /uninstall --> github.com/gravitl/netclient/functions.uninstall (3 handlers)
May 19 03:20:21 test-1 netclient[930]: [GIN-debug] GET /pull/:net --> github.com/gravitl/netclient/functions.pull (3 handlers)
May 19 03:20:21 test-1 netclient[930]: [GIN-debug] POST /nodepeers --> github.com/gravitl/netclient/functions.nodePeers (3 handlers)
May 19 03:20:21 test-1 netclient[930]: [netclient] 2023-05-19 03:20:21 mqtt connect handler
May 19 03:20:21 test-1 netclient[930]: [netclient] 2023-05-19 03:20:21 processing node update for network k2net
May 19 03:20:21 test-1 netclient[930]: [netclient] 2023-05-19 03:20:21 network: k2net received message to update node 3a1964a8-023e-4f33-bd59-a9446d196827
May 19 03:20:21 test-1 netclient[930]: [netclient] 2023-05-19 03:20:21 published host turn register signal to server: net.kyle.systems
May 19 03:20:21 test-1 netclient[930]: [netclient] 2023-05-19 03:20:21 adding addresses to netmaker interfacebored-solstice-58967
05/19/2023, 3:57 AM4?bored-solstice-58967
05/19/2023, 3:57 AMstale-judge-54185
05/19/2023, 4:00 AMbored-solstice-58967
05/19/2023, 4:04 AMstale-judge-54185
05/19/2023, 4:04 AMstale-judge-54185
05/19/2023, 4:05 AMstale-judge-54185
05/19/2023, 4:05 AMbored-solstice-58967
05/19/2023, 4:07 AMnetclient pull and try this againstale-judge-54185
05/19/2023, 4:08 AMbored-solstice-58967
05/19/2023, 4:09 AMstale-judge-54185
05/19/2023, 4:10 AMbored-solstice-58967
05/19/2023, 4:11 AMjournalctl -u netclient i think it will give all the logsstale-judge-54185
05/19/2023, 4:11 AMstale-judge-54185
05/19/2023, 4:12 AMnetclient pull and then immediately adding an Ext Client, https://gist.github.com/IAreKyleW00t/17cb9c82f479992d1e370ebb4edc1da0bored-solstice-58967
05/19/2023, 4:22 AMfailed to create proxy, check if stun list is configured correctly on your serverbored-solstice-58967
05/19/2023, 4:22 AMSTUN_LIST is set on your server env?stale-judge-54185
05/19/2023, 4:24 AMubuntu@netmaker-1:/mnt/docker/netmaker$ cat docker-compose.yml | grep STUN_LIST
- STUN_LIST=stun.${NM_DOMAIN}:${STUN_PORT},stun1.netmaker.io:3478,stun2.netmaker.io:3478,stun1.l.google.com:19302,stun2.l.google.com:19302stale-judge-54185
05/19/2023, 4:25 AMubuntu@netmaker-1:/mnt/docker/netmaker$ sudo docker exec -it netmaker sh
~ # echo $STUN_LIST
stun.net.kyle.systems:3478,stun1.netmaker.io:3478,stun2.netmaker.io:3478,stun1.l.google.com:19302,stun2.l.google.com:19302bored-solstice-58967
05/19/2023, 4:27 AMcat /etc/netclient/servers.yml from your ingress nodestale-judge-54185
05/19/2023, 4:29 AMbored-solstice-58967
05/19/2023, 4:32 AMstun.net.kyle.systems:3478,bored-solstice-58967
05/19/2023, 4:33 AM1. docker-compose down && docker-compose up -d
On the client once the server is up and ready
run netclient pullstale-judge-54185
05/19/2023, 4:34 AMstun1.netmaker.io:3478,stun2.netmaker.io:3478,stun1.l.google.com:19302,stun2.l.google.com:19302 in the list?bored-solstice-58967
05/19/2023, 4:34 AMstale-judge-54185
05/19/2023, 4:35 AMbored-solstice-58967
05/19/2023, 4:36 AMstale-judge-54185
05/19/2023, 4:36 AMstale-judge-54185
05/19/2023, 4:36 AMstale-judge-54185
05/19/2023, 4:36 AMbored-solstice-58967
05/19/2023, 4:36 AMbored-solstice-58967
05/19/2023, 4:37 AMstale-judge-54185
05/19/2023, 4:38 AMstale-judge-54185
05/19/2023, 4:38 AMbored-solstice-58967
05/19/2023, 4:38 AMbored-solstice-58967
05/19/2023, 4:39 AMstale-judge-54185
05/19/2023, 4:39 AMstale-judge-54185
05/19/2023, 4:41 AMstale-judge-54185
05/19/2023, 4:44 AMbored-solstice-58967
05/19/2023, 4:47 AMstun2.netmaker.io
can you just keep these two in the stun list stun1.l.google.com:19302,stun2.l.google.com:19302 ...bored-solstice-58967
05/19/2023, 4:48 AMstale-judge-54185
05/19/2023, 4:50 AMstale-judge-54185
05/19/2023, 4:53 AMbored-solstice-58967
05/19/2023, 4:53 AMbored-solstice-58967
05/19/2023, 4:55 AMstale-judge-54185
05/19/2023, 4:57 AMstale-judge-54185
05/19/2023, 4:57 AMstale-judge-54185
05/19/2023, 4:59 AMbored-solstice-58967
05/19/2023, 5:13 AMstale-judge-54185
05/19/2023, 5:17 AMbored-solstice-58967
05/19/2023, 5:19 AMstale-judge-54185
05/19/2023, 5:21 AMubuntu@test-1:~$ nc -v -u -z -w 3 stun.net.kyle.systems 3478
Connection to stun.net.kyle.systems (3.135.131.84) 3478 port [udp/*] succeeded!stale-judge-54185
05/19/2023, 5:21 AMstale-judge-54185
05/19/2023, 5:34 AMtall-room-55783
05/19/2023, 11:31 AMdocker-compose config | grep STUN_LIST
2. docker-compose -v
thxstale-judge-54185
05/19/2023, 1:05 PMdocker compose -v is just normal output, but i ran docker compose version too for you
ubuntu@netmaker-1:/mnt/docker/netmaker$ sudo docker compose config | grep STUN_LIST
STUN_LIST: stun.net.kyle.systems:3478,stun1.netmaker.io:3478,stun2.netmaker.io:3478,stun1.l.google.com:19302,stun2.l.google.com:19302
ubuntu@netmaker-1:/mnt/docker/netmaker$ sudo docker compose -v
Usage: docker compose [OPTIONS] COMMAND
Docker Compose
...
ubuntu@netmaker-1:/mnt/docker/netmaker$ docker compose version
Docker Compose version v2.17.3stale-judge-54185
05/19/2023, 1:06 PMubuntu@netmaker-1:/mnt/docker/netmaker$ sudo docker version
Client: Docker Engine - Community
Version: 24.0.0
API version: 1.43
Go version: go1.20.4
Git commit: 98fdcd7
Built: Mon May 15 18:49:22 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.0
API version: 1.43 (minimum version 1.12)
Go version: go1.20.4
Git commit: 1331b8c
Built: Mon May 15 18:49:22 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.21
GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc:
Version: 1.1.7
GitCommit: v1.1.7-0-g860f061
docker-init:
Version: 0.19.0
GitCommit: de40ad0tall-room-55783
05/19/2023, 1:31 PMstale-judge-54185
05/19/2023, 1:53 PMstale-judge-54185
05/19/2023, 3:17 PMstale-judge-54185
05/19/2023, 3:18 PMstale-judge-54185
05/19/2023, 3:22 PMstale-judge-54185
05/19/2023, 3:22 PMstale-judge-54185
05/19/2023, 3:35 PMjolly-london-20127
05/19/2023, 4:05 PMstale-judge-54185
05/19/2023, 4:06 PM/etc/resolv.conf - after those changes, and a reboot, the STUN proxy fails. Trying one more thing to confirm that is actually what is causing itstale-judge-54185
05/19/2023, 4:07 PMchattr)stale-judge-54185
05/19/2023, 4:09 PMstale-judge-54185
05/19/2023, 4:16 PMstale-judge-54185
05/19/2023, 4:18 PMubuntu@test-1:~$ sudo ip6tables -L -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain netmakerfilter (0 references)
pkts bytes target prot opt in out source destination
0 0 DROP all any any anywhere anywhere
0 0 RETURN all any any anywhere anywherestale-judge-54185
05/19/2023, 4:20 PMMay 19 16:17:33 test-1 netclient[682]: [netclient] 2023-05-19 16:17:33 [iptables_linux.go-355] InsertIngressRoutingRules(): failed to add rule: [-s 100.100.100.252/32 -d fde7:76ae:f7c1:10::/64 -j ACCEPT], Err: running [/usr/sbin/iptables -t filter -I netmakerfilter 1 -s 100.100.100.252/32 -d fde7:76ae:f7c1:10::/64>
May 19 16:17:33 test-1 netclient[682]: Try `iptables -h' or 'iptables --help' for more information.stale-judge-54185
05/19/2023, 4:22 PMstale-judge-54185
05/19/2023, 4:28 PMstale-judge-54185
05/19/2023, 4:30 PMjolly-london-20127
05/19/2023, 4:35 PMjolly-london-20127
05/19/2023, 4:35 PMstale-judge-54185
05/19/2023, 4:37 PMjolly-london-20127
05/19/2023, 4:41 PMjolly-london-20127
05/19/2023, 4:41 PMjolly-london-20127
05/19/2023, 4:41 PM