My goal is to be able to connect to private LAN (192.168.1.0/24) via Ubuntu VPS.
For example I want this forwarding: http://{Ubuntu WAN IP}:443 --> http://{Private LAN IP}:443
Please take a look at attached screenshots.
As I understand the problem is in inability to communicate between two gateways 192.168.7.1 and 192.168.1.1.
- Ubuntu VPS knows the route to private LAN subnet (192.168.1.0/24) and MikroTik router knows route to OpenVPN network (192.168.7.0/24).
- Ubuntu can ping MicroTik OpenVPN interface (192.168.7.2) and any OpenVPN client (192.168.7.0/24) and communication like http://{Ubuntu WAN IP}:443 --> http://{any OpenVPN client IP}:443 works fine.
- MikroTik can ping Ubuntu’s OpenVPN interface (192.168.7.1).
- Private LAN’s hosts (192.168.1.0/24) can ping MicroTik OpenVPN interface (192.168.7.2).
But !!!
- Ubuntu can’t ping MicroTik private LAN’s interface (192.168.1.1).
- Private LAN’s hosts (192.168.1.0/24) can’t ping Ubuntu’s OpenVPN interface (192.168.7.1).
I would very happy if someone is able to explain what’s really going on? Why routing doesn’t work?
For example I want this forwarding: http://{Ubuntu WAN IP}:443 --> http://{Private LAN IP}:443
Please take a look at attached screenshots.
As I understand the problem is in inability to communicate between two gateways 192.168.7.1 and 192.168.1.1.
- Ubuntu VPS knows the route to private LAN subnet (192.168.1.0/24) and MikroTik router knows route to OpenVPN network (192.168.7.0/24).
- Ubuntu can ping MicroTik OpenVPN interface (192.168.7.2) and any OpenVPN client (192.168.7.0/24) and communication like http://{Ubuntu WAN IP}:443 --> http://{any OpenVPN client IP}:443 works fine.
- MikroTik can ping Ubuntu’s OpenVPN interface (192.168.7.1).
- Private LAN’s hosts (192.168.1.0/24) can ping MicroTik OpenVPN interface (192.168.7.2).
But !!!
- Ubuntu can’t ping MicroTik private LAN’s interface (192.168.1.1).
- Private LAN’s hosts (192.168.1.0/24) can’t ping Ubuntu’s OpenVPN interface (192.168.7.1).
I would very happy if someone is able to explain what’s really going on? Why routing doesn’t work?