Hi
this is my first attempt at using a Miktotik router. I have an RB 3011 Ui AS-RM. I wish, ultimately to use this to fail over my multiple ISPs for the web services I host.. For now I am just setting up a single WAN and do port forwarding to a host in a DMZ. Later, I will expand the usage as I lean more about managing this neat little box.
So - a little embarrassing. I read this: http://wiki.mikrotik.com/wiki/Manual:IP/Firewall/NAT#Port_mapping and thought I’d done things right but I cannot seem to get through to my host from outside. It has been many years since I’ve created a rule manually using iptables so I’ve been using the GUI instead.
I have The following output from the commands others in this tread were asked for:
[Roger@trk-mtk-01] /ip> address print detail
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; defconf
address=192.168.0.1/24 network=192.168.0.0 interface=ether2-master actual-interface=bridge
1 address=64.251.74.211/29 network=64.251.74.208 interface=ether1 actual-interface=ether1
[Roger@trk-mtk-01] /ip> route print detail
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
0 A S dst-address=0.0.0.0/0 gateway=64.251.74.209 gateway-status=64.251.74.209 reachable via ether1 distance=1 scope=30 target-scope=10
1 ADC dst-address=64.251.74.208/29 pref-src=64.251.74.211 gateway=ether1 gateway-status=ether1 reachable distance=0 scope=10
2 ADC dst-address=192.168.0.0/24 pref-src=192.168.0.1 gateway=bridge gateway-status=bridge reachable distance=0 scope=10
[Roger@trk-mtk-01] /ip> firewall export
# oct/18/2016 14:37:27 by RouterOS 6.34.3
# software id = 5AVW-BE3W
#
/ip firewall filter
add chain=input comment="defconf: accept ICMP" protocol=icmp
add chain=input comment="defconf: accept established,related" connection-state=established,related
add action=drop chain=input comment="defconf: drop all from WAN" in-interface=ether1
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
add chain=forward comment="defconf: accept established,related" connection-state=established,related
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface=ether1
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" out-interface=ether1
add action=dst-nat chain=dstnat comment="RT - SSH" dst-address=64.251.74.211 dst-port=22 protocol=tcp to-addresses=192.168.0.11 to-ports=22
add action=dst-nat chain=dstnat comment="RT - SMTP" dst-address=64.251.74.211 dst-port=25 protocol=tcp to-addresses=192.168.0.11
add action=dst-nat chain=dstnat comment="RT - HTTP" dst-address=64.251.74.211 dst-port=80 protocol=tcp to-addresses=192.168.0.11
add action=dst-nat chain=dstnat comment="RT - HTTPS" dst-address=64.251.74.211 dst-port=443 protocol=tcp to-addresses=192.168.0.11
add action=dst-nat chain=dstnat comment="TRK-KVM-01 - SSH" dst-address=64.251.74.211 dst-port=2220 protocol=tcp to-addresses=192.168.0.20 to-ports=22
add action=dst-nat chain=dstnat comment="TRK-KVM-03 - SSH" dst-address=64.251.74.211 dst-port=2210 in-interface=ether1 log=yes protocol=tcp to-addresses=192.168.0.10 to-ports=22
I can ping 192.68.0.10 from the RB 3011 and other hosts on the 192.168.0.0/24 subnet.
I can ssh into 192.68.0.10 on port 22 from other hosts on the 192.168.0.0/24 subnet but not from the RB 3011 (192.168.0.1).
SSH into 64.251.74.211 ro port 2210 times out.
SSH to 64.251.74.211 port 22 times out.
I have not changed the services under >IP : services yet none of the services are available despite being listed in the GUI as active.
I’m missing something fundamental here.
Any suggestions?
Paul