Introduction as this my first post:
First of all, you have my and many others great thanks for every supporter and all of your work done on such great service and community.
I’m a starter at this field, getting certification for the first level of routing and switching (not mikrotik at the moment) just to enter some job interviews and start in the networking field. I’m not sure I can mention the name of the other company here. However, the firewall and the hotspot concepts are great puzzles to me at this point so I’m sorry if this sounds to n00b or I post this in the wrong section or something, this is my first post.
The problem:
1- The main problem, I get connection slowness and gateway timeout (I get time out pinging from my PC to the gateway as well) unless I disable the port forwarding rules that I made for using bittorrent application on it. Now here are my NAT rules which has four rules for opening (forwarding) two ports (I got this from MikroTik documentation) on TCP and UDP protocols
I use 5.26 version by the way.
2015-10-05_20-16-22.jpg
/ip firewall connection tracking
set enabled=yes generic-timeout=10m icmp-timeout=10s tcp-close-timeout=10s \
tcp-close-wait-timeout=10s tcp-established-timeout=1d \
tcp-fin-wait-timeout=10s tcp-last-ack-timeout=10s \
tcp-syn-received-timeout=5s tcp-syn-sent-timeout=5s tcp-syncookie=no \
tcp-time-wait-timeout=10s udp-stream-timeout=3m udp-timeout=10s
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
/ip firewall nat
add action=masquerade chain=srcnat disabled=no src-address=192.168.88.0/24
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes to-addresses=0.0.0.0
add action=dst-nat chain=dstnat disabled=no dst-port=65529 in-interface=wan \
protocol=tcp to-addresses=192.168.88.49 to-ports=65529
add action=dst-nat chain=dstnat disabled=no dst-port=65529 in-interface=wan \
protocol=udp to-addresses=192.168.88.49 to-ports=65529
add action=dst-nat chain=dstnat disabled=no dst-port=65520 in-interface=wan \
protocol=tcp to-addresses=192.168.88.49 to-ports=65520
add action=dst-nat chain=dstnat disabled=no dst-port=65520 in-interface=wan \
protocol=udp to-addresses=192.168.88.49 to-ports=65520
/ip firewall service-port
set ftp disabled=no ports=21
set tftp disabled=no ports=69
set irc disabled=no ports=6667
set h323 disabled=no
set sip disabled=no ports=5060,5061 sip-direct-media=yes
set pptp disabled=no
I generated this code using this command
/ip firewall NAT export file=“firewall_rules.txt”
But for some reason I can’t see the commands for the hotspot so I figured I should attach the screenshot image. I should mention that I ordered the rules to make the forwarding ports rules on the TOP and changed (played the order) many times but the problem always there (it shows after some time of usage not instantly) until I disable these rules
add action=dst-nat chain=dstnat disabled=no dst-port=65529 in-interface=wan \
protocol=tcp to-addresses=192.168.88.49 to-ports=65529
add action=dst-nat chain=dstnat disabled=no dst-port=65529 in-interface=wan \
protocol=udp to-addresses=192.168.88.49 to-ports=65529
The bittorrent app that use that port doesn’t have that many of running connection but not few either and no traffic in anyway (I’m 100% sure of that) just reporting some data. I tried to change the port by the way it was different and I changed and the problem remains.
2- Is there better way maybe I’m not aware of to export commands from the GUI winbox of any part of the router like the hotspot rules, users , firewall .. etc other than the export command ? Also, why the export command didn’t export the hotspot NAT rules ?
Again and ever, thank you and sorry for the long detailed info but I just wanted to provide as much as I can to not waste much time of yours.