Answer the question
In order to leave comments, you need to log in
How to forward port on Mikrotik vpn client?
There is a Web server on a gray IP and a Mikrotik router on a white IP. How can I redirect requests to the 8056th port of the router to redirect to that server? As I understand it, this is done through a VPN, but how?
Thank you for your reply
Answer the question
In order to leave comments, you need to log in
1. Raise vpn on Mikrotik, connect the server, hit all requests to the address received by the server.
2. Buy a white IP from the provider and do not engage in perversions.
if the Web server is behind Mikrotik in LAN, then ds-nat
add action=dst-nat chain=dstnat comment=WEB dst-address= WhiteIP dst-port=80 in-interface=ether1-gateway protocol=tcp to-addresses= IPWEBforNAT to-ports=80
Server on what? Before the server there is a router to which there is an access? Or a server in the cloud?
In any case, you need to raise the VPN between them. An interface will appear on Mikrotik behind which your server with a gray ip will hide. On Mikrotik do dst-nat 80 port on the server interface. In production!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question