Error when adding local lan ip #7

Closed
opened 2025-11-13 11:47:10 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @lndlw on GitHub (Jan 9, 2025).

I'm trying to add my local LAN IP to access my service. However, in the resources tab, I get an error saying ' invalid target ip - Target id must be with in the site subnet'. Albeit, I can add wire guard ip to the resources.

My setup:
1 ) Running the panel on a ubuntu 24.0 vps
2) Cient- Openwrt router using wireguard profile.

Also, I'm unable to ping/resolve the subdomain which I've set for the router.

Please let me know if you need any other information.

Originally created by @lndlw on GitHub (Jan 9, 2025). I'm trying to add my local LAN IP to access my service. However, in the resources tab, I get an error saying ' invalid target ip - Target id must be with in the site subnet'. Albeit, I can add wire guard ip to the resources. My setup: 1 ) Running the panel on a ubuntu 24.0 vps 2) Cient- Openwrt router using wireguard profile. Also, I'm unable to ping/resolve the subdomain which I've set for the router. Please let me know if you need any other information.
Author
Owner

@oschwartz10612 commented on GitHub (Jan 9, 2025):

Hi,

We need more documentation about this I think:

When using default WireGuard and you generate a config it chooses a /29 subnet from the range defined in the config file for Gerbil. Given the routing typology Gerbil can only route to IPs in the subnet because it would not know how to route outside of it and there could be overlaps across sites.

So you have a couple of options I think: you can set up DNAT on the OpenWRT router from some source port on the tunnel's IP endpoint to your destination on your network - I think this is probably best.

Or you could edit the subnet that gerbil uses so that it matches your local network in some way. This would require you to reinstall the system I think.

Does that help?

@oschwartz10612 commented on GitHub (Jan 9, 2025): Hi, We need more documentation about this I think: When using default WireGuard and you generate a config it chooses a /29 subnet from the range defined in the config file for Gerbil. Given the routing typology Gerbil can only route to IPs in the subnet because it would not know how to route outside of it and there could be overlaps across sites. So you have a couple of options I think: you can set up DNAT on the OpenWRT router from some source port on the tunnel's IP endpoint to your destination on your network - I think this is probably best. Or you could edit the subnet that gerbil uses so that it matches your local network in some way. This would require you to reinstall the system I think. Does that help?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#7