S
S
symbyon12017-04-24 22:14:05
DHCP
symbyon1, 2017-04-24 22:14:05

How to properly configure routes in Mikrotik on 3 ip?

The provider issues 3 ip:
address 10.10.10.21/24
address 10.10.10.22/24
address 10.10.10.23/24
Gateway 10.10.10.254
In the internal network there are servers 192.168.1.10 and 192.168.1.11, both have ssh, ftp.
It should turn out something like this:
192.168.1.10 should go online through 10.10.10.21
192.168.1.11 should go online through 10.10.10.22
and all the rest through 10.10.10.23
On this mikrotik'e there are only 2 ether WAN and LAN interfaces

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
symbyon1, 2017-04-25
@symbyon1

Everything turned out to be much simpler, I plugged in ip to the switch port of the Internet provider, and according to the config, everything was done before writing this article, thank you all for your help !!!
IP прописаны руками
> ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 ;;; Lan
192.168.1.254/24 192.168.1.0 lan
1 ;;; Wan
178.151.111.111/26 178.151.111.128 wan
2 178.151.111.112/26 178.151.111.128 wan
3 178.151.111.113/26 178.151.111.128 wan
Роуты динамика от провайдера
> ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - m
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY
0 A S 0.0.0.0/0 178.151.111.190
1 ADC 178.151.111.128/26 178.151.111.111 wan
2 ADC 192.168.1.0/24 192.168.1.254 lan
Нат как то так
> /ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat action=masquerade out-interface=wan
1 ;;; Web server
chain=dstnat action=dst-nat to-addresses=192.168.1.180 protocol=tcp dst-address=178.151.111.111 dst-port=21,22,143,80,8080,1500,3306
2 chain=srcnat action=masquerade protocol=tcp src-address=192.168.1.0/24 dst-address=192.168.1.180 dst-port=21,22,143,80,8080,1500,3306
3 ;;; RDP Server
chain=dstnat action=dst-nat to-addresses=192.168.1.252 protocol=tcp dst-address=178.151.111.112 dst-port=3389
4 chain=srcnat action=masquerade to-addresses=178.151.111.112 to-ports=3389 protocol=tcp src-address=192.168.1.0/24 dst-address=192.168.1.252 dst-port=3389
5 ;;; Game Server
chain=dstnat action=dst-nat to-addresses=192.168.1.135 protocol=tcp dst-address=178.151.111.113 dst-port=21,22,8000,25565
6 chain=srcnat action=masquerade protocol=tcp src-address=192.168.1.0/24 dst-address=192.168.1.135 dst-port=21,22,8000,25565

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question