[Solved] Accessing a local 192.168.x.y address behind WAN with public address

Dear all,

My OpenWRT address is connected with WAN to a fiber ONT and receiving a public IPv4 address with DHCP. It appears that my ONT web status page is accessible on 192.168.4.2 on port 80 (I can ping this address).

Is there a way to assign an additionnal 192.168.4.x address to my WAN for access to my ONT web status page without loosing my public IP address? Some kind of Alias. I don't see how to do it in LuCi, maybe it is easier with command lines.

This would allow me to check ONT status remotely.

Thanks!

1 Like

You can exclude this address from the BCP38 blocklist:

uci add_list bcp38.@bcp38[0].nomatch="192.168.4.2/32"
uci commit bcp38
/etc/init.d/bcp38 restart
/etc/init.d/firewall restart
1 Like

Yes, this is the simpliest approach. Thanks.

1 Like

Is bcp38 a default package these days? I don't have it in 19.07?

If not, wouldn't the following solve the problem without need for another package:

I have that post bookmarked and refer to it often.

This is related to the previous thread:
[Solved] Site to site VPN with Wireguard and OpenWrt

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.