Community discussions

MikroTik App
 
barred
just joined
Topic Author
Posts: 5
Joined: Sun Nov 07, 2010 8:25 pm

[RB 450G] - Web server port fowading (port=80)

Tue Aug 30, 2011 1:33 pm

Hello,

Sorry but i don't understand why my forward port dosn't work... :(

I habe my RB450G with ip adresse 172.16.0.1.
Than I have my Synology Server 172.16.0.3

I want only from outside(internet) to have acces to my website on my Synology.

so i have this port open:
/ip firewall nat add chain=dstnat dst-port=80 action=dst-nat protocol=tcp to-address=172.16.0.3 to-port=80
source: http://wiki.mikrotik.com/wiki/Manual:IP/Firewall/NAT

but when this rule it's activated, my internet connection dosn't work and i don't have connection to my synogy too...

how I can do ?

PS: Sorry for my bad english
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7054
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: [RB 450G] - Web server port fowading (port=80)

Tue Aug 30, 2011 1:39 pm

"internet traffic" is not working because you are redirecting all port 80 traffic to 172.16.0.3, even from 172.16.0.3 itself.

You have to add in-interface to your rule and probably dst-address.
 
barred
just joined
Topic Author
Posts: 5
Joined: Sun Nov 07, 2010 8:25 pm

Re: [RB 450G] - Web server port fowading (port=80)

Thu Sep 01, 2011 1:38 am

thx for your answer :D

but I don't understand.

I need to create a new interface with a destination to my webserver ?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: [RB 450G] - Web server port fowading (port=80)

Thu Sep 01, 2011 1:51 am

That rule forwards all tcp/80 traffic to that server. Including someone on the LAN going to google.com. Fix that by adding 'in-interface=INTERFACE_NAME' to the NAT rule. Replace "INTERFACE_NAME" with the name of your WAN interface, obviously.

If you want LAN clients to be able to go to the public IP address of the server read http://wiki.mikrotik.com/wiki/Hairpin_NAT

Who is online

Users browsing this forum: jaclaz, marimuthu and 17 guests