P
P
Pontius712018-04-21 20:08:56
Mikrotik
Pontius71, 2018-04-21 20:08:56

Output of a specific host to the Internet through another mikrotik interface?

the essence of the problem.
The transition from analog telephony to digital is underway. We have a sip number from Rostelecom (to save numbers), an Internet provider other than RT.
Rostelecom releases VIP only from RT trees. Mikrotik is used as a gateway, one of the interfaces of which looks into the network of a neighboring store, in this store the Internet provider is just Rostelecom.
I can't figure out how to get a specific host (pbx server) to go online through a different interface that looks into the neighboring salon.
If you need specifics or configs, I'll attach everything - thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Tallmange, 2018-04-21
@Pontius71

PBR .
Given: 1.2.3.4 - the address of the Rostelecom gateway (in the store), 192.168.0.0.24 - your local network, 192.168.0.2 - the address of the PBX.

/ip route add dst-address=0.0.0.0/0 gateway=1.2.3.4 routing-mark=RT
/ip route rule add src-address=192.168.0.2 dst-address=192.168.0.0/24 action=lookup table=main
/ip route rule add src-address=192.168.0.2 action=lookup table=RT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question