Answer the question
In order to leave comments, you need to log in
How to smartly forward a port to access an LTE modem via VPN?
There is a Mikrotik, 192.168.188.1 , an LTE 192.168.8.1 modem is plugged into it , Mikrotik is also in the VPN network 10.8.0.0/16
BestSignal - the name of the VPN interface
10.8.0.30 - the address of the router in the VPN network
How to formulate rules to get to the modem from VPN ?
tried like this:
0 chain=dstnat action=dst-nat to-addresses=192.168.8.1 to-ports=80
protocol=tcp in-interface=BestSignal dst-port=80 log=yes
log-prefix=""
1 chain=srcnat action=src-nat to-addresses=10.8.0.1 to-ports=80 protocol=tcp
src-address=192.168.8.1 out-interface=BestSignal src-port=80 log=no
log-prefix=""
Answer the question
In order to leave comments, you need to log in
Why do port forwarding at all if you have a VPN connection with Mikrotik? and the modem's mesh is a directly connected mesh, it should be available anyway if it's not blocked by a firewall.
80 is used by Mikrotik itself. In theory, it should not interfere, but as an option, try a different port.
chain=dstnat action=dst-nat to-addresses=192.168.8.1 protocol=tcp dst-address=10.8.0.30 dst-port=80 log=no log-prefix=""
No second rule
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question