Community discussions

MikroTik App
 
vaivars
just joined
Topic Author
Posts: 9
Joined: Thu Jun 06, 2013 1:46 am

Problem with Nat/Forwarding IP ranges

Thu Jun 06, 2013 2:18 am

Hey guys, i am having a tad bit annoying problem, that forwarding IP ranges just doesn't work. Maybe i am making a human error, but i don't see it.
 action=dst-nat chain=dstnat  dst-address=***.***.***.205 \
    dst-port=49222-49271 protocol=udp to-addresses=192.168.1.123 to-ports=\
    49222-49271

What am i doing wrong?
 
User avatar
pcunite
Forum Guru
Forum Guru
Posts: 1130
Joined: Sat May 25, 2013 5:13 am
Location: USA

Re: Problem with Nat/Forwarding IP ranges

Thu Jun 06, 2013 2:50 am

Try it in the GUI then export it to see how to do this ...
 
vaivars
just joined
Topic Author
Posts: 9
Joined: Thu Jun 06, 2013 1:46 am

Re: Problem with Nat/Forwarding IP ranges

Thu Jun 06, 2013 8:12 am

I have done it in the GUI.

This is just the exported entry that i already have.

I mean forwarding single ports works fine, but as soon as you add a range, it just does nothing. Every single port counts as closed.
 
User avatar
pcunite
Forum Guru
Forum Guru
Posts: 1130
Joined: Sat May 25, 2013 5:13 am
Location: USA

Re: Problem with Nat/Forwarding IP ranges

Thu Jun 06, 2013 3:12 pm

I'm new, but dst-address=***.***.***.205 does not look right.
Perhaps it should be dst-address=0.0.0.205/24
 
Rudios
Forum Veteran
Forum Veteran
Posts: 966
Joined: Mon Mar 11, 2013 12:58 pm
Location: The Netherlands

Re: Problem with Nat/Forwarding IP ranges

Thu Jun 06, 2013 3:19 pm

I'm new, but dst-address=***.***.***.205 does not look right.
Perhaps it should be dst-address=0.0.0.205/24
vaivars is just not showing us his complete IP :D
Testing setup with: 2 x RB750UP | 2 x RB750GL | 1 x RB951G-2HnD | 1 x RB2011UiAS-IN
 
User avatar
pcunite
Forum Guru
Forum Guru
Posts: 1130
Joined: Sat May 25, 2013 5:13 am
Location: USA

Re: Problem with Nat/Forwarding IP ranges

Thu Jun 06, 2013 3:23 pm

I'm new, but dst-address=***.***.***.205 does not look right.
Perhaps it should be dst-address=0.0.0.205/24
vaivars is just not showing us his complete IP :D
:oops:
Sorry, yes that is correct ... vaivars try "ports" instead of "to-ports"
 
vaivars
just joined
Topic Author
Posts: 9
Joined: Thu Jun 06, 2013 1:46 am

Re: Problem with Nat/Forwarding IP ranges

Fri Jun 07, 2013 12:59 am

Yep, i just covered the IP.

As for the suggestion to just try with Ports instead of to-ports, tried it, but it didn't help :(

Who is online

Users browsing this forum: No registered users and 64 guests