#9066·luci

luci-proto-wireguard:Generate configuration --> "Connection endpoint" does not retain settings when using a custom public IP

Author: DanrancanCreated Sep 24, 2026Updated Sep 25, 2026

Is there an existing issue for this?

  • I have searched among all existing issues (including closed issues)

screenshots or captures

No response

Actual behaviour

I am installing a wireguard via Luci using the Luci instructions in this tutorial. I am in a double natted setup with my OpenWrt Router behind my ISP Router. Therefore, my opwnwrt router acts as though my public IP is my ISP routers address. To mitigate this, and have the VPN configuratioin use my Public IP address from my ISP router, I go to "Interfaces » wg0 » Edit peer » Generate configuration » Connection endpoint", and in "Connection endpoint" I select "-- custom --" and enter my ISP routers Public IP address 123.456.78 .90.

This sets the endpoint in the box above the "Download peer configuration file". But it DOES NOT add that entry "Endpoint =" to my configuration file when I select the "Download peer configuration file" button. Instead the downloaded peer configuration is the Default connection endpoint. It doesn't save my custom Public IP in the "Connection endpoint" box. Also, once I go "back to peer configuration", and then go back to generate configuration, my ISP routers local (not public IP) IP address is again in "Connection endpoint" box. So my custom Public IP did not save in that box, or in the downloaded "Peer configuration file".

Please fix this so the custom IP settings for "Connection endpoint" box in "Interfaces » wg0 » Edit peer » Generate configuration" stays and also includes that Public IP in the "Download peer configuration file" button.

Expected behaviour

  1. Interfaces » wg0 » Edit peer » Generate configuration » Connection endpoint should retain --custom -- IP address settings.
  2. Interfaces » wg0 » Edit peer » Generate configuration » Download peer configuration file should include the Connection endpoint -- custom -- IP address in the downloaded file.

Steps to reproduce

go to "Interfaces » wg0 » Edit peer » Generate configuration » Connection endpoint", and in "Connection endpoint" I select "-- custom --" and enter my ISP routers Public IP address 123.456.78 .90.

Download peer configuration and see if those custom IP are saved in the downloaded files. They are most likely not!

Add a -- custom -- IP in the "Connection endpoint" entry box, and see if that endpoint retains settings after clicking the "Back to peer configuration" button. Then go back to "Generate Configuration" and the "Connection endpoint" settings will be reset to use the default IP address again, not your -- custom -- IP address.

Additional Information

bash
ubus call system board
{
	"kernel": "6.12.94",
	"hostname": "RT-AX89X-Host",
	"system": "ARMv8 Processor rev 4",
	"model": "Asus RT-AX89X",
	"board_name": "asus,rt-ax89x",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "25.12.5",
		"firmware_url": "https://downloads.openwrt.org/",
		"revision": "r33051-f5dae5ece4",
		"target": "qualcommax/ipq807x",
		"description": "OpenWrt 25.12.5 r33051-f5dae5ece4",
		"builddate": "1782737960"
	}
}

What browsers do you see the problem on?

Chrome

Relevant log output

bash