Page 1 of 1

NAT port 80

Posted: Sat Jul 10, 2010 7:07 pm
by crazyleg
Hi, I`m new to Mikrotik and got some problems with forwarding http traffice to my webserver. I have set up a few NAT`s in the firewall setting for outgoing traffice before, som I am familiar with the setting.

The problem appears when I trie to NAT WAN-access to my webserver at the LAN side. I`ve set up NAT, and gain access from WAN to my server, but when the rule is active (as nr 0) I´m not able to access webpages at the WAN side from my computer.

Do I allso need to garant LAN access to WAN when NAT on port 80 is active?

Re: NAT port 80

Posted: Tue Jul 13, 2010 1:08 am
by Ibersystems
Your nat rule must be dstnat for all the traffic with destination your wan ip.. If you dont use your wan ip as destination you get problems like this..

Re: NAT port 80

Posted: Wed Jul 14, 2010 11:33 pm
by crazyleg
Solved, thank you!

Re: NAT port 80

Posted: Wed Jul 14, 2010 11:36 pm
by fewi
If you have a dynamic WAN IP address you can also qualify the rule with 'in-interface=WAN connection-state=new' instead of the WAN IP. Same effect, slightly more expensive but less maintenance required.

Re: NAT port 80

Posted: Wed Jul 14, 2010 11:58 pm
by Ibersystems
Karma vote pleasee!

Thanks!