brash-kilobyte-81516
05/23/2023, 8:59 PM192.168.12.20
-> Linode Node(10.120.0.2) farwards packets to
-> Proxmox node(10.120.0.1 - Netmaker Interface) and masqueraded and and sents packet to
-> Host on private subnet 192.168.12.20 which sends response to
-> Proxmox node(192.168.12.55 - ens18 Interface) <----------- This is as fare as the packet goes
When doing a tcpdump looking for packets with the target host from the private subnet nothing comes up. So it seems like the egress not never sents back the responds packets. Used the following command to test that: tcpdump -i netmaker 'dst net 10.120.0.0/24'jolly-london-20127
05/23/2023, 9:01 PMbrash-kilobyte-81516
05/23/2023, 9:01 PMbrash-kilobyte-81516
05/23/2023, 9:02 PMbrash-kilobyte-81516
05/23/2023, 9:02 PMbored-solstice-58967
05/24/2023, 2:01 AMbrash-kilobyte-81516
05/24/2023, 6:46 AMiptablesbored-solstice-58967
05/24/2023, 6:56 AMiptables -L -v
2. iptables -t nat -L -vbrash-kilobyte-81516
05/24/2023, 6:59 AMiptables -L -v
sudo iptables -L -v
Chain INPUT (policy ACCEPT 269K packets, 34M bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy DROP 102 packets, 12954 bytes)
pkts bytes target prot opt in out source destination
102 12954 netmakerfilter all -- netmaker any anywhere 192.168.12.0/24 /* NETMAKER */
0 0 icmp -- any any 192.168.1.190 anywhere
0 0 icmp -- any any 192.168.1.190 anywhere
0 0 netmakerfilter all -- netmaker any anywhere anywhere
102 12954 DOCKER-USER all -- any any anywhere anywhere
102 12954 DOCKER-ISOLATION-STAGE-1 all -- any any anywhere anywhere
0 0 ACCEPT all -- any docker0 anywhere anywhere ctstate RELATED,ESTABLISHED
0 0 DOCKER all -- any docker0 anywhere anywhere
0 0 ACCEPT all -- docker0 !docker0 anywhere anywhere
0 0 ACCEPT all -- docker0 docker0 anywhere anywhere
0 0 ACCEPT all -- any br-6d0659f686c9 anywhere anywhere ctstate RELATED,ESTABLISHED
0 0 DOCKER all -- any br-6d0659f686c9 anywhere anywhere
0 0 ACCEPT all -- br-6d0659f686c9 !br-6d0659f686c9 anywhere anywhere
0 0 ACCEPT all -- br-6d0659f686c9 br-6d0659f686c9 anywhere anywhere
Chain OUTPUT (policy ACCEPT 273K packets, 28M bytes)
pkts bytes target prot opt in out source
......brash-kilobyte-81516
05/24/2023, 6:59 AMiptables -L -v (Continuation)
Chain DOCKER (2 references)
pkts bytes target prot opt in out source destination
Chain DOCKER-ISOLATION-STAGE-1 (1 references)
pkts bytes target prot opt in out source destination
0 0 DOCKER-ISOLATION-STAGE-2 all -- docker0 !docker0 anywhere anywhere
0 0 DOCKER-ISOLATION-STAGE-2 all -- br-6d0659f686c9 !br-6d0659f686c9 anywhere anywhere
102 12954 RETURN all -- any any anywhere anywhere
Chain DOCKER-ISOLATION-STAGE-2 (2 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- any docker0 anywhere anywhere
0 0 DROP all -- any br-6d0659f686c9 anywhere anywhere
0 0 RETURN all -- any any anywhere anywhere
Chain DOCKER-USER (1 references)
pkts bytes target prot opt in out source destination
102 12954 RETURN all -- any any anywhere anywhere
Chain netmakerfilter (2 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- any any rasmus-phone.ext-admin 192.168.12.0/24
102 12954 ACCEPT all -- any any netmaker-server-client.ext-admin 192.168.12.0/24
0 0 DROP all -- any any anywhere anywhere
0 0 RETURN all -- any any anywhere anywherebrash-kilobyte-81516
05/24/2023, 7:00 AMiptables -t nat -L -v :
Chain PREROUTING (policy ACCEPT 11062 packets, 2641K bytes)
pkts bytes target prot opt in out source destination
36 2160 DOCKER all -- any any anywhere anywhere ADDRTYPE match dst-type LOCAL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 160K packets, 13M bytes)
pkts bytes target prot opt in out source destination
0 0 DOCKER all -- any any anywhere !localhost/8 ADDRTYPE match dst-type LOCAL
Chain POSTROUTING (policy ACCEPT 160K packets, 13M bytes)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE all -- any ens18 anywhere 10.120.0.0/24 /* NETMAKER */
498 63246 MASQUERADE all -- any ens18 10.120.0.0/24 anywhere /* NETMAKER */
0 0 MASQUERADE all -- any !docker0 172.17.0.0/16 anywhere
0 0 MASQUERADE all -- any !br-6d0659f686c9 172.24.0.0/16 anywhere
0 0 netmakernat all -- any netmaker anywhere anywhere /* NETMAKER */
Chain DOCKER (2 references)
pkts bytes target prot opt in out source destination
0 0 RETURN all -- docker0 any anywhere anywhere
0 0 RETURN all -- br-6d0659f686c9 any anywhere anywhere
Chain netmakernat (1 references)
pkts bytes target prot opt in out source destination
0 0 RETURN all -- any any anywhere anywherebrash-kilobyte-81516
05/24/2023, 7:02 AMbored-solstice-58967
05/24/2023, 7:42 AMbrash-kilobyte-81516
05/24/2023, 10:46 AMnetclient join -t <TOKEN>bored-solstice-58967
05/24/2023, 11:13 AMens18) for your egress range?
0 0 MASQUERADE all -- any ens18 anywhere 10.120.0.0/24 /* NETMAKER */
498 63246 MASQUERADE all -- any ens18 10.120.0.0/24brash-kilobyte-81516
05/24/2023, 11:27 AMbrash-kilobyte-81516
05/24/2023, 11:28 AMens18 interface to the correct hostbrash-kilobyte-81516
05/24/2023, 11:28 AMbored-island-21407
05/24/2023, 11:29 AMbored-island-21407
05/24/2023, 11:31 AMbrash-kilobyte-81516
05/24/2023, 11:32 AMbored-solstice-58967
05/24/2023, 12:00 PMPOSTROUTING section?bored-island-21407
05/24/2023, 12:02 PMiptables -I FORWARD -i ens18 -j ACCEPT but that should not be required with the NAT rulebrash-kilobyte-81516
05/24/2023, 4:14 PMbrash-kilobyte-81516
05/24/2023, 8:11 PM