N
N
NevilLasky2018-07-05 09:52:33
linux
NevilLasky, 2018-07-05 09:52:33

How to set up Port Forwarding to a host located in an OpenVPN network?

Hello,
I set up OpenVPN on VDS, connected an IP-PBX to the server via OpenVPN, connected the Internet using the OpenVPN server as a gateway. Now I want to set up a SIP trunk to a SIP provider. There are problems with the configuration, please help to solve this problem.
eth0 - Internet adapter
IP: 62.76.180.234
tun0 - OpenVPN adapter
IP:10.0.0.1
Gateway: 10.0.02
IP PBX
IP: 10.0.0.6
Gateway:10.0.0.5

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2018-07-05
@Tabletko

And what exactly is the problem? Write some rules for dst-nat entry to iptables and src-nat for exit. The search is full of such instructions.

N
NevilLasky, 2018-07-05
@NevilLasky

I'm using firwalld, the problem is that I've created all the necessary rules for port forward and NAT but they don't apply. Moreover, the softphone on the PC connects without problems, but the Yeastar IP-PBX does not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question