I am trying to setup port forwarding. I managed to make UDP forwarding work, but TCP is not working. When I'm trying to connect to my server I see the following incoming packets with ngrep:
Code: Select all
T 94.153.49.165:13782 -> 192.168.88.191:25565 [R] #39
......
###
T 94.153.49.165:13782 -> 192.168.88.191:25565 [R] #42
......
####
T 94.153.49.165:13782 -> 192.168.88.191:25565 [R] #46
......
#
Here is my firewall rules export:
Code: Select all
# sep/27/2021 02:48:31 by RouterOS 6.30.2
# software id = UHAF-16I8
#
/ip firewall filter
add chain=input comment="default configuration" protocol=icmp
add chain=input comment="default configuration" connection-state=\
established,related
add action=drop chain=input comment="default configuration" in-interface=\
ether1-gateway
add action=fasttrack-connection chain=forward comment="default configuration" \
connection-state=established,related
add chain=forward comment="default configuration" connection-state=\
established,related
add action=drop chain=forward comment="default configuration" \
connection-state=invalid
add action=drop chain=forward comment="default configuration" \
connection-nat-state=!dstnat connection-state=new in-interface=\
ether1-gateway
add chain=forward comment="Allow port forwarding" connection-state=new \
in-interface=ether1-gateway
/ip firewall nat
add action=masquerade chain=srcnat comment="default configuration" \
out-interface=ether1-gateway
add action=netmap chain=dstnat dst-port=9 in-interface=ether1-gateway \
protocol=udp to-addresses=192.168.88.191 to-ports=9
add action=dst-nat chain=dstnat dst-port=25565 in-interface=ether1-gateway \
protocol=tcp to-addresses=192.168.88.191
add action=dst-nat chain=dstnat dst-port=80 in-interface=ether1-gateway \
protocol=tcp to-addresses=192.168.88.191 to-ports=80