Community discussions

MikroTik App
 
aliboy
newbie
Topic Author
Posts: 35
Joined: Thu Aug 01, 2019 9:09 pm

Port Forwarded from VPS

Tue Mar 08, 2022 9:33 pm

I am using mobile data for internet connection and it is behind a CGNAT. I don't have my own public IP address. I found an article online which gives a guide on how to port forward a certain port from a Virtual Server in the Cloud to a local network. The Virtual server has its own public IP address and it can run a Linux server. The article shows that a Wireguard was installed on the virtual server and the local non-Mikrotik router that is capable of using a Wireguard was used.

https://medium.com/@oliverswitzer_91379 ... 763d443c99

Is this possible on Mikrotik also?
 
404Network
Member Candidate
Member Candidate
Posts: 285
Joined: Wed Feb 16, 2022 2:04 pm

Re: Port Forwarded from VPS

Tue Mar 08, 2022 10:38 pm

Yes.......
Read this...........
viewtopic.php?t=183427
 
aliboy
newbie
Topic Author
Posts: 35
Joined: Thu Aug 01, 2019 9:09 pm

Re: Port Forwarded from VPS

Wed Mar 09, 2022 8:49 am

Thank you. This is helpful. I just don't know how to do the last part.
Once done, you should have connectivity from Linode's instance public IP address. Try port forwarding port in your Mikrotik router and checking port on your Linode's instance IP - it should return what your router is supposed to return.

Note that the traffic is coming from wg99 interface, IP 10.200.200.1, so you might need to adjust your port forwarding rules accordingly.

Say I have the default configuration in the Mikrotik router (192.168.88.1 as the LAN address) and I followed the instructions to configure the Wireguard and peers in Mikrotik router, if I have to do the port forwarding in Mikrotik should I do this in Firewall?

General:
chain = dstnat
Dst. Address = <public IP of the Virtual Server>

Action:
action = dst-nat
To Addresses = 192.168.88.1
 
User avatar
Hominidae
Member
Member
Posts: 309
Joined: Thu Oct 19, 2017 12:50 am

Re: Port Forwarded from VPS

Wed Mar 09, 2022 9:34 am

...no need to create a double post....pls stick to one thread, whichever you find appropriate of the two.
 
aliboy
newbie
Topic Author
Posts: 35
Joined: Thu Aug 01, 2019 9:09 pm

Re: Port Forwarded from VPS

Fri Mar 11, 2022 12:13 am

I'll use the other thread

viewtopic.php?t=183427

Who is online

Users browsing this forum: loloski and 16 guests