I have a TP-Link AC1750 ADSL2+ Modem Router which is connected to RB-750GL Mikrotik and all the other computers are connected to that Mikrotik (via switch). I have a simple question, there is a webserver connected to Mikrotik and I created a virtual server in the ADSL router, but i am not able to reach the webserver from the internet.
The IP of the ADSL router is 192.168.1.1 and Mikrotik router IP is 192.168.0.1 (Mikrotik is also running DHCP for computers).
Do I have to open ports with the IP of the webserver (which is 192.168.0.98) in ADSL and Mikrotik router ?
What IP did you set on the Virtual Server of the Router/Modem.
I assume you put the IP of the MikroTik, which should be something like 192.168.1.x
On the MT you should then create a NAT rule like
/ip firewall nat
add chain=dstnat action=dst-nat in-interface= dst-address= protocol=tcp dst-port=80 to-address=192.168.0.98 to-ports=80On the ohter hand, I looked at the manual of the router you could also put in the IP address of the sever itself directly.
But in that case you have to create a static route for that IP to forward the traffic to the routerboard.
Also looked it up in the manual and there is an entry where you can specify a static route.
Create a route for the IP of the server only, or if you want for the complete 192.168.0.0 network.
In any case forward the traffic to the IP address of the routerboard in the 192.168.1.0 range.
I did was required. I was even able to connect to my xmpp server from the internet.
Ill tell everyhting what I did. What i did was that I changed some settings, I changed the Mikrotik IP to 192.168.0.60 on ether port 1 and 192.168.2.1 to ethernet port 2.
In the TP-Link ADSL router I created a static route, Destination: 192.168.2.0, Gateway: 192.168.0.60. Created a virtual server: 192.168.0.60, ports opened : 5222-5223 (for xmpp chat server).
In Mikrotik, I added the following settings in the ip/firewall/nat section
Glad to hear you managed!
My only remark is that since the TP link can route to the webserver behind the mikrotik, you could put the ip of the webserver as virtual server and drop the nat rule.
Probably you also have a masquerade rule which then need to be deleted.
This chat server was placed in the office and now the management wants to move this CHAT server (of which i have done the settings) to another place, which is wirelessly connected to the office. (feeling pity for myself as this is another exercise for me).
Please help me and correct me if I am wrong.
An ethernet port of the router has an IP 192.168.1.10 and it is a part of a vlan, connected to the wireless device making a ptp link with the other wireless device. And on the other side, another Mikrotik router is placed, whose 1 ethernet port has an IP 192.168.1.20. The other port of the IP has an address 192.168.2.10 and via this link, these two sites are connected.
Will it be possible that the Chat server be placed at the remote site. If I open the ports and create virtual servers in TP-link modem-router and then net-mat/masquerade the ports and IP on the remote site, will I be able to access the chat server from the internet? (As far as I think I will be able to do that, but I dont have any experience as such so I am quite unsure).
Do you have any guidelines for me?.. Your opinion advices are required and will be very helpful.