Can’t get my port-forwarding working.
I’m doing it as described in many tutorials: added dst-nat action to dst-nat chain but it’s not working.
I guess i have to fix some filtering rules: i have tried to disable all drop actions with no luck…
So if i have clean RouterOS with WAN static IP on the eth1-gateway, how to port-forward 8080 port to Static DHCP PC?
Should be easy… but not with Mikrotik…
I need help here. my port forwarding are not working. currently i have two static ISP and i try to port forward my ip camera to one of the ISP but no luck.
Currently i dont have firewall rule co’z i reset my router into “NO TO DEFAULT CONFIGURATION”. Maybe i miss something in firewall rule.
Change to masquerade rule fixed part of the problem… Now when i try to visit this port from inside i’m getting port-forwarded. But It’s not working from outside (WAN)!
If you could explain why “Quick Set” generated masquerade like this, and why it’s not working properly with port-forward:
I guess that’s because masquerading was affecting all traffic to ether1-gateway including port-forwarding… I’ve tryed to reorder this rules and put my port-forwarding on top of masquerading with no luck…
I’m seeng alot of port-forwarding question on the forum… i guess that’s becuse of auto-generated masquerading that does not allow port-forwarding.
Yes, quite a lot. You need to make sure that incoming connections go back to same ISP. Something like this. One more helpful tip, do not post your problems to other people’s topics, even if they are similar. Unless it’s exactly the same problem, opening new topic is better for everyone, including yourself.
No, that was probably because you were testing it from LAN and port forwarding doesn’t work from there by default. By removing out-interface from masquerade rule, you created variant of hairpin NAT. Your last rules should work. If not, it’s either blocked by target machine (make sure it allows connections from any address) or in router’s forward chain. Add this rule to allow all forwarded ports:
I was checking from both WAN and LAN… With no luck… Target machine accepts all traffic, web-server listen on 0.0.0.0 …
This rule did not helped.
I’ve read about Hairpin NAT… I can see that i’m trying to do exactly the same scenario… But with my configuration i’m able to port-forward in LAN, but not from WAN… Wich is different from what is described in the article… I will try to dive deeper to better understand whats happening… Thank you…
I’ve enabled logging on filtering rule(that allows all port-forwarding) and port-forwarding itsef with web-filter and web-nat respectively. Here is logs:
Packets in dstnat chain don’t yet know where they’ll go, so “dstnat out:(none)” is fine. Looking at your log with all those repeating SYN packets, it looks like port forwarding is ok, but 192.168.88.2 is not accepting the connection.
Thanks to all of you!
I think i’m nailed down the issue to my Ubuntu server not responding to SYN tcp packets…
Not a Mikrotik related issue… just bad network configuration on my Ubuntu server…
Thank you again!
Can you elaborate, and post what you did to fix? I have also been troubleshooting intermittent connectivity issues with hairpin enabled…and it’s been to a ubuntu server thus far (running different servers on unique ports). Was thinking it was hairpin, then fasttrack issue. Neither have panned out.
My problem was really simple. I had two ethernet cards, with default ethernet card looking to other network. Thus my eth1 was facing mikrotik router but isn’t default route. That’s why SYN packets was coming to eth1 syn/ack was going to eth0 and dropped by the kernel.
Pretty stupid issue… Sorry for taking your time guyz!