https://netmaker.org logo
is `iOS 16 external client --> netmaker 0.17.0 ing...
# netmaker
l
is
iOS 16 external client --> netmaker 0.17.0 ingress --> ubuntu 22.04 client egress --> 0.0.0.0/0
supposed to work? It's not working for me — external client can't access google.com or 1.1.1.1, but both clients can ping each other over wireguard
Copy code
$ sudo sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1
is as expected on the linux client egress
if I use the netmaker server as ingress and egress, it also works
Copy code
$ nft list ruleset
table ip filter {
    chain forward {
        ct state established,related accept
        iifname "nm-skynet" accept
        oifname "nm-skynet" accept
    }
}
table ip nat {
    chain prerouting {
        type nat hook prerouting priority filter; policy accept;
    }

    chain postrouting {
        type nat hook postrouting priority filter; policy accept;
        oifname "enp0s5" counter packets 169 bytes 11515 masquerade
    }
}
the nft ruleset on egress client
hm, according to docs, this should definitely work: https://netmaker.readthedocs.io/en/master/egress-gateway.html, appears to be a bug at this point
I tried with two netclient clients (Linux and Windows VMs), but they couldn't reach each other due to hard NAT. So I used my netmaker server to relay one of the clients, then both of the clients, but this did not work either. In fact, every time I relayed either client, the web ui graph completely disconnected that client node (circle) from the rest. is egress completely broken?
j
@echoing-controller-96073 please test
l
We are planning to use netmaker for a big experiment on friday, and this is a critical feature for that to work. Here to offer any help if needed!
I updated my description above with some more info on the clients
j
thanks for the update, we will let you know the outcome of testing today
e
I was not able to recreate this issue.
l
Hmm, let's start with the relay issue. Here's my graph. All settings default. Both Windows and Ubuntu can ping each other.
I mark my server, netmaker-1, as a relay for Windows. Then this happens:
I think this is just a graphical glitch though, I can still ping Ubuntu from Windows even though it's routed via netmaker-1 as confirmed by "wg" command.
Now the problem is if we turn Ubuntu to an egress:
Whether relayed or not, it does not see any traffic, as confirmed by "wg" command on Windows:
Copy code
powershell
PS C:\Users\user> wg
interface: nm-wg-vnet
  public key: xxx
  private key: (hidden)
  listening port: 59903

peer: xxx
  endpoint: xxx:51821
  allowed ips: 10.146.92.254/32
  latest handshake: 18 seconds ago
  transfer: 92 B received, 180 B sent
  persistent keepalive: every 20 seconds

peer: xxx
  endpoint: 10.211.55.4:58920
  allowed ips: 0.0.0.0/0, 10.146.92.1/32
  transfer: 0 B received, 592 B sent
  persistent keepalive: every 20 seconds

PS C:\Users\user> ping google.com

Pinging google.com [142.250.200.46] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 142.250.200.46:
    Packets: Sent = 3, Received = 0, Lost = 3 (100% loss)

PS C:\Users\user> ping 10.146.92.1

Pinging 10.146.92.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 10.146.92.1:
    Packets: Sent = 3, Received = 0, Lost = 3 (100% loss)
Bear in mind that my VMs are connected between themselves over 10.211.55.0/24, this is how netmaker made the direct connection.
My full system (host + VMs) has IPv6 connectivity too, if that makes a difference. I disabled IPv6 on my Windows via adapter properties > untick ipv6, and Ubuntu via
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
, and now the two can't ping each other, even after leaving and rejoining the netmaker network on both.
So to summarize, 3 issues above, 1 of which likely just graphical, 2 of which critical
e
cool. thank you. I am going to try again and see if I can recreate
l
Thank you!
e
I did recreate both issues. it looks like the graph issue is just a graphical issue like you said. I can ping both nodes. and I was able to recreate the internet gateway one as well. on my run, it specifically cuts out when I make an external client on the 0.0.0.0/0. the nodes are pingable up until my phone tries to join.
l
That's fantastic, thank you for persisting on these issues
In my second experiment, I didn't even use an external client, I used two netclient clients, and like you mentioned with the external client, as soon as I set one as egress with 0.0.0.0/0, they stopped being able to ping, so I think this is a general routing issue with internet egress
j
@echoing-controller-96073 please create two bug tickets for these issues on the internal board
thanks for reporting these @lively-salesclerk-37295
l
My pleasure, please ping me when any fix is released and I'll test
e
no problem. I made one last night for the 0.0.0.0/0. I'll make another for the graph issue now.
w
Hi, how were you able to solve your NAT-Issue? ( I have the same issue): I have two PCs in two different countries. Both of them are connected to the server andthe tunnel are "up". PING-ing each other is not possible. Shall I open some UDP-Ports manually in the router of both offices? Thank you very much for a short confirmation ...
l
Didn't really do anything different, it just worked on my second experiment
w
ok, Thank you.
6 Views