Community discussions

MikroTik App
 
pedja
Long time Member
Long time Member
Topic Author
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

Port forwarding - inside/out

Thu May 19, 2005 2:45 pm

I have MT as router for local network. It has dedicated public IP.

I've set MT to forward some ports to local machines. It works fine.

But there is problem, when trying to connect from local machines to MT's public IP to mapped ports it does not work. Previous router I used worked as expected.

How can i achieve port forwarding to work regardles if public IP is accessed from public network or from local network?

Here is an example rule I have:

add in-interface=internet dst-address=213.65.57.241/32:2401-2402 protocol=tcp action=nat \
to-dst-address=10.10.10.11 comment="cvs" disabled=no
 
randyloveless
Member Candidate
Member Candidate
Posts: 207
Joined: Thu Sep 30, 2004 10:14 am
Location: california
Contact:

Fri May 20, 2005 8:17 am

chain=dstnat dst-address=61.x.x.179 protocol=tcp dst-port=4899 action=dst-nat to-addresses=192.168.4.10 to-ports=4899
 
pedja
Long time Member
Long time Member
Topic Author
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

Mon May 23, 2005 4:24 pm

Unfortunately I cannot understand the meaning of this parameters. I cannot see where to use these parameters. Can you elaborate a bit?
 
pedja
Long time Member
Long time Member
Topic Author
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

Mon May 23, 2005 4:42 pm

I was too fast, it does not work.
 
randyloveless
Member Candidate
Member Candidate
Posts: 207
Joined: Thu Sep 30, 2004 10:14 am
Location: california
Contact:

Mon May 23, 2005 7:01 pm

what version are you using

you should be dst-nat atleast this is what i use in 2.9 . i havent used 2.8 in a while but should be the same

your action=dst-nat
 
pedja
Long time Member
Long time Member
Topic Author
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

Tue May 24, 2005 11:41 am

Sure I am setting dst-nat rule. MT is 2.8. It seems like a bug to me. I tried to install from scrtch and got the same result on plain MT. Mapping works fine from outside, but not from inside.

I noticed, when I try to access mapped port, bytes and packets count for mapping rule increase, but connection does not work. It seems like a problem responsing back through mapped port.
 
randyloveless
Member Candidate
Member Candidate
Posts: 207
Joined: Thu Sep 30, 2004 10:14 am
Location: california
Contact:

Tue May 24, 2005 6:23 pm

2.8.?

Who is online

Users browsing this forum: gigabyte091, hazem and 204 guests