I'm not dumb, really I'm not. I've worked with SonicWall for years and have used Fortinet and PIC as well. But this MikroTik is driving me nuts.
All I want to do is have a LAN with a bunch of DHCP clients: wired PCs, wifi devices like phones and apliances that NAT out as IP address A,
AND a couple of servers that that each have their own IP 1:1 NATed IPs (call them B and C) with certain ports, like 80, 443, 25, etc, opened for incoming trafic.
I just can't figure out how to do this. I think i need a combination of a masquerade for the client only machines and a Destination NAT for the servers.
Then some firewall filters to open the ports. It seems easy in my head, but I just can't make it work.
I'm on a RouterBOARD hAP ac.
First I used the Quick Set to create the DHCP and configure ether1 as my WAN and ether2 as my LAN, that seems to have set up the masq properly. DHCP works I can connect out with my wired and wireless clients just fine, no problems there.
[admin@MikroTik] > /ip address print
# ADDRESS NETWORK INTERFACE
0 ;;; defconf
192.168.88.1/24 192.168.88.0 ether2
1 xxx.xxx.xxx.A/24 147.160.149.0 ether1
Next I connected my Server with a wire to port 3 set it up to get an IP via DHCP, and then make its IP to assignment Static in the MT's DHCP Leases page, call it 192.168.88.B
Then I followed the instructions in the MT manual about setting up a Destination NAT
Create an external address and bind it to the WAN
/ip address add address=xxx.xxx.xxx.B/32 interface=ether1
Set up the IN/OUT NAT rules Outside B goes to Inside B, and vice-verce
/ip firewall nat add chain=dstnat dst-address=xxx.xxx.xxx.B action=dst-nat to-addresses=192.168.88.B
/ip firewall nat add chain=srcnat src-address=192.168.88.B action=src-nat to-addresses=xxx.xxx.xxx.B
Now if I go back and look at the Quick Set, it's all messed up. The IPs for eth1 and eth2 have changed and I can't fix them, but still seems to work.
I can ping the external A address.
But I can't ping my new external B address. The internal B pings fine.
I haven't even gotten to the FW Filters yet, one step at a time.
I just want to make a simple ping work.
I need an Obi Wan.