VPL is not working Outside LAN

VPL is not working Outside LAN

by sasikumar r -
Number of replies: 3

Hello everyone,

I have installed "Moodle-3.9" ( latest version) on my Windows-10 machine which is located in my college. Also I have installed "Jail Server-2.5.3" for "Virtual Programming Lab" on another machine with ubuntu-16.04 OS. Both Moodle server and Jail server is working fine inside college (Local Area Network). Without any problem VPL also working.

With help of college admin, we have assigned public IP address to windows machine (Moodle running) for accessing Moodle server from outside LAN. Now we can access Moodle server outside college but not able to run VPL. It doesn't report any error. We thought, Jail server also required separate public IP address.

So we have assigned another public IP address for Ubuntu machine (Jail Server Running). Now we can access both moodle server and jail server( with help of this command http://server:PORT/OK)  from outside LAN. But still VPL is not working. (i.e unable to run program).

Note: if we assign demo jail server link ( inside jail server list),  VPL is working and automatic evaluation is done without issues. To improve the performance of VPL , we planned to go separate machine for JAIL SERVER.

Kindly help me to rectify this issue.


Average of ratings: -
In reply to sasikumar r

Re: VPL is not working Outside LAN

by Juan Carlos Rodríguez-del-Pino -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Hello Sasikumar,
the information you give is not enough to spot the problem reproducing it. But I guess that the problem might be:
- Your jail server can be using an untrusted certificate to enable https. You can use Let's Encrypt and then https://jailserver:PORT as URL in your server.
- Your network may be using a proxy that avoids correct access to your jailserver.

To get more information you can check the jail server log and the console log at your browser.

Best regards,
Juan Carlos.
In reply to Juan Carlos Rodríguez-del-Pino

Re: VPL is not working Outside LAN

by sasikumar r -

Hi Jaun Carlos,

                           Thank you for your reply. 

After your input, we checked with the command  "https://ipaddress:443/OK"  from the browser, it throws "Your connection is not private" error report. How to fix this issue? 



Also we check with the jail-sever file. It shows the following error. Kindly help to fix the error.




In reply to sasikumar r

Re: VPL is not working Outside LAN

by Juan Carlos Rodríguez-del-Pino -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Taking into account the information provided, It seems that you are using an intermediate Certification Authority and the browsers do not have it. If this is the problem then you must provide the certificate of the intermediate certification authority to the browser.

I think you must concatenate the intermediate cert authority certificate to your certificate.
You may use a command like:
sudo cat Intermediate_CA.pem >> /etc/vpl/cert.pem
sudo systemclt restart vpl-jail-system
Notice that the pem format is plain text.

Best regards,
Juan Carlos.

Average of ratings: Useful (1)