Page 1 of 1

Troubles reaching licensing servers though a proxy

Posted: Tue Mar 14, 2023 9:59 am
by andersbal
Hello,
I work in an environment where we need to tunnel HTTP/HTTPS traffic though a proxy, i setup our proxy during EVE-NG setup, but i am having some trouble getting the license server to connect and verify our license. But i can connect when using curl on the CLI (see output below). I running tcpdump, and it seems like the traffic is not going though the proxy. Any ideas what my next step should be?

root@eve-ng:~# systemctl status licserver.service
● licserver.service - EVE Lic server
Loaded: loaded (/etc/systemd/system/licserver.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2023-03-14 10:39:06 UTC; 16min ago
Main PID: 345414 (licserver)
Tasks: 2 (limit: 618370)
Memory: 7.8M
CPU: 1.300s
CGroup: /system.slice/licserver.service
├─345414 /usr/bin/php /opt/unetlab/wrappers/licserver &
└─345415 /usr/bin/php /opt/unetlab/wrappers/licserver &

Mar 14 10:53:19 eve-ng licserver[345414]: array(0) {
Mar 14 10:53:19 eve-ng licserver[345414]: }
Mar 14 10:54:19 eve-ng licserver[345415]: 60
Mar 14 10:54:19 eve-ng licserver[345414]: PHP Warning: file_get_contents(https://www.eve-ng.net/api/query): failed to open stream: Cannot assign requested address in /opt/unetlab/html/includes/functions.php on line 2673
Mar 14 10:54:19 eve-ng licserver[345414]: array(0) {
Mar 14 10:54:19 eve-ng licserver[345414]: }
Mar 14 10:55:19 eve-ng licserver[345415]: 60
Mar 14 10:55:19 eve-ng licserver[345414]: PHP Warning: file_get_contents(https://www.eve-ng.net/api/query): failed to open stream: Cannot assign requested address in /opt/unetlab/html/includes/functions.php on line 2673
Mar 14 10:55:19 eve-ng licserver[345414]: array(0) {
Mar 14 10:55:19 eve-ng licserver[345414]: }
root@eve-ng:~# curl -I https://www.eve-ng.net/api/query
HTTP/1.1 200 Connection established

HTTP/1.1 201 Created
Date: Tue, 14 Mar 2023 09:55:41 GMT
Server: Apache/2.4.18 (Ubuntu)
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Content-Type: application/json

root@eve-ng:~# cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
http_proxy="http://proxy-1.int.redacted.net:3128"
https_proxy="http://proxy-1.int.redacted.net:3128"


root@eve-ng:~#

Re: Troubles reaching licensing servers though a proxy

Posted: Tue Mar 14, 2023 10:18 am
by Uldis (UD)
remove all your CLI proxy settings and:

On the EVE-NG Pro, you must set proxy via WEB UI
System/System settings
Proxy

EVE Pro Cookbook chapter 3.5.3
https://www.eve-ng.net/index.php/docume ... -cookbook/

Re: Troubles reaching licensing servers though a proxy

Posted: Tue Mar 14, 2023 11:14 am
by andersbal
Thanks that worked