R
R
rus18reg2021-10-06 09:24:23
Debian
rus18reg, 2021-10-06 09:24:23

How to assign a gateway for one server from another subnet, which is a PC?

Good day! There is a local area network whose gateway is Mikrotik. This network has a postfix (ubuntu) mail server. There is also an OVPN server (debian) on the network. How do I make postfix send all packets through a rented VPS (debian) that is an OVPN client.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Drno, 2021-10-06
@Drno

the simplest option is to raise the client to openvpn on the mailer and register default gateway in the config
. Or, mark the traffic on Mikrotik, and send it to the VPS side by marking the routing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question