Ive got a NAS on internal network (..*.44 and would like certain ip adresses from remote location(s) to be able to mount shared folders from it. I generated the rules below
add action=dst-nat chain=dstnat comment=“Samba allowed 137 TCP” dst-port=137 in-interface=ether1 protocol=tcp src-address-list=anat to-addresses=10.1.1.44 to-ports=137
add action=dst-nat chain=dstnat comment=“Samba allowed 137 UDP” dst-port=137 in-interface=ether1 protocol=udp src-address-list=anat to-addresses=10.1.1.44 to-ports=137
add action=dst-nat chain=dstnat comment=“Samba allowed 138 TCP” dst-port=137 in-interface=ether1 protocol=tcp src-address-list=anat to-addresses=10.1.1.44 to-ports=138
add action=dst-nat chain=dstnat comment=“Samba allowed 138 UDP” dst-port=138 in-interface=ether1 protocol=udp src-address-list=anat to-addresses=10.1.1.44 to-ports=138
add action=dst-nat chain=dstnat comment=“Samba Allowed 139 TCP” dst-port=139 in-interface=ether1 protocol=tcp src-address-list=anat to-addresses=10.1.1.44 to-ports=139
add action=dst-nat chain=dstnat comment=“Samba allowed 139 UDP” dst-port=137 in-interface=ether1 protocol=udp src-address-list=anat to-addresses=10.1.1.44 to-ports=139
add action=dst-nat chain=dstnat comment=“Samba allowed 445 TCP” dst-port=445 in-interface=ether1 protocol=tcp src-address-list=anat to-addresses=10.1.1.44 to-ports=445
add action=dst-nat chain=dstnat comment=“Samba allowed 445 UDP” dst-port=445 in-interface=ether1 protocol=udp src-address-list=anat to-addresses=10.1.1.44 to-ports=445
add action=dst-nat chain=dstnat comment=“Samba allowed 901 TCP” dst-port=137 in-interface=ether1 protocol=tcp src-address-list=anat to-addresses=10.1.1.44 to-ports=901
add action=dst-nat chain=dstnat comment=“Samba allowed 901 UDP” dst-port=137 in-interface=ether1 protocol=udp src-address-list=anat to-addresses=10.1.1.44 to-ports=901
But for some reason it just doesnt seem to work, any suggestions on a better rule set for making this work? If there is some unclear here i´ll try to recap quickly
Remote ip adresses (i.ex.) 184.74.53.45 and 185.173.19.5 need access to the nas inside my local network on 172.16.240.44 via ether1. So connections from these addresses should be forwarded to the NAS, the rest should be treated as any other connection attempt. And no, VPN access is not an option.
In advance, thanks for the help.