I have the following setup running smoothly for a long time. The icinga server in the company network monitors various services on a home server through direct IPv6 connectivity (no VPN, no NAT).
+-------------------------------------------------+
| company network +----------------------+ |
| | icinga | |
| | | ^ | |
| +--+-+-----------------+ |
| | | |
| +------------+-+----------+ |
| | router | | | |
| | | | | |
+------------+--^-+-------+-+----------+----------+
| | | |
| | | |
+----+-v-------+-+--------------+
| internet | | |
+----^-+-------+-+--------------+
| | | |
| | | |
+---------------+-v-------+-+---------------------+
| home office | | |
| +---+-+-----------------+ |
| | v | | |
| | home server | |
| +-----------------------+ |
+-------------------------------------------------+
Now I needed to connect the home server to the company internet via OpenVPN, It works flawlessly, I can connect to the whole company network using IPv4 (NAT) and IPv6 (official IP addresses but routed though OpenVPN). Everything works, except the monitoring traffic from the icinga server is delivered to the home server directly and the replies travel through the OpenVPN (because the route matches more closely).
+-------------------------------------------------+
| company network +----------------------+ |
| | icinga | |
| | | | |
| +--+-------------------+ |
| | |
| +------------+------------+ |
| | router | X vpn | |
| | | | ^ | | |
+------------+--^-+-------+-+---+-+----+----------+
| | | | | |
| | | | | |
+----+-v-------+-+---+-+--------+
| internet | | | | |
+----^-+-------+-+---+-+--------+
| | | | | |
| | | | | |
+---------------+-v-------+-+---+-+---------------+
| home office | | | | |
| +---+-+---+-+-----------+ |
| | v | | v | |
| | home server | |
| +-----------------------+ |
+-------------------------------------------------+
This by itself would not be a problem, but OpenVPN refuses to deliver the packets, they are discarded in the router that runs the OpenVPN (marked with the X in the graphic above):
Feb 9 11:34:35 routersrv1 ovpn-server[1349]: JohnDoeProxmox/11.22.33.44:58491 MULTI: bad source address from client [2003:12:34:56:aaaa:bbff:febb:cccc], packet dropped
I don't think it's an iptables issue, the routerserver should know where to deliver the packets. Any ideas where to start fixing this?
I can post the whole config, although I don't think it is necessary, it is more of a routing problem than a classic openvpn issue. My home office has a dynamic IPv6 subnet, so adding manual routes would be difficult.
Regards and thanks for all types of help
Thomas