I need to configure a Linux server (probably CentOS) to run a web application online.
Elements in the flow:
- mywebapp, reachable at the url
https://mywebapp.example.org
- thirdpartwebserv, reachable at the url
https://thirdpartwebserv.example.org
and must be tunneled via VPN - user, the typical mywebapp user, he does not have the VPN on his computer but only access to his mywebapp account
- operation A that queries thirdpartwebserv and requests VPN
- operation B that does not require VPN and only uses mywebapp functions
Typical flow:
- user accesses
https://mywebapp.example.org
- user carries out operation B
- mywebapp processes operation B
- the result of operation B is shown to the user.
- user performs another operation, this time an operation A
- mywebapp communicates with thirdpartwebserv through a VPN, processes operation A and returns a result
- the result of operation A is shown to the user.
What I'm interested in is letting anyone have an account on mywebapp while still guaranteeing tunneling towards communications with thirdpartwebserv.
Can I use OpenVPN on mywebapp server to communicate with the VPN protected thirdpartwebserv server and obtain a similar infrastructure?
The use of VPN is dictated by thirdpartwebserv.