Hello,
We have an OPNSense on our internal network behind a router/firewall (Lancom), which is only supposed to make Wireguard connections.
Ports 51820-59999 are port forwarded to the OPNSense on the Lancom.
IP addresses:
Lancom 172.17.0.254
OPNSense 172.17.219.12
The OPNSense doesn’t have a firewall enabled; it’s only connected to the internal network via a network card.
Our problem is that we’ve already set up several Wireguard connections, but not all of them work perfectly. Those connected to a FritzBox via site2site work flawlessly.
However, there are also many connections that have been established, or are supposed to be established, to Teltonika routers. These are RUT240/RUT241/RUT260 routers.
I need support with how to set up the instance, the peer, on both sides (Teltonika and OPNsense).
We have the internal network 172.17.0.0/16. We need connections to external networks (192.168.1.0/24, 192.168.2.0/24, 192.168.3.0/24, etc.).
Here’s a configuration we’re currently using, but it’s not working properly. We can reach the devices on the network, but the return path isn’t stable for some.
OPNSense - 172.12.219.12
Instance - Network01:
Tunnel address: 192.168.15.0/24
Peer - Network01:
Allowed IPS: 192.168.15.0/24
Endpoint Address: dyndns…..
Port: 51820
TELTONIKA RUT240 - 192.168.15.254
Instance - Company
IP Addresses: 192.168.15.0/24
DNS servers: 192.168.15.254, 172.17.219.1
Peer Company:
Endpoint: dns name public
Allowed IPs: 172.17.0.0/16, 192.168.15.0/24
Endpoint port: 51820