Hello all,
I'll try to describe my problem as best as possible and I hope someone can guide me to the right path / solution.
We use MikroTik RouterOS 5.6.
Our network consists with an interface setup as this :
R BRIDGE LAN
R ether 1 WAN
R ether 2 MAIL
R ether 3 LAN
ether 4 LAN
ether 5 LAN
gateway : 192.168.0.64
network: 192.168.0.0/24
DHCP : no
Bridged : yes
We have connected a new subnet to the exsting network with a firewall/router(dedicated linux based server)
network :172.16.0.0/24
The network uses IP 192.168.0.150 that acts like a gateway for the given network and it's on the same subnet and interface (eth3) as the primary network.
Now what I want to achive is that both networks can communicate with each other.
I have tried with adding routes :
ip route add dst-address=0.0.0.0/0 gateway="Bridge LAN" pref-src=192.168.0.150
ip route add dst-address=172.16.0.0/24 gateway="Bridge LAN" pref-src=192.168.0.150
and
ip route add gateway=192.168.0.150 dst-address=172.16.0.0/24
but no luck.
When I try to ping, I get a response, but when I try to access it via internet browser,
I just get redirected to the default router(192.168.0.64).
If I manualy change the gateway, from 192.168.0.64 to 192.168.0.150 on a workstation, connected to the primary network,
I can access the web server that is running on the newly connected subnet and that is what I want to achive
with MT router beeing as a default gateway with some kind of mangle config?
I did some reading, but I all I found was that you can have only 1 default route and if I need to somehow change that ,
I need to add some kind of mangle rule and packet marking?
EDIT 1:
I have managed to solve the correct routing with the following comand
/ip firewall mangle add chain=prerouting src-address=192.168.0.150 dst-address=172.16.0.0/24 action=mark-routing new-routing-mark=ind_net
/ip route add gateway=192.168.0.150 routing-mark=ind_net
Now the clients form 192.168.0.0/24 network can access the web/application server.
But, when I try to ping / ip scan the 172.16.0.0/24 subnet from MT router, I only get timeouts / 0 hosts , is this normal behaviour?
I thank you in advance,
Co