Community discussions

MikroTik App
 
Radius28
just joined
Topic Author
Posts: 1
Joined: Thu Nov 11, 2021 1:00 am

Accessing a subnet in which the Mikrotik isn't the gateway

Thu Nov 11, 2021 1:11 am

I feel like this is something that I can accomplish with a Mikrotik, but I tried for several hours today with no luck.

eth1 - WAN, static public IP
eth2 - bridged to bridge1
eth3 - bridged to bridge1
eth4 - bridged to bridge1
eth5 - 192.168.31.250/24 (a different router is the gateway for this subnet/network) <-- I need access to this subnet from 192.168.1.0/24
bridge1 - 192.168.1.1/24 (DHCP enabled)

From any port on bridge1, I can access 192.168.31.250, but nothing else on that subnet.

I tried many firewall filters, various NATting, mangle rules... help!
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: Accessing a subnet in which the Mikrotik isn't the gateway

Fri Nov 19, 2021 11:24 pm

Clean solution is to configure the other network to know about yours, so add route to yours to other network's gateway. Or just use srcnat on eth5, to make all connections to other network look like they come from 192.168.31.250:
/ip firewall nat add out-interface=eth5 action=masquerade
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19322
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Accessing a subnet in which the Mikrotik isn't the gateway

Sat Nov 20, 2021 4:47 am

Not sure if this is similar to your case, but this thread may give you some ideas......
viewtopic.php?p=891129#p891129

Who is online

Users browsing this forum: Google [Bot], Hober, Majestic-12 [Bot], Maveick87Shaka, McSee and 100 guests