I am trying to do a port forward for plex.tv on port 32400. I see that the rule i made is being hit but plex.tv is unable to connect to my home server. My setup: I have bell fibe. My mikrotik router is plugged in one of my lan port on the bellrouter. i made an pppoe connection on mikrotik to have a dedicated public ip.
I then setup a nat rule for port 32400 that redirect the traffic to my server. I add a rule to log the traffic :
dstnat dstnat: in:Bell Fibe out:(none), proto TCP (SYN), 54.176.67.158:17792->public bell ip:32400, len 60
If you want to allow all NAT port forwards, then you can put just one rule in the forward chain of the filter table:
action=accept connection-nat-state=dstnat
This way, if you add more port forwards to your NAT, then you won’t need to remember to go allow them in the filter rules.
I don’t know what revision of ROS added this matcher, but it sure is nice.
i have webfig 5.9. What do you mean with ROS revision ?
i have try to add this command in a terminal but i did not have the option to add connection-nat-state=dst-nat ??
here is the command i did: firewall filter add chain=forward connection → the only options here are connection-limit connection-rate and connection-type…
Is there any particular reason that you’re running such an old version of ROS (RouterOS) ?
The connection nat state matcher didn’t exist in 5.9
You should probably upgrade to something current - the only thing I can remember that makes upgrading 5>6 troublesome is the simple queues because they made some big changes in how simple queues work when they released ROS v6. (which was back in 2012 by the way)
ip address print
Flags: X - disabled, I - invalid, D - dynamic
ADDRESS NETWORK INTERFACE
0 ;;; default configuration
192.168.88.1/24 192.168.88.0 ether2-master-local
1 D 192.168.2.51/24 192.168.2.0 ether1-gateway
2 D 69.156.166.241/32 10.11.16.217 Bell Fibe
Route print from mikrotik :
MikroTik] > ip route print
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
My Bell fibe interface is a PPPOE connection to Bell fibe service. I got a public ip directly attached to my mikrotik router.
My hardware setup is : mikrotik router is connected to a lan port on the sagecom router and i established a dedicated pppoe from mikrotik router to get a public ip. My plex server is directly connected to the mikrotik lan port.
Let me guess - changing the chain to FORWARD fixed the problem?
Future reference:
INPUT - packets only go in the INPUT chain if they’re for the Mikrotik itself
OUTPUT - packets from the Mikrotik itself go through this chain on their way to the internet or LAN or wherever they’re going
FORWARD - packets going through the Mikrotik (including dstnat)