I have three routers…
- Smartrg SR516AC - connected to my ISP
- Asus - I wish to utilize this as my Management Network (MGMT)
- Mikrotik RB5009UG - I wish to utilize this as my External Network (XNIC)
The Smartrg connects to my ISP - WAN: 1.2.3.4, LAN: 192.168.2.1/24
The Asus connects to the Smartrg - WAN: 192.168.2.2/24, LAN: 192.168.0.1/24
I know the Management Network is double NAT’d, but it functions for my purposes.
All is well.
The External Network (XNIC) has a web server on it that must be accessible from the internet.
This is where I am stuck.
The Mikrotik connects to the Smartrg via DMZ.
Configuration of the Mikrotik is as follows…
/system reset-configuration keep-users=yes
After the Mikrotik has booted I connect with winbox.
I select ‘Quick Set’ and choose the following…
Mode: Router
Port: Eth1
Address Acquisition: static
IP Address: 192.168.2.4
Netmask: 255.255.255.0/24
Gateway: 192.168.2.1
DNS Server: 1.1.1.1
Local Network / IP Address: 10.0.0.1
Local Network / 255.255.255.0/24
Local Network / DHCP Server: yes
Local Network / NAT: yes
I then run the following cli command…
/ip firewall nat add chain=dstnat action=dst-nat protocol=tcp dst-port=80 to-address=10.0.0.246 to-port=80 comment=“Port forward HTTP”
That’s the total of my configuration.
In the winbox terminal this works…
/ping 10.0.0.246
My workstation has two NICs connected as follows…
- MGMT
- XNIC
My workstation is running a VM bridged to XNIC and configured with the IP of 10.0.0.246/24
From my workstation this works…
curl http://10.0.0.246
Therefore, the internal server that I wish to connect to is up and the firewall is open.
I then visit this online site to test remote access…
https://www.yougetsignal.com/tools/open-ports/
I enter in my statically assigned ISP IP, select port 80, press CHECK, and get no connection.
My understanding is that DMZ would direct all external requests to the Mikrotik.
I also assume that internal responses would pass freely back through the DMZ to their exteral requester.
Therefore, I have assumed that the standard NAT rule for port-forwarding would require no modifications to function with DMZ.
Alas, I seem wrong about something.
Running tcpdump on the 10.0.0.246 server displays incoming packets, so external requests seem to be coming in.
So my guess is that responses are not getting back through.
Any help would be greatly appreciated.
kendal