So I have a program I am running on my home computer, but i need it to access the data base for the program which is on a machine behind a mikrotik router.
Eventually I will setup a vpn, but for now i just need to go into winbox and allow for the traffic between this server and my home computer.
I’ve added a firewall rule
Chain=Forward
Src Address= (my public IP for home computer)
Dst Address= (server IP behind mikrotik)
Protocol= 6 TCP
Dst Port= 139,445
Action= Accept
Is that everything I should be doing or is there more or have i dont something wrong? - Above isn’t how i’ve typed it into the terminal/cmd, it’s just how i’m letting you know i’ve set it as using winbox under adding the firewall rules
That’s about it if server actually has public IP address. If server actually uses private IP address and mikrotik performs NAT between public internet and LAN, then you should rather configure appropriate DST-NAT rule.
The mikrotik needs one firewall filter rule to allow dstnat type connections in general, and all the individual ‘port forwardings’ are setup as rules in the firewall nat rules…