Community discussions

MikroTik App
 
User avatar
markpap
newbie
Topic Author
Posts: 49
Joined: Sat Dec 21, 2013 10:06 pm

Help with NAT - Masquerade

Sat Jan 11, 2014 3:09 pm

Hi,
First of all, I'm newbie to Mikrotik RouterOS but I try hard to study about this great OS.

My problem:

Introduction:
I have a Mikrotik CCR1036-12G-4S. I have a network with more that 200 ubnt antennas (sectors, rocketdishes, hotspots etc).
I use 172.19.0.1/22 for my antennas. My server has 172.19.0.1 and my pc which I used to manage my network has 172.19.0.5, as an ip (which is bind).
I use 192.168.96.1/19 as ip pool for hotspot and pppoe users.

The issue:
From my pc, when I try to connect to the interface of one of my antennas which is on 172.19.0.1/22, everything is ok.
From my pc, when I try to connect to the interface of one of my antennas which is on 192.168.96.1/19 (it uses pppoe, for example), then I cannot reach it.
I setup NAT with these settings, using winbox:
(IP > Firewall > NAT > Add)

Tab General:
Chain: srcnat
Src. Address: 172.19.0.0/22
Dst. Address: 192.168.96.0/19
Out. Interface: br_hs (which is my hotspot interface)

Tab Action:
masquerade

but I wasn't able to reach my antennas which is on 192.168.96.1/19. Any solutions???

Thanks in advanced.
 
plisken
Forum Guru
Forum Guru
Posts: 2509
Joined: Sun May 15, 2011 12:24 am
Location: Belgium
Contact:

Re: Help with NAT - Masquerade

Tue Jan 14, 2014 8:44 pm

Out. Interface: br_hs (which is my hotspot interface)

This must go to the interface connected to your ISP
 
User avatar
markpap
newbie
Topic Author
Posts: 49
Joined: Sat Dec 21, 2013 10:06 pm

Re: Help with NAT - Masquerade

Wed Jan 22, 2014 10:21 pm

Finally the solution was in mangle. I've just added this line, and everything is ok now.
chain=prerouting action=accept src-address=172.19.0.0/22 dst-address=192.168.96.0/19 in-interface=br_hs
Thanks in advanced.

Who is online

Users browsing this forum: No registered users and 47 guests