Port forwarding rule on WAN interface doen't work when VPN Client connected
Posted: Tue Jun 27, 2023 8:45 pm
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 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)?