Port forwarding rule on WAN interface doen't work when VPN Client connected

Hello, everybody.

I am a newbie in Mikrotik configuration.
I need forward port from WAN (ether1 with public IP) to local host in my local network.
I did this through WinBox: IP → Firewall → Nat → Add Rule:

Chain: dstnat
Protocol: 6 (tcp)
Dst Port: 1000
In Interface: ether 1

Action:
Action: netmap
To Addresses: 192.168.46.201
To Ports: 1000

And it works when I coonects throguth public IP X.X.X.X:1000 until I connect to L2TP/IPSec server Y.Y.Y.Y with enabled default route.
Device adds route 0.0.0.0 through Y.Y.Y.Y - And I think that is why forwarding is not working.

Could you please help me how to configure right? That VPN connection and port forwading works (on WAN ip)?

I think you need to add a policy rule (action=none) with lower priority that would exclude TCP 1000 from IPsec. See this topic for some reference.

I tried to add this rule - but no effect. I think then Mikrotik connects to VPN server it adds default route though l2tp interface.
So I see syn packets received by router WAN interface but reply packets seem to go throuhg l2tp interface through WAN.

Never needed to set up an L2TP/IPsec (I’m using IKEv2). Looks like I was wrong regarding policies as L2TP is route based. Try firewall marks as means to select a specific route, like discussed in this thread. Search forum for other examples.

Thanks. I already found topic which explain how to use different routing tables.

Hi engel, did you manage to solve your problem? I have a pretty similar one (without Ipsec) and I am getting stuck.