I’m trying to connect Siemens PLC which is communicating via BACnet<>LON router. I have OpenVPN connection to Teltonika and I’m able to fetch BACnet objects from the router itself but not from the PLC using port forwarding rules.
Yabe is running on my laptop and there is nothing connected LAN and it using dhcp. Yabe’s local endpoint is 10.100.16.10.
Yes, I chose “No rewrite” to internal port so it is using same port as external, right? This works with devices that use direct communication, but not if communicating through BBMD device (Can read the objects from BBMD device itself but not the other like the LON device in this case).
What of these (eth0, eth0.1, eth0.2, br-lan) is used for VPN then?
Here is picture of the BACnet settings in RUT right now. I’ve tried all kind of combinations but haven’t got it working. How should settings look like?
As your setup is pretty complex and complicated, a few clarifications would be helpful to better understand it:
What exactly is 192.168.0.3 in your network, is it the PLC?
Does the eth0.2 interface actually have an IP assigned to it?
Just to mention, BACnet is currently not enabled in the general configuration.
Could you also share what interfaces/devices are available when creating a BIP interface under the BIP configuration? Port 47808 is correct for BACnet/IP.
In short, you’ll need to create two BIP configurations: one for the VPN interface (check the OpenVPN interface name with ifconfig) and one for the local network (typically br-lan or eth0.1, depending on where the BACnet PLC is connected).
If there’s no VPN interface displayed in BIP configuration, then it might need to be added via CLI by editing the /etc/config/bacnet_router configuration to specify it under the config port '2' section.
Additionally, for this type of setup, a TAP style VPN might be necessary to properly broadcast UDP traffic through BACnet communication. If possible, consider testing it with VPNs like ZeroTier or Tailscale.