Community discussions

MikroTik App
 
MaaS10
just joined
Topic Author
Posts: 22
Joined: Tue Oct 01, 2019 3:31 pm

redirect whole traffic from WAN to LAN

Thu Jun 17, 2021 12:35 pm

Hey,

I would like to redirect whole traffic from WAN/16(PC) to LAN/24(SERVER).
So from WAN (PC) IP: 192.168.100.189 to LAN (SERVER) IP 192.168.41.2.
Basically I need to PC(WAN) with IP 192.168.100.189 was able to see a database on a server that is on (LAN).

I'm a newbie, be tolerant.
Thanks for helping me.
Last edited by MaaS10 on Fri Jun 18, 2021 9:05 am, edited 2 times in total.
 
User avatar
diego73
newbie
Posts: 26
Joined: Tue Feb 12, 2019 8:22 pm
Location: ciudad de buenos aires, argentina

Re: redirect whole traffic from LAN1 to LAN2

Thu Jun 17, 2021 1:52 pm

Lan1 and Lan2 are in different Router Board?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: redirect whole traffic from LAN1 to LAN2

Thu Jun 17, 2021 1:53 pm

So you have one router, with one wan connection.
Behind the router two separate LANS.

You dont want LAN1 to have internet access but just access to LAN2 for example..........
How will they access LAN2??
 
MaaS10
just joined
Topic Author
Posts: 22
Joined: Tue Oct 01, 2019 3:31 pm

Re: redirect whole traffic from LAN1 to LAN2

Thu Jun 17, 2021 2:03 pm

WAN is Tp-link switch/16
Lan is mikrotik./24

Both needs internet access(they do have it now) all I need is that pc will be able to communicate with server.

I can ping from server to pc, but not from pc to server.
Last edited by MaaS10 on Fri Jun 18, 2021 9:05 am, edited 2 times in total.
 
User avatar
diego73
newbie
Posts: 26
Joined: Tue Feb 12, 2019 8:22 pm
Location: ciudad de buenos aires, argentina

Re: redirect whole traffic from LAN1 to LAN2

Thu Jun 17, 2021 2:58 pm

try this on your LAN1 PC router, and join with a utp cable on eher4 port to LAN2 Server router

Make sure ether4 is out from lanBridge

/ip address add address=192.168.41.10/24 interface=ether4 network=192.168.41.0

next make a static route

/ip route add dst-address=192.168.41.0/24 gateway=192.168.41.1
 
MaaS10
just joined
Topic Author
Posts: 22
Joined: Tue Oct 01, 2019 3:31 pm

Re: redirect whole traffic from LAN1 to LAN2

Thu Jun 17, 2021 3:01 pm

First step is not possible, PC and server are in different buildings.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: redirect whole traffic from LAN1 to LAN2

Thu Jun 17, 2021 3:09 pm

Provide a network diagram and a config, otherwise unable to assist.
 
User avatar
diego73
newbie
Posts: 26
Joined: Tue Feb 12, 2019 8:22 pm
Location: ciudad de buenos aires, argentina

Re: redirect whole traffic from LAN1 to LAN2

Thu Jun 17, 2021 3:24 pm

First step is not possible, PC and server are in different buildings.
If you can not cabling you need VPN, sorry
 
MaaS10
just joined
Topic Author
Posts: 22
Joined: Tue Oct 01, 2019 3:31 pm

Re: redirect whole traffic from LAN1 to LAN2

Thu Jun 17, 2021 3:52 pm

IPs in network (possible)- 192.168.0.1-192.168.254.254
Isolated part of network is by mikrotik.
mikrotik: internet: 192.168.39.99/16
local: 192.168.41.1/24

When request comes from the primary network(in this case IP: 192.168.100.189) to mikrotik, the microtik communication redirect to the server(192.168.41.2).
You do not have the required permissions to view the files attached to this post.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: redirect whole traffic from LAN1 to LAN2

Thu Jun 17, 2021 8:03 pm

So the mikrotiks connection to the internet is through another router? and not a modem?
So the mikkrotik is not directly connected to the TP LInk switch?
What router is the TPLINK switch connected to?
 
MaaS10
just joined
Topic Author
Posts: 22
Joined: Tue Oct 01, 2019 3:31 pm

Re: redirect whole traffic from LAN1 to LAN2

Thu Jun 17, 2021 8:12 pm

1.Yes, its TP-LINK JetStream T2600G-52TS
They have same public IP.

2.Yes, he is directly connected.

3.MIKROTIK RB760iGS
TP-LINK JetStream T2600G-52TS
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: redirect whole traffic from LAN1 to LAN2

Fri Jun 18, 2021 3:03 am

It is still not clear to me where the ISP modem or modem/router is located in this picture..........
 
MaaS10
just joined
Topic Author
Posts: 22
Joined: Tue Oct 01, 2019 3:31 pm

Re: redirect whole traffic from LAN1 to LAN2

Fri Jun 18, 2021 7:44 am

Does it matter where the ISP modem is?

Communication is not going through ISP modem.

PC --- Mikrotik --- server in mikrotiks local IP
Ping from WAN to mikrotik LAN
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: redirect whole traffic from WAN to LAN

Fri Jun 18, 2021 6:03 pm

No worries, someone else will help you out...............

Who is online

Users browsing this forum: ItchyAnkle, menyarito and 83 guests