A
A
Artur SSS2017-11-18 20:20:40
linux
Artur SSS, 2017-11-18 20:20:40

CentOS7 with Asterisk, how to see eth2 network through eth1?

Hello!
There is a server (PBX) CentOS7/Asterisk/Elastix.
two interfaces: eth1 (10.20.10.1) and eth2 (10.20.30.1)
Task:
Connect to SMG (10.20.30.50) via CentOS (10.20.10.1/30) from network 10.10.10.0/24.
And get rid of the direct connection with Mikrota (see the red line on the diagram)
How to do it without particularly affecting the settings.
To some, the question may seem too simple, unfortunately, I have no experience with CentOS.
Scheme:5a1148714abe9213333294.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2017-11-18
@POS_troi

This does not apply to centos as such, it is a matter of networking and routing.
Using the application server as a gateway for networks is a so-so idea.
But if you really want

vim /etc/sysctl.conf
net.ipv4.ip_forward = 1

On the server and at your workplace, register the route to the network 10.20.30.0/24 through your server.
In general, networks need to be resolved on the router.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question