Community discussions

MikroTik App
 
Mkbihscript
just joined
Topic Author
Posts: 4
Joined: Thu Oct 25, 2018 12:33 am

Access IP after WAN

Wed Sep 22, 2021 1:14 am

Hi to all :)

I am beginner in Mikrotik. And i have one situation in which need help.

I have one mikrotik RB with lan 192.168.178.1, and i have 2 sxt antenas. First antena access point is in bridge mode, and second antena station is in router mode, while i need seperate network.

Now wan on second station antena is 192.168.178.254, and lan is 192.168.1.1.

I have two devices 192.168.1.x connected to lan on second antena which i need to access from first mikrotik range 192.168.178.1.

I can’t make port forwarding while 2 devices has same port and i can not change it.

Which is the best way to acces this two devices from 192.168.178.1 network.

Thank you
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: Access IP after WAN

Wed Sep 22, 2021 8:10 pm

Create a network diagram so that we understand your network topology..
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18959
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Access IP after WAN

Wed Sep 22, 2021 8:11 pm

Very confusing, please draw a labelled network diagram to show your network please.
 
Mkbihscript
just joined
Topic Author
Posts: 4
Joined: Thu Oct 25, 2018 12:33 am

Re: Access IP after WAN

Thu Sep 23, 2021 12:53 am

https://ibb.co/4MSnztR

This is image link for network.

Thank you guys
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18959
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Access IP after WAN

Thu Sep 23, 2021 3:15 am

So lets see if I can understand what your are doing.

You have internet coming on an the RB750 wired (normal ISP etc).
You wish to share this internet with another location via LAN network.
You use a pair of SXT devices to create a wifi link for the LAN network.
THe second SXT is setup as a WAN device vice LAN connection so
in effect its getting its WANIP (private IP) over wifi from the 750 (also means a double nat scenario).

So its not clear what kind of access you need to these two LAN devices behind the second router (sxt)??

Port forwarding CAN work in this scenario using port translation.

Lets say the two servers are
192.168.1.20 server A
192.168.1.30 server B
both servers use port 5656

On 750
add chain=dstnat action=dst-nat in-interface-list=WAN protocol=tcp dst-port=2020 \
to-addresses=192.168.178.254
add chain=dstnat action=dst-nat in-interface-list=WAN protocol=tcp dst-port=3030 \
to-addresses=192.168.178.254

ON SXT ROUTER
add chain=dstnat action=dst-nat dst-address=192.168.178.254 protocol=tcp dst-port=2020 \
to-addresses=192.168.1.20 to-ports=5656
add chain=dstnat action=dst-nat dst-address=192.168.178.254 protocol=tcp dst-port=3030 \
to-addresses=192.168.1.30 to-ports=5656

What happens is you tell those users requiring access to server A to use port 2020 and those users requiring access to server B to use port 3030, done!
 
aesmith
Member Candidate
Member Candidate
Posts: 264
Joined: Wed Mar 27, 2019 6:43 pm

Re: Access IP after WAN

Fri Sep 24, 2021 1:13 pm

RB750 needs a route to 192.168.1.0/24 via 192.168.178.254
Depending on your NAT rules you may need to add something to allow NAT for outgoing requests from 192.168.1.0
Routed SXT already has 192.168.1.0 and 192.168.178.0 as connected networks so should already have routes to both

Who is online

Users browsing this forum: teleport and 34 guests