Answer the question
In order to leave comments, you need to log in
How to create an OpenVPN tunnel to access a specific url or ip address?
Good time of the day!
There is a project, some web service. There is also a certain company with which API integration is implemented. Among the requirements of the company - making requests to api is possible only through a tunnel configured to their openvpn server. Need advice and examples on how to implement this task correctly. Links to manuals are welcome.
On the service side - ubuntu 20, nginx, apache. The project itself on laravel
In theory, I assume something like the following sequence of actions: The
openvpn client is configured on the service server
Somehow the configuration is written to send through the tunnel only those requests that fly to the company's server (by url or ip)
Answer the question
In order to leave comments, you need to log in
Just specify the route to the recipient's networks via vpn. But you can only specify the ip of the network. Next, think about what will happen if the counterparty changes ip addresses and how to update the routes.
There is an alternative more effective but also more costly solution - to hire a specialist.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question