Answer the question
In order to leave comments, you need to log in
How to configure Mikrotik so that the following requirements are met?
Добрый день, есть такая схема сети:
--------------------------------------------------
| MIKROTIK |
PC1 192.168.3.2/24 - | ether1 192.168.3.1/24 |
PC2 192.168.4.2/24 - | ether2 192.168.4.1/24 192.168.7.2/24 ether4 | - 192.168.7.1/24 PC4
PC3 192.168.5.2/24 - | ether3 192.168.5.1/24 |
--------------------------------------------------
/ip firewall nat
add action=dst-nat chain=dstnat in-interface=ether1 to-addresses=192.168.7.1
add action=masquerade chain=srcnat out-interface=ether1 src-address=192.168.7.1
add action=masquerade chain=srcnat dst-address=192.168.7.1 src-address=192.168.3.0/24
add action=dst-nat chain=dstnat in-interface=ether2 to-addresses=192.168.7.1
add action=masquerade chain=srcnat out-interface=ether2 src-address=192.168.7.1
add action=masquerade chain=srcnat dst-address=192.168.7.1 src-address=192.168.4.0/24
add action=dst-nat chain=dstnat in-interface=ether3 to-addresses=192.168.7.1
add action=masquerade chain=srcnat out-interface=ether3 src-address=192.168.7.1
add action=masquerade chain=srcnat dst-address=192.168.7.1 src-address=192.168.5.0/24
Answer the question
In order to leave comments, you need to log in
Because PCs in different subnets, then without GW it will not work.
If you want without GW - put all PCs on the same subnet and write rules on the MIC.
/ip firewall filter
add action=accept chain=forward src-address=192.168.3.2 dst-address=192.168.3.7
add action=accept chain=forward src-address=192.168.3.3 dst-address=192.168.3.7
add action=accept chain=forward src-address=192.168.3.4 dst-address=192.168.3.7
add action=drop chain=forward src-address=192.168.3.0/24 dst-address=192.168.3.0/24
In principle, this suits me and the question can be removed, but another question has arisen - is it possible to make this scheme work without using gateways at all?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question