Hi Zerobyte
I setup ether6 as my DMZ interface and set master port to none. The IP of the interface as 172.28.20.1
The webservers ip address is 172.28.20.254 and connected to ether6
I setup NAT as the following
Chain - DST-NAT
Protocol: tcp
dst.port : 80
in.interface: pppoe-out1 (This is my wan connection via ether1 which is connected to my modem)
action : dst-nat
To address: 172.28.20.254
To ports: 80
I tried to set it up DST-NAT as you said in your post but if I put in my LAN IP address as !172.28.8.0/24 in the src.address (This is my LAN) instead of using the in.interface as ive done it above. When I tried to navigate to say google from my network it would show my webserver intead of google.
Setting the NAT alone wouldn’t let me in to the webserver from outside my network so I also set a firewall rule to
in interface: pppoe-out1
out interface: ether6
protocol: tcp
port :80
I can now successfully connect to my webserver from OUTSIDE my network.
I then setup firewall rules as follows as you suggested
in : ether6
out: ether2-master-local (LAN)
action : DROP
This prevented me from being able to ping anything from within an SSH session on my webserver to my LAN! (Perfect)
But can still ping my webserver from my lan devices (Perfect!)
I then in the mikrotik log saw that the webserver was being blocked from being able to get out onto the internet. So i set up another firewall rule to allow this by
in interface: ether6
out interface: pppoe-out1
action: accept
I can now ping 8.8.8.8 from my webserver.
The only issue I have now is that if i try and go to my public domain name from WITHIN my LAN. The page wont load…
Any ideas why?
Can you also confirm that the way ive set all this up above in terms of firewalls/NAS is correct and secure? Just because I deviated slightly from how you said to set it up.