I have NAS iwth nass4free OS. It has bittorrent client. I’ve tryed to enable upnp but it doesn’t want to work, so I tryed to open port but it also doesn’t want to work. The port I would like to open is 51413
Here’s my setup:
under NAT → dst-nat rules for port 51413, under Action tab → To addresses I’ve entered IP of NAS on my LAN and under To ports i’ve entered 51413
I’ve configured my firewall from youtube mikrotik basic setup video so I really don’t know process works in general.
you can not have a “default drop” forward rule if you want to use UPnP. Also you need to set the internal and external interfaces for the UPnP. When an application opens ports, the forward rules will be added to the bottom of the list. If you have a “drop all” forward rule, then the UPnP rules will never apply.
This is a basic set of filter rules. You will need to set the lan and wan interfaces for your own naming.
/ip firewall filter
add chain=input comment="Streams that have been authenticated already" \
connection-state=established,related
add chain=input comment="Traffic from the LAN to the Router" \
connection-state=new in-interface=lan0
add action=drop chain=input comment="default configuration" in-interface=wan0 \
log-prefix=Dropped
add chain=forward comment="These come from the \"New\" connections" \
connection-state=established,related
add chain=forward comment="Allow new Forwards from the LAN - but not the WAN" \
connection-state=new in-interface=lan0
so I should delete all my rules or just delete “default drop” forward rule? and then add this rules that you wrote?
also for my own naming: my ether1 is WAN and bridge1 is LAN (bridged ether2-5). so in general it should look like this?
/ip firewall filter
add chain=input comment="Streams that have been authenticated already" \
connection-state=established,related
add chain=input comment="Traffic from the LAN to the Router" \
connection-state=new in-interface=bridge1
add action=drop chain=input comment="default configuration" in-interface=ether1 \
log-prefix=Dropped
add chain=forward comment="These come from the \"New\" connections" \
connection-state=established,related
add chain=forward comment="Allow new Forwards from the LAN - but not the WAN" \
connection-state=new in-interface=bridge1
Do you just need the NAS to be able to download, or do you need to make it accessible from the outside? If you don’t need to make it accessible from the outside, then you don’t need to get rid of your forward drop rule.
I have a PC that torrents from time to time, and I also run a Plex server. Here are my filter and nat rules that allow me to do what I do anywhere I need to do it. Is it full proof? No, but it blocks enough for me.
How I started is first, set up your NAT rules, THEN setup your filter rules. (turn them all off initially) This way you can see things working and then if something breaks, you know what it is.
Once you do this a few times, you’ll have a feeling of how you can set this up in now time.