Hi,
I’m new to networking and I’m trying to set up my home LAN. I’ve dstnat’ed some ports, like 22, 80 and 443. For a reason I can’t understand, 443 is responding from WAN even if there are no filter rules allowing it.
These are my firewall filter rules and my NAT:
/ip firewall filter
add chain=forward comment=FORWARD_ESTABLISHED_RELATED log-prefix=\
FORWARD_ESTABLISHED_RELATED
add chain=input comment=INPUT_ESTABLISHED_RELATED connection-state=\
established,related log-prefix=INPUT_ESTABLISHED_RELATED
add chain=input comment=INPUT_LAN src-address-list=LAN
add chain=forward comment=FORWARD_LAN src-address-list=LAN
add action=drop chain=input comment=PING_BROADCAST dst-address=192.168.1.255 \
protocol=icmp
add action=drop chain=input comment=DNS_FROM_WAN_TCP dst-port=53 protocol=tcp
add action=drop chain=input comment=DNS_FROM_WAN_UDP dst-port=53 protocol=udp
add action=drop chain=input comment=INPUT_INVALID connection-state=invalid
add action=drop chain=forward comment=FORWARD_INVALID connection-state=invalid
add action=drop chain=input comment=INPUT_ANYTHING_ELSE
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe-out1
add action=masquerade chain=srcnat out-interface=ether1-wan
add action=dst-nat chain=dstnat dst-port=22 in-interface=pppoe-out1 log=yes \
protocol=tcp to-addresses=192.168.1.1
add action=dst-nat chain=dstnat dst-port=80 in-interface=pppoe-out1 log=yes \
protocol=tcp to-addresses=192.168.1.1
add action=dst-nat chain=dstnat dst-port=443 in-interface=pppoe-out1 log=yes \
protocol=tcp to-addresses=192.168.1.100
Can you tell why am I able to hit the NAT from WAN? It is weird because it is only happening with port 443, not with 22 and 80 (and there are servers listening).
Thank you!