The router with OpenWrt 21.02 works correctly, connecting from a remote Tailscal it presents to PLC as local client.
That with OpenWrt 22.03, that uses NFTables, doesn't work because the IP shown to PLC is that of remote Tailscale.
It's my fault or an expected behaviour?
Thanks
Nic
Create a SNAT rule to hide the tailscale address behind the router's LAN IP address.
uci add firewall nat
uci set firewall.@nat[-1].name='SNAT-rule'
uci set firewall.@nat[-1].src='lan'
uci set firewall.@nat[-1].target='SNAT'
uci set firewall.@nat[-1].dest_ip='192.168.0.241'
uci set firewall.@nat[-1].snat_ip='192.168.0.1' # Router LAN IP addr
uci set firewall.@nat[-1].src_ip='100.64.0.0/10'
uci set firewall.@nat[-1].proto='tcp'
uci set firewall.@nat[-1].dest_port='80'