In Azure there is a Windows Server VM with the IP 10.1.0.5. On the remote router there is a device with ip 192.168.1.223.
So to summarize I have these networks:
- 10.8.0.0/24 (OpenVPN network)
10.1.0.0/24 (Azure virtual network)
192.168.1.0/24 (remote router's LAN)
- 10.1.0.5 (Windows Server VM in Azure)
10.1.0.4 (Linux VM/OpenVPN server in Azure)
10.8.0.3 (Router as client on the OpenVPN network)
192.168.1.223 (Device on the router's LAN)
The problem occurs when I want to send SNMP traps (UDP 162) from the device to the Windows Server VM. The packets are received with the source IP 10.8.0.3 (the router's IP on the OpenVPN network). I want the SNMP packets to arrive with the source IP from the device on 192.168.1.223, which is their actual source.
Is that possible using some set of POSTROUTING rules or configuration in the client.conf file of the remote router?