I have a net structure: Here is wi-fi router (mikrotik hAP ac^2 arm, OS 7.7 Stable, with static IP from internet provider -x.x.x.x). Then the web server connected to wi-fi router (on 7012 port) and OpenVPN Server (on 9026 port, by tcp protocol) located on one PC. Static ip in local network is y.y.y.y. OpenVPN Server has virtual network - z.z.z.z/24. I'd like to costomize Internet traffic redirection from x.x.x.x:7012 to y.y.y.y:7012.
I performed this rule inside the local net:
Code: Select all
add action=dst-nat chain=dstnat dst-address=x.x.x.x dst-port=7012 in-interface=bridge protocol=tcp to-addresses=y.y.y.y to-ports=7012
How to make it?
Thanks in advance.