VPN to VPN forwarding issue

Hi everybody,

I need some help with my vpn configuration…

I have two vpn server activated on mikrotik server
OpenVPN and L2TP

OpenVPN ip range is 10.0.10.50-100 and GW 10.0.10.254
L2TP ip range is 10.0.2.50-100 and GW 10.0.2.1

The issue is when I’m connected via L2TP VPN and I try to reach “10.0.10.x” Openvpn clients, I’m connected on clients with 10.0.10.254 (openvpn GW ip). I would use my real IP (10.0.2.50).

for example:
My pc is connected on L2TP with IP address 10.0.2.50
and I open ssh connection to 10.0.10.10 (openvpn client)
when I check the access logs the logged ip address is 10.0.10.254 (openvpn local ip)

how I can force to real ip ?


My firewall conf.

0 ;;; masquerade
chain=srcnat action=masquerade out-interface=ether1 log=no log-prefix=“”

1 ;;; masquerade
chain=srcnat action=masquerade out-interface=all-ppp log=no log-prefix=“”

2 ;;; monitoring server tcp http
chain=dstnat action=dst-nat to-addresses=10.0.3.3 to-ports=80
protocol=tcp dst-address=51.255.x.xxx dst-port=80 log=no log-prefix=“”

3 ;;; monitoring server tcp https
chain=dstnat action=dst-nat to-addresses=10.0.3.3 to-ports=443
protocol=tcp dst-address=51.255.x.xxx dst-port=443 log=no log-prefix=“”

4 ;;; monitoring server tcp 5043
chain=dstnat action=dst-nat to-addresses=10.0.3.3 to-ports=5043
protocol=tcp dst-address=51.255.x.xxx dst-port=5043 log=no log-prefix=“”

5 ;;; genetec mobile
chain=dstnat action=dst-nat to-addresses=10.0.3.200 to-ports=8100
protocol=tcp dst-address=51.255.x.xxx dst-port=8100 log=no log-prefix=“”

Thanks in advance !!!