port forwarding needs what kind of firewall rules?
Posted: Sun Oct 20, 2019 10:42 pm
A server on the LAN needs access from the Internet via a hAP ac lite (ver 6.45.6). Have created dst-nat entries for several TCP ports (Since it is a dynamic IP address from the ISP, the src address is not used. When attempting to connect, so far I get 'connection refused.' This is true for SSH, Telnet, and http.
Saw a comment in this forum about enabling the port in the Forward chain, but it was incomplete about how to do that and where in the rule list that rule should be placed. I have enteed rules:
Have not specified protocols above TCP: could be http, https, or something else.
Suggestions and hints greatly appreciated.
Saw a comment in this forum about enabling the port in the Forward chain, but it was incomplete about how to do that and where in the rule list that rule should be placed. I have enteed rules:
Code: Select all
[admin@MikroTik] /ip firewall nat> print
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; defconf: masquerade
chain=srcnat action=masquerade out-interface-list=WAN
ipsec-policy=out,none
1 ;;; WAN access to Cockpit on Metrics
chain=dstnat action=dst-nat to-addresses=192.168.1.15 to-ports=9090
protocol=tcp dst-address-type="" src-port=9090 dst-port=9090 log=no
log-prefix=""
2 X ;;; ssh to Metrics
chain=dstnat action=dst-nat to-addresses=192.168.1.15 to-ports=22
protocol=tcp src-port=22 dst-port=22 log=no log-prefix=""
3 ;;; port 3000 access
chain=dstnat action=dst-nat to-addresses=192.168.1.15 to-ports=3000
protocol=tcp src-port=3000 dst-port=3000 log=no log-prefix=""
4 X ;;; telnet port forwarding
chain=dstnat action=dst-nat to-addresses=192.168.1.15 to-ports=23
protocol=tcp src-port=23 dst-port=23 log=no log-prefix=""
Suggestions and hints greatly appreciated.