https://netmaker.org logo
Title
a

ancient-shampoo-56421

07/21/2022, 8:30 AM
external client to home LAN - netclient error
netmaker beginner, first let me thank you guys for making netmaker as it is today and looking forward for whats to come. I am trying to access my home LAN behind CGNat. The NM server is on a VPC running in docker. Netclient is on a LXC on my Proxmox server at home, on the same LAN
(192.168.1.0/24)
as I want to get access from a 'external client' (phone). NM server is Ingress & Relay, Netclient as the Egress. But when i specify
192.168.1.0/24
as the Egress adress, it throws errors as the ip route default is already there
default via 192.168.1.10 dev eth0
? Error:
[netclient] 2022-07-21 
[#] ip link add nm-mesh-home type wireguard
[#] wg setconf nm-mesh-home /dev/fd/63
[#] ip -4 address add 10.13.122.1 dev nm-mesh-home
[#] ip link set mtu 1280 up dev nm-mesh-home
[#] ip -4 route add 10.13.122.254/32 dev nm-mesh-home
[#] ip -4 route add 10.13.122.2/32 dev nm-mesh-home
[#] ip -4 route add 192.168.1.0/24 dev nm-mesh-home
RTNETLINK answers: File exists
[#] ip link delete dev nm-mesh-home
Where do I fail? Thanks for your help
b

bored-island-21407

07/21/2022, 9:17 AM
egress behind relay is problematic. Do you really need to relay the Netmaker client?
a

ancient-shampoo-56421

07/21/2022, 9:24 AM
I thought so as I the client is behind CGNAT but can try otherwise. But as long as the Netclient has troubles to come up correctly it hardly matters IMO