Community discussions

MikroTik App
 
crazyleg
just joined
Topic Author
Posts: 9
Joined: Sat Jul 10, 2010 6:56 pm

NAT port 80

Sat Jul 10, 2010 7:07 pm

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?
Last edited by crazyleg on Wed Jul 14, 2010 11:29 pm, edited 1 time in total.
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1686
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: NAT port 80

Tue Jul 13, 2010 1:08 am

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..
 
crazyleg
just joined
Topic Author
Posts: 9
Joined: Sat Jul 10, 2010 6:56 pm

Re: NAT port 80

Wed Jul 14, 2010 11:33 pm

Solved, thank you!
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: NAT port 80

Wed Jul 14, 2010 11:36 pm

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.
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1686
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: NAT port 80

Wed Jul 14, 2010 11:58 pm

Karma vote pleasee!

Thanks!